homebridge-dafang
homebridge-dafang copied to clipboard
Update to reflect changes in EliasKotlyar / Xiaomi-Dafang-Hacks
Elias updated his Xiaomi-Dafang-Hacks using different MQTT topics.
See: "move mqtt snapshot to a different topic. Fix #1300" (https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/commit/daf6de21485d044af6f399f2cc2fe8f316ec5f81)
Motion Detection is not working anymore... Please update your homebridge plugin :)
@sedony23 did you make the changes on your setup, and can you create a pull request for this?
I ran into this issue when I had no recordings from today (I have homekit automations that turn on recording based on these motion sensors). I had updated my Dafang FW last night so I figured something broke. Plus my homebridge log was missing all the lovely dafang mqtt messages. This lead me to this post.
I'm just a git beginner and haven't gotten git setup on my system but here's the fix in motionSensor.js:
configureMqtt() {
this.subscribeToMQTT('/motion')
}
to
configureMqtt() {
this.subscribeToMQTT('/motion/snapshot')
}
I just implemented the fix and restarted homebridge and recordings are live again.
I tried making a branch and creating a PR but I don't have permission to do either things on this repo. oh well. Hopefully someone can make use of the info above.
motionSensor.js:
Hi there ...
where can i find this File? I searched so much, but i did not find it.
CU Kai
node_modules/homebridge-dafang/src/accessories/motionSensor.js
Line 32