Send a notification message to android phone with Zanzito

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'

check your indentations.

i’m not sure but i think the indents in your action under ‘data:’ are incorrect based on the example you posted. both lines there should be indented two spaces.

Thanks for your answer :slight_smile: