kuestess / homebridge-platform-insteonlocal

Homebridge platform plugin for local Insteon control
Other
76 stars 26 forks source link

IOLinc showing backwards on home bridge. #318

Open languy99 opened 1 month ago

languy99 commented 1 month ago

Hello,

I have the IOLink set up for my garage door and it is reporting the status backwards. When it is open it shows closed, when it is closed it shows open. Is there a way to fix this? IMG_3984

IMG_3985

if I reboot home bridge the state changes and then it gets reported correctly.

IMG_3988 IMG_3986

kuestess commented 1 month ago

@languy99 You can add the invert_sensor field to the device config for your Iolinc (set it to true), and you should get the correct sensor status.

languy99 commented 1 month ago

I think I figured it out. The issue is not the it is inverted it’s that as the garage door is closing it gets the status to fast before the door is closed and it thinks it is still open. I set a refresh of 60 secondsand once it refreshes it gets the correct state. I wonder if introduce a delay of let’s say 30 seconds after if that would also fix it.

Also I think the extension might be broken with the latest version of homebridge 1.8.4. I had to roll back to 1.8.2 to get it to work again.

kuestess commented 1 month ago

Just set the gdo_delay to a larger value (however long it takes for your garage to close) and that should do it. What issues do you have with 1.8.4? I'm running that version no problem.

languy99 commented 1 month ago

Huh 1.8.3 broke it and now 1.8.4 seems to be working fine. Weird. Well all is good now.

languy99 commented 1 month ago

That didn’t work.

This is what the log shows.

‘20/2024, 7:05:24 PM] [InsteonLocal] Setting Garage door relay to 0 [7/20/2024, 7:05:24 PM] [InsteonLocal] >>> New target state is false (Open) [7/20/2024, 7:07:08 PM] [InsteonLocal] Setting Garage door relay to 1 [7/20/2024, 7:07:08 PM] [InsteonLocal] >>> New target state is false (Open)’

The new target state when it is closed should change to true correct? It doesn’t, it states false (open). If I refresh then it pulls the correct state.

‘7/20/2024, 8:40:24 PM] [InsteonLocal] Setting Garage door relay to 0 [7/20/2024, 8:40:24 PM] [InsteonLocal] >>> New target state is false (Open) [7/20/2024, 8:40:45 PM] [InsteonLocal] Setting Garage door relay to 0 [7/20/2024, 8:40:45 PM] [InsteonLocal] >>> New target state is false (Open) [7/20/2024, 8:42:44 PM] [InsteonLocal] Polling status for Garage door... [7/20/2024, 8:42:44 PM] [InsteonLocal] Getting sensor state for Garage door’