Multiple updates when using the webinterface

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jbjalling
Posts: 19
Joined: Tuesday 09 February 2016 23:19
Target OS: Linux
Domoticz version:
Contact:

Multiple updates when using the webinterface

Post by jbjalling »

Hello,

I have made a hardware plugin for Schneiders IHC system (Home automation). The plugin subscribes to event changes from the IHC controller (another piece of hardware).
When a physical switch is pressed or a lamp is turned on or off, the plugin updates the status of the lamp in Domoticz - it works great.

But when the lamp is turned on or off from the web interface, the status of the lamp is both updated by Domoticz, and by the hardware plugin resulting in two device updates in the log, like this:
2018-01-14 17:32:06.600 (ihc) Light/Switch (Lounge)
2018-01-14 17:32:06.622 (ihc) Light/Switch (Lounge)

What is the best way to handle this? Is it possible to prevent the webinterface updating device status for some devices?

PS. where is the correct subforum to post questions like this?

Thanks,
BR Jonas
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest