homebridge-http-switch icon indicating copy to clipboard operation
homebridge-http-switch copied to clipboard

Disable StateCheck (unreachable devices)

Open mol7os opened this issue 3 years ago • 4 comments

If devices will be turned off (for example at night) HTTP-Switch is marked as a not reachable device in Homekit (as to expect). In my case, I use some switches as "remote" for my TV, so they are not really important to mention as offline in HK.

It would be nice to have a chance to disable the "StateCheck" for such a target. To flag, such items in HK will be misleading. I did not find a way to ignore the state within HK, so it would be nice to have such an option homebridge-http-switch.

mol7os avatar Jan 27 '21 08:01 mol7os

I know this is old, but the problem somehow persists. Would it be possible to add a variable that lets you interpret "unreachable" as off for example?

My logs are flooded by the following message, as the TV is unreachable when off...

[7/31/2022, 6:18:32 PM] [Ambilight] getStatus() failed: connect EHOSTUNREACH 10.14.107.81:1925
[7/31/2022, 6:18:32 PM] [Ambilight] Error occurred while pulling update from switch: connect EHOSTUNREACH 10.14.107.81:1925
[7/31/2022, 6:19:04 PM] [Ambilight] getStatus() failed: connect EHOSTUNREACH 10.14.107.81:1925
[7/31/2022, 6:19:04 PM] [Ambilight] Error occurred while pulling update from switch: connect EHOSTUNREACH 10.14.107.81:1925

luc-ass avatar Jul 31 '22 16:07 luc-ass

And accessory is reported offline in HomeKit too. This feature would be very appreciated.

Shaft405 avatar Dec 14 '22 20:12 Shaft405

Perhaps this is where we could fix it. I'll give it a shot over the Hollidays... or just make errors less verbose ;)

luc-ass avatar Dec 14 '22 20:12 luc-ass

Came here researching this… good timing I guess. I use this for a switch to run/restart the piccap software on my LG and get similar issues when the TV is off. Ehostunreach failed to connect

asvictory3 avatar Dec 18 '22 15:12 asvictory3