Closed Aohzan closed 3 years ago
As specified in the service documentation additional data for notification services is sent in dict named data inside of the main data dict.
You can check this integration example on how the payload should usually look.
Example:
automation:
- alias: "Front door motion"
trigger:
platform: state
entity_id: binary_sensor.front_door_motion
to: "on"
action:
service: notify.livingroom_tv
data:
message: "Movement detected: Front Door"
data:
icon: "/home/homeassistant/images/doorbell.png"
Hello,
When I add data parameters for the service like this :
it will send to a sub data key to the service.
You have to merge the
msg
with thedata
to provide only onedata
dict: