Good morning all.
I can't seem to wrap my head around how to handle a switch device that has 3 different endpoints. I have sucessfully deployed several Hue lamps and I can switch them on/off without any problem, because they all support a single endpoint (e.g.: "state": "ON" to turn the light on; "state":"OFF" to turn it off).
Now, I also got a few Zigbee Nue/3A Smart switches, which carry 3 different load touch "buttons", but unfortunately seem to export a single device, with 3 endpoints, instead of 3 separate devices with a single endpoint like above... e.g: {"state_bottom"::"ON", "state_center":"OFF", "state_top":"OFF"}. This makes switching separate buttons much more complex, as you don't want to switch off the center and bottom loads when you try to switch the top button, for instance.
After much trial and error, I came out with the idea of using Indigo variables and filling their values programatically.. I developed a set of different python scripts to fill the value for the Botton, center and top variables. The python scripts work and I can put whatever I want inside the variables. Once the individual bottom, center and top variables are filled, I then also programatically fill a fourth variable with the payload I want to send.
The problem now, of course, is I can't seem to find how to reference Indigo variables inside the On Action Payload / Off Action Payload / Toggle Action Payload field in the Shim devices...
So the question is: Is this even supported?
TIA
Cesar