Hi. I am pretty new to HA but still feel I have come a long way, but I’m struggling with how to update a dummy sensor from automation. I have ctreated a dummy sensor in configuration.yaml:
input_text:
flightnumber_txt:
name: actual_nbr
I have a entity card in lovelace which only shows unkown at startup.
In my automations.yaml I have this automation:
- alias: 'Flight entry notification'
trigger:
platform: event
event_type: opensky_entry
action:
- service: notify.mobile_app_sm_n950f
data:
message: 'Flight entry of {{ trigger.event.data.callsign }}'
- service: input_text.set_value
data:
entity_id: input_text.flightnumber_txt
value: "{{ trigger.event.data.callsign }}"
The automation works fine. I get an notification in my HA app on my phone that show the correct flight number. The problem is that it doesn’t update the value of my sensor and in Lovelace the card only show unknown.
I hope someone are able to tell me what I’m doing wrong.
Thanks for your help.