Can’t get this to work in 89.1, can anyone help?
I think its something to do with the data_template
Post what you have entered for the automation.
I have following:
- alias: "homeassistant_attack_attempt"
initial_state: 'on'
hide_entity: false
trigger:
- platform: state
entity_id: persistent_notification.http_login
condition:
- condition: template
value_template: "{{ trigger.to_state.state != off }}"
# value_template: "{{ trigger.to_state.state != 'None' }}"
action:
- service: notify.myphone
data_template:
title: "Neautorizovaný pokus o login"
message: "{{ states.persistent_notification.http_login.attributes.message }}"
data:
url: https://whatismyipaddress.com/ip/{{ states.persistent_notification.http_login.attributes.message.split("from ") [1]}}
And it works on 89.1 in the same way as before