Using a few Hue Dimmer Switches to switch lights on/off and dim up/dowm them with HA automations like below (dim up in this case). This works with lights paired to a Conbee using deCONZ, but did not work for a light which are paired to a Tradfri Hub which is added to HA as an integration. I know, the Tradfri Hub is not necessary when using a Conbee, but I am testing some things at the moment
Anyone able to share a working HA automation for dimming lights paired to a Tradfri Hub?
Thanks for your suggestion. I have tried both ‘brightness’ and ‘brightness_pct’ from developer tools an both work (‘brightness 1-255’ and ‘brightness_pct’ 1-100).
Then it looks like the datatemplate is invalided when using a light connected to a Tradfri Hub.
Your template is wrong, you are missing a single quote at the end of the template. Also you should avoid using ‘states’ and rather use ‘state_attr’, check the documentation here.
Ah, the single quote at the end of the template was missing when copy/pasting the yaml here. It is actually there.
Unfortunately, your version does not work here with a light connected with a Tradfri Hub. With a deCONZ light, it is working.(up and down, for monts, without any issue)
How is this possible, when you enter this template into the editor and the light is turned on, the number must be > 30.
Can you please show how the entity looks in Developer Tools -> States?
To be sure: My goal is to use this automation to set the brightness 30 higher every time when the automation is triggered.
When changing the brightness of the light group (Tradfri Hub) with the slider, the brightness of the light group is not changing, only the brightness of the individual lights of the group is changing:
In addition to this: dimming the Tradfri (group) light using this custom slider does not work as expected either. Choosing a dim level works, but the slider jumps always back to ths left, and does not stay at the touched dim level (as with other, also deCONZ, lights).
Ok, strange behaviour. Time to move all the lights to deconz, no issues with dimming a group of lights there I’m sorry but I really don’t know how to help you any further.