Dear all,
I am tinkering around with the new Hue specific profiles in my environment and struggling with some not expect issues. I just want to let you know what I am faceing and discuss possible solutions with all of you. I am trying to connect a TRADFRI remote control to a dimmable light. As a side note: the TRADFRI remote control supports 5 different buttons and only 3 events (e.g. 1001, 1002 and 1003, etc.) for each of them. Let’s assume the dimmable has a brightness
Channel and the remote a buttonevent
Trigger, dispatching one of the above mentioned events.
First of all I added a “hue:toggle-switch” profile to a link between a Switch
Item and the brightness
Channel. This is working nicely.
Switch myBulbPower {
channel="hue:0100:1:1:brightness",
channel="hue:0830:1:2:buttonevent" [profile="hue:toggle-switch", event="1002"]
}
After that I tried to add a “hue:generic-command” profile to a link between a Dimmer
Item and the brightness
Channel. Know the issue happens. My expectations are when event “2002” has been triggered the brightness increases, and when event “3002” has been triggered the brightness decreases. Changing the brightness using a Slider element in a Sitemap is working fine. But pressing desired buttons only the second one for “DECREASE” is working.
Dimmer myBulbBrightness {
channel="hue:0100:1:1:brightness",
channel="hue:0830:1:2:buttonevent" [profile="hue:generic-command", event="2002", command="INCREASE"],
channel="hue:0830:1:2:buttonevent" [profile="hue:generic-command", event="3002", command="DECREASE"]
}
Currently I am thinking that the framework somehow restricts the multi channel linking to one link per Item and Channel. Meaning during creation one Link will be suppressed. Now the first question: Do you experience similar issues?
What can be a possible solution?
- Change the design of the Hue specific profiles to allow more than one “event” for configuration
Rename “event” parameter to “events” and accept a comma-separated list. An example could say more than words:
Switch myBulbPower {
channel="hue:0100:1:1:brightness",
channel="hue:0830:1:2:buttonevent" [profile="hue:toggle-switch", events="1002,1003"]
}
This solution will solve a second issue I experienced while testing. If I pressed the button a little bit longer not a “press” was triggered but a “hold released”. BUT this solution will not work with the “hue:generic-command” profile.
- Solution No. 1 for the toggle profiles and a mapping between commands and events for the configuration - similar for the mapping in a Sitemap for Selecting elements
Dimmer myBulbBrightness {
channel="hue:0100:1:1:brightness",
channel="hue:0830:1:2:buttonevent" [profile="hue:generic-command", commands="2002=INCREASE,1003=INCREASE,3002=DECREASE,..."]
}
This solution needs more text to configure multiple events for the same command.
- Open a feature request to enhance the framework
I am not sure if I am able to implement it on my own because currently I am more or less the profile user not the expert in the core implementation.
Which way do you prefer?
Your opinion and different suggestions for different ways to solve this are very much appreciated
Have a nice evening.