March 30, 2022, 6:23am
For Zigbee remote, I’d like to provide a mode in which any press of the button will change the state of Level by some predefined value.
In that mode I replace a button capability with a
switchLevel capability and am able to control it from the remote. However, I couldn’t find any way to mirror the switchLevel value from my remote to the actual dimmer device.
Is there any way to control dimmer with automation?
March 30, 2022, 6:39am
Hello Yakov, there is an architectural flaw in the dimmer implementation. The remote should not implement level capability.
It should be lights capability to allow step changes. Actually
@Mariano_Colmenarejo already added this capability to his driver
Updated list of Edge Drivers published in my channel (Feb/2)
(New RELEASE) New Edge Drive Zigbee Light Multifunction Mc:
This Driver has all the functions of the Zigbee Level ColorTemp Bulb Mc driver, which it replaces and will not be updated any more.
Added Color Control Capability with profiles for RGB and RGBW with 2700k-6500k Color temperature.
Thanks to the suggestion and collaboration to do the tests for
Works with lights, led strips with profiles :
Switch & Level
Switch, Level & ColorTemperature
Switch, Level, RGB, RGBW, RGBCCT, CCT
Could work with zigbee single dimmers, but not tested
Included Devices : See this link
I believe this must be included in the default level capability
Mirroring level can currently be done through rules:
The engineering team mentioned the mirror functions can be achieved using the
Rules API and the changes condition.
It is different depending on the capability configuration to set the attribute value.
For example, the Switch capability has two enum commands that don’t receive any arguments.
In this case, we need to check the change to a specific value (“on”/“off”) and send the same value to the other device.
This sample shows how we can mirror the switch events of a multi-component device that has a switch in two components (light and main), that’s also why only one deviceID is used.
"name":"Mirror switch events of main and light components",
March 30, 2022, 5:13pm
I still doubt there are many users of the RulesApi. I have tried to figure out how to implement basic things and it takes too much time and effort.