Closed pfrasun closed 2 weeks ago
If someone wants to take a stab opening a PR that adds v2 support, I'd be glad to review! Otherwise I'll take a look in a couple weeks when I have some bandwidth
Just as a reminder. Do you plan to do something about it?
Thanks for the reminder! Turned out to require fairly substantial changes but the v4 version should support both Homebridge 1 and 2
Version 4 does work with HB2, but the plugin itself stopped working for me. Switches do not trigger occupancy sensor.
Odd - it appears to be working for me @pfrasun are you running v1 or v2 of homebridge? Anything showing up in the logs that might be useful for debugging? Is it just specific types of switches that aren't working? Can you share the problematic config?
That is really strange. I tried in both configs:
There are no errors in logs related to the issue. Switch events are not shown it means the switch does not work. New installation did not solve it.
Stateful switches shouldn't turn off the presence sensor unless the stay occupied delay is set to zero (otherwise they'll stay on after the switch flips off for the stay occupied delay duration). Have you tried reverting to 3.x to ensure it's behaving differently in v4 than it did in v3? If it's definitely borked, can you share the part of your config for the plugin so I can try to replicate your exact setup?
Yes, 3.3.0 works as intended. I use it with presence sensors having no delay, but also sensors with delay don’t work, I tried it.
I think I figured it out and fully fixed in 4.0.1! I removed a previously-undocumented private service (basically home bridge HAP changes appear to make these kind of dynamic characteristics not as kosher anymore). Let me know if this solves it https://github.com/Jason-Morcos/homebridge-magic-occupancy/pull/52
Many thanks, it looks like it works this time.
This plugin is sadly not compatible with HB 2.0. After installing HB 2.0 Beta 11 plugin does not start properly and ends in the endless restart loops. Below errors show in the log: