homeassistant/archive/lovelace/irrigation0.yaml.j2

31 lines
649 B
Django/Jinja

# lovelace_gen
{% set zones = {
'1':'Front Yard North',
'2':'Front Yard South',
'3':'Front Yard Beds',
'4':'Back Yard East',
'5':'Back Yard Garage',
'6':'Back Yard West',
'7':'Garden East',
'8':'Garden West'
}
%}
icon: mdi:water
panel: true
cards:
- type: 'custom:layout-card'
{# layout: <layout> #}
{# min_height: <min_height> #}
min_columns: 2
max_columns: 4
column_width: 200px
cards:
{% for zone,name in zones.items() %}
- type: entity-button
entity: switch.irrigation_zone_{{ zone }}
icon: mdi:water
name: {{ name }}
tap_action:
action: toggle
{% endfor %}