44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
|
# Exampe Scheduler
|
||
|
title: Zone1
|
||
|
cards:
|
||
|
- type: markdown
|
||
|
content: >
|
||
|
## Scheduler Example
|
||
|
- type: vertical-stack
|
||
|
cards:
|
||
|
- type: entities
|
||
|
entities:
|
||
|
# - entity: input_datetime.irrigation_zone_1_schedule_base
|
||
|
- type: section
|
||
|
label: 'Base Time of Day'
|
||
|
- entity: input_number.irrigation_zone_1_schedule_base_hour
|
||
|
- entity: input_number.irrigation_zone_1_schedule_base_minute
|
||
|
- type: divider
|
||
|
- entity: input_select.irrigation_zone_1_schedule_repeatin
|
||
|
# - entity: variable.irrigation_zone_1_schedule_countdown
|
||
|
# - entity: variable.irrigation_zone_1_schedule_next_timestamp
|
||
|
- type: divider
|
||
|
- entity: variable.irrigation_zone_1_schedule_next
|
||
|
- entity: sensor.irrigation_zone_1_schedule_next
|
||
|
- entity: variable.irrigation_zone_1_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_irrigation_zone_1_schedule
|
||
|
entity: script.enable_irrigation_zone_1_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_irrigation_zone_1_schedule
|
||
|
entity: script.disable_irrigation_zone_1_schedule
|