@Mastiff wrote:
I have a Popp keypad, and when using code 1 it triggers scene one, code 2 triggers scene 2 and so on. I have this code working:
alias: Popp-koder action: data: payload: 1 topic: eg/Popp service: mqtt.publish condition: [] id: '110223457' trigger: platform: event event_type: zwave.scene_activated event_data: entity_id: zwave.popp scene_id: 1
And the result in the receiving end (EventGhost) is like this:
15:16:12 MQTT.eg/Popp u"1"
But what I would like is something like this:
alias: Popp-koder action: data_template: payload: '{{ trigger.payload }}' topic: eg/Popp service: mqtt.publish condition: [] id: '110223457' trigger: platform: event event_type: zwave.scene_activated event_data: entity_id: zwave.popp
But it doesn’t work. It sends the MQTT, but with no payload.:
15:09:46 MQTT.eg/Popp u""
So how do I get it to send the scene that has triggered as the payload? It just seems so “messy” to create one for each code.
Posts: 3
Participants: 2