Hi,
I have successfully set up an ESP32 based Apple Homekey, which sends messages via MQTT. The messages do arrive in Home Assistant and I now want to trigger a KNX switch if the payload homekey:true is received. These messages will only be sent if an authenticated phone is presented to the NFC reader.
The incoming message looks as follows:
Message 1 received on homekey/auth at 9:18 PM:
{"endpointId":"0EF5B8274512","homekey":true,"issuerId":"2F39C4D29D6B15A2"}
QoS: 0 - Retain: false
I have a MQTT sensor configured like this:
mqtt:
sensor:
- state_topic: "homekey/auth"
qos: 0
name: "Homekey Nebeneingang"
icon: mdi:lock
And this is the KNX switch:
knx:
switch:
## Nebeneingang
- name: "Nebeneingang öffnen"
address: "5/0/12"
state_address: "5/0/13"
How can I send “on” to the switch if a respective MQTT message is received?
Thank you!!
Klayman