I have a propritary system called ZenseHome around in the house, all wall lightswitches and outlets are ZenseHome, and several ceiling outlets.
At some point, ZenseHome added MQTT support for their system, so I created this:
Pressing the Switch send a signal over 220V cable to the ZenseHome box, that post a message on a MQTT Tpoic, that Home Assistent picks up, and sends a toogle to the Hue Brige, that informs the Lamp over ZigBee..
Worked ok
Later I introduced Node-RED:
Worked pretty well.
This we started seeing som smaller periods, where the light would not work for some 1 minute... I was thinking that Node-RED or Home Assistant may be hanging due to Ressouces on the Laptop running it.
So I simplified - at this Time ZenseHome has introduced Philips Hue support:
Strangely, this solution did not work very well, besides the hanging times, from pressing a switch until the light toogle took like 1-2 seconds, and on several switches we had to press several times...
So I am back to the solution with Node-RED.
My only conclosion is that the Hue interface in the ZenseBox is not working well.
Another option that I not have tested, i using the Hue palette (Plug in) for Node-RED.