#Notifier text substitution

1 messages · Page 1 of 1 (latest)

spark marten
#

action:

  • choose:
    • conditions:
      • condition: trigger
        id:
        • Hall
          sequence:
      • service: notify.telegram
        metadata: {}
        data:
        message: "Hall motion {{ states('binary_sensor.hall_motion_iaszone') }}"
#

This works but displays "on" or "off" after "Hall motion" which is not ideal. Is there an elegant way to change "on" and "off" to "detected" and "clear" on the fly please?

limpid cedar
spark marten
#

It is current

#

Thank you