I hope I understand correctly what you are saying.
Bitghtest setting is indeed at 250.
My flow is very simple as for testing I just start it with timestamp inject node (that doesnât fire every repeatedly).
So when my light is at brightness 250, when I hit that inject node - light dims to that 2 value - if instead of 2 Iâll use ie 100 - it dims straight to 100 - as if it would not take - 60 into consideration at all.
This of course is not the thing when it comes to increasing brightness.
I use similar setup for color_change - that works the way intended - it changes colour until it reaches either 252 or 500 (mireds).
So my assumption was that you are using this JSONata successfully to increase the brightness.
This requires the ability to read brightness using $entities(âlight.nameâ).attribtues.brightness, as well as the ability to set brightness using a service call.
So you are using the code, and it is working, just setting to the â2â value or â100â value. This is what I expect, since your code is using $min
Therefore, I changed the code to use $max, to pick up the greater of the current brightness (less 60) or 2.
I donât have your entities, so I have tested this using try-jsonata
The bit at the top is just creating a dummy function $entities to return the âcurrent brightnessâ of 230.
The code works, and as I am using 50, returns 180.
The second time this would return 130, then 80, then 30, then 2.
Is this a light group defined in home assistant? Recently there have been problems addressing groups of lights together. The solution is to expand the light group so that you address each entity individually.
thank you kindly for going extra mile and test the actual code @Biscuit - now for the strangest part, for what @Mikefila suggested - I went and checked single entities of the group (just one) and this code indeed works on single entity BUT whats the most bizarre - I went back and changed but to group entities - and it started working for the group! I mean â i just donât know what happened that it suddenly started working with this zigbee2mqtt created group.