Hey,
I have several plant sensors around my house and use the integration by Olen (GitHub - Olen/homeassistant-plant: Alternative Plant component of home assistant).
I tried to write an automation to trigger on state change of any of my plants and send a notification to my mobile with the name and state of the triggering plant:
alias: Pflanzen Gießerinnerung
description: ""
trigger:
- platform: state
entity_id:
- plant.pflanze_matthias
- plant.pflanze_flur
- plant.pflanze_treppenhaus
- plant.pflanze_wohnzimmer
condition: []
action:
- service: notify.mobile_app_sm_g965f
data:
data: >-
Entity:{{ trigger.from_state.name }} Zustand {{ trigger.from_state.state
}}
mode: single
The problem is that this never sends out a notification, in traces section I only see error:
Triggered by the state of plant.pflanze_treppenhaus at 14. Dezember 2022, 10:40:47
Benachrichtigung: Send a notification via mobile_app_sm_g965f
Stopped because an error was encountered at 14. Dezember 2022, 10:40:47 (runtime: 0.01 seconds) expected dict for dictionary value @ data['data']
Does anyone knows why? I don’t see it…
Regards,
Anduril