Looking for a little help... simple notification on sensor

Learning a lot about HA. Still new to this. I’m looking for an automation to just send me a push notification, not an actionable one I don’t think, but just able to swipe it away, when a sensor is triggered.
In this example, it’s a water sensor. Samsung to be exact, the samji one.

binary_sensor.kitchen.leak.sensor_ias_zone - which I think is the water sensing entity. Current state is off. If it turns on, is when I’d like the push sent to my phone (android). I’m still learning about notify, but could use some direction on this.
I plan on using any help here to try building more and similar notifys to fit my uses.
Thanks!
edit: forgot to add, running HA on a Odroid.

The automation should be something like this-

alias: New Automation
description: ''
mode: single
trigger:
  - platform: state
    entity_id: binary_sensor.kitchen.leak.sensor_ias_zone
    to: 'on'
condition: []
action:
  - service: notify.mobile_app_
    data:
      message: Hello World!

You can read more about setting up notify services for your mobile phone in Companion Documentation.

Thanks. After working with the code, I got it running. I was wondering if there was a way to make one automation look at 3 (or more later) sensors, at the same time, and send a notify with a message specific to each sensor, as in kitchen, master bathroom, water heater, etc.
Or, do I have to build one automation for each sensor?
Thanks!!
Here’s the one working, so far… (sorry, don’t know yet how to do code in a post…

alias: KitchenWater Sensor notify
description: Kitchen
trigger:

  • platform: state
    entity_id: binary_sensor.kitchen_leak_sensor_ias_zone
    from: ‘off’
    to: ‘on’
    condition: []
    action:
  • service: notify.mobile_app_pixel_5
    data:
    message: Kitchen water sensor is getting wet!
    title: Kitchen water sensor reports
    mode: single

You can do that pretty easily as a automation in the UI by adding multiple triggers.

Would I just add all 3 triggers under each other? or just duplicate all that above, except change the entity?
I was visualizing something like -

trigger
entity kitchen leak
or
entity waterheater leak
or
entity bathroom leak

But I’m not sure enough on coding to make that happen correctly. Yet, anyway :slight_smile:

Like I said, you can do it all in the UI much easier but if you want to code it in yaml, here is what my automation looks like:

alias: Activate Siren - Contact Sensors
description: ‘’
trigger:

  • type: opened
    platform: device
    device_id: 0fbfd8e40a8b11eb944059a8e71a7a69
    entity_id: binary_sensor.centralite_3320_l_9d6a490e_ias_zone
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: e826140c0a8b11eba3d3fdaeac3fcb01
    entity_id: binary_sensor.centralite_3320_l_e394490e_ias_zone
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: 3b4a159e075e11ebbe90edafbca7ae2c
    entity_id: binary_sensor.centralite_3320_l_a26b490e_ias_zone
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: b81ab3e50a8c11ebb63d25ba8aaaa4c1
    entity_id: binary_sensor.centralite_3320_l_676a490e_ias_zone
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: 620010d30a8d11ebb8b707f95417fb8f
    entity_id: binary_sensor.centralite_3320_l_4c12260e_ias_zone
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: 31b4ab9ceade197063943b867a14777d
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
    domain: binary_sensor
  • type: opened
    platform: device
    device_id: 4897cbd66c86c7622f4fee92331f0ff3
    entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_4582f906_on_off
    domain: binary_sensor
    condition:
  • condition: or
    conditions:
    • condition: state
      entity_id: alarm_control_panel.home_alarm
      state: armed_home
    • condition: state
      entity_id: alarm_control_panel.home_alarm
      state: armed_away
    • condition: state
      entity_id: alarm_control_panel.home_alarm
      state: armed_night
      action:
  • type: turn_on
    device_id: 03a0f0d70a7a11ebb0711f3952dd6260
    entity_id: switch.siren_switch
    domain: switch
  • service: notify.notify_pushover
    data:
    message: ALARM siren triggered by {{ trigger.to_state.attributes.friendly_name }}
    target: S-8
  • service: notify.notify_pushover
    data:
    message: ALARM siren triggered by {{ trigger.to_state.attributes.friendly_name }}
    target: Julie-iphone
    mode: single

Tnx for that, pb. learned quite a bit from this post.