PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 44 forks source link

Offline Devices #159

Closed Mazzokun closed 6 years ago

Mazzokun commented 6 years ago

I'm using this plugin and most everything is working well :)

I can control state of the devices through Homekit and get real-time state of the device reported back to Homekit when the device is toggled manually.

My expectation is that when a device in domoticz goes offline through a loss of power or network, in home app there is no outward indication that the device is in trouble, in fact Homekit still lets me toggle the button on/off and behaves as though all is ok, meanwhile in domoticz the device is offline and I can't toggle the device.

PatchworkBoy commented 6 years ago

When you say a device, do you mean a Hardware Device within Domoticz' hardware menu? Domoticz doesn't transmit when a device has gone offline in terms of an item associated with a particular switch...

You'd need to write your own script to monitor that device, and then update a virtual switch in domoticz to represent that device's status. That switch will then show up in HomeKit, reflecting the status of whatever device you're monitoring. If you want notifications, you'll have to ensure your virtual switch is a MotionSensor or other similar device supporting notifications within HomeKit. I do this with the various Raspberry Pi's, SkyBoxes etc scattered around my home - all of which are bound to virtual switches in Domoticz using Domoticz' native LAN monitor or custom python scripts. I can then get an overview of what device is online or offline from the state of the switches in HomeKit.