nfarina / homebridge-dummy

Dummy switches for Homebridge: https://github.com/nfarina/homebridge
267 stars 81 forks source link

Stateless switch turns on by itself #41

Open kheewei opened 3 years ago

kheewei commented 3 years ago

Hi, I have a stateless switch which i use for a very simple automation (so simple that i kinda forgot why i did it).

accessories involved: Master AC Check -> Stateless switch. Upon turning on, run apple home shortcut to check current state of [Master AC] switch. If current [Master AC] state is 1 (switch is on), turn [Master AC] off, and light up bulb with red. If current [Master AC] state is 0 (switch is off), turn [Master AC] on, and light up bulb with green.

Master AC -> Stateful switch. I think I was trying to just mimic the current air conditioner state, and the light is for visual representation outside of the app.

Yeelight Light Bulb -> Colour light bulb, this is compatible with Homekit, not through Homebridge.

So for a while now, my colour light bulb just lights up for no reason, and after checking homebridge logs, it's because the [Master AC Check] switch was triggered. But, I did not trigger it...................... not physically, not via home app, not via homebridge. Is there a way to check why it was triggered? (but i'm guessing this is related to viewing homekit logs itself)

A bit more info bout this [Master AC Check]. I assign to turn this on (through Home app) when I single click and double click on a xiaomi wireless switch which is connected to the Aqara M2 hub. On the Aqara app itself, the single click will trigger the AC remote to turn on/off (via IR blaster), but double click does nothing (in case the [Master AC] status is not in synch with actual AC on/off, I'll just double click to switch the [Master AC] state without actually controlling the AC).

Refer to attached log line 25-27. I'm not sure why homebridge keeps trying to connect the cameras, but I guess i'll post check over there. log.txt

pickanothername commented 3 years ago

I have a possibly related issue; my timer switch will sometimes turn on and get stuck on (when I try to turn it off it turns back on immediately) The (only) solution is to restart homebridge.

pickanothername commented 2 years ago

Any updates on this? The issue is getting more prevalent. Have to restart HB daily now.

pickanothername commented 2 years ago

Created #44 for my issue. Not sure if the two are related.