Dimming a light globe

hey TapioX, thanks for this. I actually already use the Zigbee Light Multifunction Mc driver for my Ikea globes. Unfortunately the lights I wish to dim are hue lights and these have been brought into ST with Philips Hue Beta edge driver by @blueyetisoftware so I can’t use the multifunction driver.

I didn’t know about the setLevelSteps command so I’ll have a play with it as I think it will work somewhat. Ideally it would be nice to use an every command like:

If: switch turns off
Then:
If: Level >10
Then: ever X seconds, setLevelStep -10.0 until Level <10

I get the feeling that something like this can be done in the rules API though or else there would most likely be an example of how to dim lights somewhere.

I also believe that that the every command can’t be nested so it would have to be in its own rule dedicated to a specific device. I’m also not sure that there is a good way to exit the every command once the light level reaches my desired end point. @nayelyz
posted a code in this thread Rules API exit from every loop? but it seems to remove the rule completely. also, if I took this approach I would have to somehow call a rule from a rule which again, I don’t know if this can be done.

1 Like