homebridge-dafang icon indicating copy to clipboard operation
homebridge-dafang copied to clipboard

Update to reflect changes in EliasKotlyar / Xiaomi-Dafang-Hacks

Open sedony23 opened this issue 4 years ago • 5 comments

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 avatar Mar 17 '20 18:03 sedony23

@sedony23 did you make the changes on your setup, and can you create a pull request for this?

mkormendy avatar Apr 05 '20 02:04 mkormendy

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.

machineglow avatar Apr 22 '20 19:04 machineglow

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.

machineglow avatar Apr 22 '20 19:04 machineglow

motionSensor.js:

Hi there ...

where can i find this File? I searched so much, but i did not find it.

CU Kai

NoTrace-Kai avatar Apr 25 '20 18:04 NoTrace-Kai

node_modules/homebridge-dafang/src/accessories/motionSensor.js

Line 32

jlg89 avatar Sep 22 '20 20:09 jlg89