1
0
ansible-home-assistant/roles/scripts/templates/water-plants-check.yaml.j2

16 lines
493 B
Django/Jinja

water_plants_check:
alias: '[Info] check water plants'
sequence:
{% for plant in plants %}
- choose:
- conditions:
- condition: numeric_state
entity_id: {{ plant.entity_id }}
attribute: moisture
below: {{ plant.min_humidity }}
sequence:
- action: notify.mobile_app_iphone
data:
message: {{ plant.name }} moisture below {{ plant.min_humidity }}%, water plant
{% endfor %}