Subflow to be used with node-red-contrib-deconz
Example flow (the subflow needs two inputs and one output as shown)
The deCONZ TRÅDFRI on/off switch input node should be configured as follows:
The deCONZ light input node should be configured as follows (this is the default):
The deCONZ light output node should be configured as follows (same light entity as input):
The subflow is preconfigured for use with the IKEA Trådfri on/off (dimmer) switch. If you are using a Hue dimmer switch instead, the subflow should be configured as follows:
For best performance, use the same brand of bulbs in the same room.
Copy the subflow below to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option
Hi DIYTechie, first of all, cool flow! Really works like a charm. Love how you integrated the different options for full brightness/old state. I've integrated it with an Friends of Hue smart switch (basically a hue tap in a different package).
I tried to integrate it with the IKEA 5 button remote, bit i ran into a snag. The 5 button remote uses the single center button as the on/off switch. But a single press results in the output button output of "1002" every time. This means that it needs a toggle action to switch the lights. Unfortunately this is not possible with the current setup of your sub flow.
Would it be an option to add a toggle option in the sub flow properties tab? Setting this toggle option to Yes will set the sub flow to toggle the light with a single button output of 1002. `
Hope this is somehow of interest to you. I could help you test the flow, i have a IKEA 5 button remote.