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

16 lines
493 B
Plaintext
Raw Normal View History

2024-08-22 20:23:02 +00:00
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 %}