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

35 lines
863 B
Django/Jinja

# lovelace_gen
title: MQTT Irrigation Buttons
{# icon: mdi:water #}
panel: true
cards:
- type: 'custom:layout-card'
min_columns: 2
max_columns: 4
column_width: 200px
cards:
- type: entity-button
entity: switch.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: switch.irrigation_zone_{{ zone }}
icon: mdi:water
name: {{ name }}
tap_action:
action: toggle
{% endfor %}