I have several lights, grouped as primary and secondary. Some of them are dimmable led spots, and some are regular non-dimmable lights.
Dimmables and non-dimmable are mixed in the groups.
The dimmable spots are connected six in each group, and these led spots need eg. brightness: 50 to make them all light. If turning them on at a lower brightness all will not light properly, only one or two out of the six. This is due to some power technicality this is not related to the Fibaro dimmers or Home Assistant.
To get past this issue, I figured I need a script to turn the lights on, making sure they all turn on properly by putting in a delay of 3 seconds before dimming them down to brightness: 5.
My question is:
How can I make this pattern for turning the dimmable on more flexible, eg. by making a script that would do this or every argument light?
Is it possible to do something along this path?
script.turn_dimmables_on(entity_id)
Maybe appdeamon would be the right direction, except I have no knowlegde of writing appdeamon scripts.
BTW, now that I have a better understanding of what you were trying to achieve, I can see how it can be done with a single script using repeat (no need to pass an argument to a script). Anyway, you have already achieved your goal, using your preferred technique, so there’s no need explore alternatives.