Hello, how can i get the variable for the triggering entity_id in an automation like this?:
alias: "Test"
trigger:
- platform: state
entity_id:
- sensor.testsensor1
- sensor.testsensor2
- sensor.testsensor3
- sensor.testsensor4
action:
- service: notify.telegram
data:
message: >-
Triggering entity_id <-- here i want to get notified which sensor triggered the automation..
mode: single
Never mind, i got it to work. I rewrote the whole automation, identically(?), and it worked. I dont know what i had done wrong before, probably som stupid yaml space missing or something