homeassistant/archive/lovelace/irrigation-buttons.yaml.j2

35 lines
864 B
Django/Jinja

# lovelace_gen
title: Irrigation
icon: mdi:water
panel: true
cards:
- type: 'custom:layout-card'
min_columns: 2
max_columns: 4
column_width: 200px
cards:
- type: entity-button
entity: input_boolean.irrigation_pump
icon: mdi:water-pump
name: well pump
tap_action:
action: toggle
{% 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'
}
%}
{% for zone,name in zones.items() %}
- type: entity-button
entity: input_boolean.irrigation_zone_{{ zone }}_state
icon: mdi:water
name: {{ name }}
tap_action:
action: toggle
{% endfor %}