I have tried script from Zanzito – User manual, but i don’t know what is wrong here.
Script to send a notification message:
script:
zanzito_send_notification:
alias: Send notification to Zanzito
sequence:
service: mqtt.publish
data_template:
topic: 'zanzito/{{ dest_id }}/notification'
payload: '{{ message }}'
qos: 1
retain: 0
You can call this script with:
- service: script.zanzito_send_notification
data:
dest_id: '<device-name>'
message: 'message text'
Here is my configuration. I want notification on Zanzito when motion detected.
- alias: 'S7 notification for motion detection'
condition:
- condition: state
entity_id: binary_sensor.sensor_2
state: 'on'
action:
- service: script.zanzito_send_notification
data:
dest_id: '<device-name>'
message: 'message text'