danieljbnz / homebridge-homeqtt-alarm

Homebridge MQTT Security Alarm Plugin for HomeKit
Apache License 2.0
8 stars 3 forks source link

mqtt messageTopic #5

Open leemcx opened 4 years ago

leemcx commented 4 years ago

Hi, Is it possible to subscribe to multiple mqtt topics on homebridge-homeqtt-alarm for sensor activity? I'm aware that this was designed to be used with Sonoff RF bridge so all sensor activity is published to one topic but i'm trying to implement this with two zigbee sensors using zigbee2mqtt and the payload of each sensor is published to a unique topic. for example: zigbee2mqtt/Doorcontact zigbee2mqtt/LoungePIR I have tried using the multi-level wildcard as the messageTopic for example: zigbee2mqtt/# but this didn't appear to work. Any suggestions? Thank you.

woodgieboodgie commented 3 years ago

Did you manage to figure this out as I am having a similar challenge..

rebelnme commented 2 years ago

I personally like this software, the creator has done a good job; but I agree with the above comment. I ended up writing a small python program to monitor the MQTT sensor topics and write them to the one topic that the system subscribes. It makes the system work and work well. The other problem that I can't solve is being able to change the mode of the alarm by using MQTT. It writes the mode to a MQTT topic but it doesn't read the set topic from what I have tried.

DennisJohnsen commented 1 year ago

Old thread, i know.

I just got my self hand on a Keypad from Frient that is in Zigbee2MQTT, together with all my other sensors etc.

I would suggest you guys to use NodeRed or something to combine your sensors' states into one MQTT topic that this plugin then can use. This will make it endlessly scaleable, and ability to use other sensor/devices to work with this plugin.