71 lines
2.4 KiB
Plaintext
71 lines
2.4 KiB
Plaintext
|
# lovelace_gen
|
||
|
title: Irrigation
|
||
|
cards:
|
||
|
{% set zones = {
|
||
|
'1':'Front Yard North',
|
||
|
'2':'Front Yard South',
|
||
|
'3':'Fr. Beds/Back E. Spigot',
|
||
|
'4':'Back Garage Spigot',
|
||
|
'5':'Garden North/West',
|
||
|
'6':'Garden South',
|
||
|
'7':'Back West Spigot'
|
||
|
}
|
||
|
%}
|
||
|
- type: vertical-stack
|
||
|
cards:
|
||
|
- type: markdown
|
||
|
content: >
|
||
|
# IRRIGATION SYSTEM STATE
|
||
|
theme: solarized_light
|
||
|
- type: entities
|
||
|
show_header_toggle: false
|
||
|
entities:
|
||
|
- entity: input_boolean.irrigation_enabled
|
||
|
- type: divider
|
||
|
- entity: variable.irrigation_next_trigger
|
||
|
- entity: variable.irrigation_next_trigger_dt
|
||
|
- entity: variable.irrigation_next_schedule_name
|
||
|
- entity: variable.irrigation_running_names
|
||
|
- entity: variable.irrigation_queue_names
|
||
|
- type: divider
|
||
|
{% for zone,name in zones.items() %}
|
||
|
- entity: input_boolean.irrigation_zone_{{ zone }}_schedule_enabled
|
||
|
name: {{ name }}
|
||
|
{% endfor %}
|
||
|
{% for zone,name in zones.items() %}
|
||
|
- type: conditional
|
||
|
conditions:
|
||
|
- entity: input_boolean.irrigation_zone_{{ zone }}_schedule_enabled
|
||
|
state: "on"
|
||
|
card:
|
||
|
type: vertical-stack
|
||
|
cards:
|
||
|
- type: markdown
|
||
|
content: >
|
||
|
## {{ name }} : Zone {{ zone }}
|
||
|
theme: slate
|
||
|
- type: entities
|
||
|
entities:
|
||
|
- entity: input_boolean.irrigation_zone_{{ zone }}_state
|
||
|
- entity: input_number.irrigation_zone_{{ zone }}_duration
|
||
|
- type: divider
|
||
|
- entity: variable.irrigation_zone_{{ zone }}_schedule_next_dt
|
||
|
- entity: variable.irrigation_zone_{{ zone }}_schedule_countdown
|
||
|
- type: entities
|
||
|
entities:
|
||
|
- type: custom:fold-entity-row
|
||
|
head: input_boolean.irrigation_zone_{{ zone }}_schedule_enabled
|
||
|
entities:
|
||
|
- type: section
|
||
|
label: 'Schedule Parameters for {{name}}'
|
||
|
- type: divider
|
||
|
- type: section
|
||
|
label: 'Base Time of Day'
|
||
|
- entity: input_number.irrigation_zone_{{ zone }}_schedule_base_hour
|
||
|
- entity: input_number.irrigation_zone_{{ zone }}_schedule_base_minute
|
||
|
- type: divider
|
||
|
- entity: input_select.irrigation_zone_{{ zone }}_schedule_delta
|
||
|
|
||
|
|
||
|
{% endfor %}
|