Closed bakman2 closed 2 years ago
I've never managed to get Homekit to recognize the doorbell type - it always shows as unsupported accessory. If you get it working please let me know!
To answer your questions on switch values, the value received over MQTT (after decoding by any apply function) must exist in your switchValues
array - so your second apply function looks right to me. However, you have the configuration syntax wrong: the apply function is defined within the topic.
Try:
{
"type": "doorbell",
"name": "deurbel-hal",
"url": "mqtt://10.0.0.6:1883",
"logMqtt": true,
"topics": {
"getSwitch": {
"topic": "zigbee2mqtt/rooms/hal/switch/deurbel",
"apply": "return JSON.parse(message).action"
}
},
"accessory": "mqttthing",
"switchValues": [
"single",
"double",
"long_release"
]
}
Ah thanks, I overlooked that part. It works now;
[4/3/2022, 5:39:21 PM] [deurbel-hal] apply() function decoded message to [single]
[4/3/2022, 5:39:21 PM] [deurbel-hal] Received single - switch state is now 0
I've never managed to get Homekit to recognize the doorbell type - it always shows as unsupported accessory. If you get it working please let me know!
Yes they will show up as unsupported, as Apple seem to require certifications for it (i guess it usually involves cameras that will utilise their cloud for recordings), but the doorbell ring will work:
Aha, thanks - from memory that's improved since I last tried them. (I bought a Ring years ago, so haven't needed my own doorbell integration!)
How do switchValues work with a doorbell ? I fail to understand the documentation.
mqtt topic received:
Config:
after press, homebridge response:
I also tried with:
Same response.