Hello. I have several wireless motion sensor using RF433. Those sensors are configured as switch (rflink).
I use alarm which is fired by those switches and message with timestamp is being sent.
Is there some way how to send also switch name in pushbullet message? I mean the name of sensor which notices moving (state off to on change) Thank you.
If you want the friendly_name then the following should be useful…
- service: notify.myzanzito
data:
message: 'Tampering'
data_template:
say: 'Someones tampering with the {{ trigger.from_state.attributes.friendly_name }} device'
Thank you Keith. I use only name on my motion switches. But . But code bellow doesn´t send sensor name:
data_template:
title: "Alarm"
message: 'Poplach v {{ now().strftime("%H:%M") }} - senzor {{ trigger.from_state.attributes.name }}'
Try {{ trigger.from_state.name }} or you can use the to_state as well.