Hi guys,
Been following some advice here on the forum regarding automation generalization, should this work ? please note that I use numeric_state as the trigger rather than state platform as the automation trigger which is the reason why I have doubt should it work or not :
- alias: Plants Watering
trigger:
- platform: numeric_state
entity_id:
- sensor.guest_bathroom_plant_moisture
- sensor.entrance_plant_moisture
below: 20
action:
- service: notify.ios_ohad_iphone
data:
message: '{{ trigger.to_state.attributes.friendly_name }} need watering'
data:
push:
badge: 0
category: 'plantnotification'
Thanks in advance