the problem is that you created a sensor in HA.
the app creates the sensor itselve if it doesnt exist.
a template sensor depends on a template. setting that value is a problem.
so remove the template sensor from HA and you are good to go.
you can do even more with it if you like.
you can edit and add attributes.
so you can change your code so, that in the sensor attributes you could always see the last 10 messages.
and you could add a time attribute to see the time from the last message
and that you can use to add times to the last 10 message attributes.
Would you mind sharing or uploading a complete notify app for appdaemon? And how to integrate this in has to add automations. My idea us to show messages in the dashboard sent by homeassistsnt
lol.
what message would you like to see in the dashboard?
something like this?
sensor:
- platform: template
temp_message:
friendly_name: temp
value_template: '{%- if states.sensor.temp>25 -%}{{ "wow, it i quite hot here" }}{%- else -%}{{"brrrr, maybe i should put on the heating, because its not really warm now."}}{%- endif -%}'
entity_id:
- sensor.temp
yes, i still use this.
and i am very happy with it.
i even expanded it.
i use
self.set_state(“sensor.notify”, state = message) from 2 different AD versions (so i can use it in AD 1 and the app is only in AD 2)
i use
message = “some text:4:300” to let the message be notified 4 times with 5 minutes in between
message = “Alexa;some text” to let alexa speak the text on default group
message = “Alexa;(living room)some text” to let it speak in the living room
message = “Alexa;(first floor)some text” to let it speak in some group