47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
# Exampe Scheduler
|
|
title: Scheduler
|
|
cards:
|
|
- type: markdown
|
|
content: >
|
|
## Scheduler Example
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: markdown
|
|
content: >
|
|
## Scheduler 2
|
|
- type: entities
|
|
entities:
|
|
# - entity: input_datetime.test_schedule_base
|
|
- type: section
|
|
label: 'Base Time of Day'
|
|
- entity: input_number.test_schedule_base_hour
|
|
- entity: input_number.test_schedule_base_minute
|
|
- type: divider
|
|
- entity: input_select.test_schedule_repeatin
|
|
# - entity: variable.test_schedule_countdown
|
|
# - entity: variable.test_schedule_next_timestamp
|
|
- type: divider
|
|
- entity: variable.test_schedule_next
|
|
- entity: sensor.test_schedule_next
|
|
- entity: variable.test_schedule_countdown
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: entity-button
|
|
name: Enable Scheduler
|
|
icon: mdi:timer
|
|
tap_action:
|
|
action: call-service
|
|
service: script.turn_on
|
|
service_data:
|
|
entity_id: script.enable_test_schedule
|
|
entity: script.enable_test_schedule
|
|
- type: entity-button
|
|
name: Disable Scheduler
|
|
icon: mdi:timer
|
|
tap_action:
|
|
action: call-service
|
|
service: script.turn_on
|
|
service_data:
|
|
entity_id: script.disable_test_schedule
|
|
entity: script.disable_test_schedule
|