I have a couple of dimmer tiles that only turn on @ 100%, while others turn on at the last setting. How can I set a default dimmer level for these tiles?
Am I the only one who has this issue?
Not sure how I missed this post.
The different behavior is based on the manufacturer or integrationâs implementations. When you turn the light off, does it automatically set the level to 0%? If not, you might use Variables to store the level value when the switch is turned off, and then create a rule to send the setLevel
command with the variable as the argument, then add rule to dashboard, so you can tap it to dim the light to the previous state. (Assuming the setLevel will turn the light on but itâs based on the manufacturerâs implementation again.)
Ah ok, so its manufacturer based. Can I set up two rules for one tile? One for on and one for off? Or would I need to make two tiles?
You may be interested to check out the Super Tile which allows you to add items (devices, variables and icons) and configure their tap actions in one tile.
Ah yes, great use case. Thanks!
I would add that you could use a single rule to conditionally send either on or off.
Itâs just a balance of what you want. Setting up a toggle action in a Super Tile is pretty straightforward as we have a macro there, but you have to recreate the other parts of the tile. Compared to setting up a rule and having to use the special $.runRule() hyperlink syntax on a normal switch tile.
I would also add that some devices allow you to configure whether they turn on to 100% or to last brightness. Thatâs going to strongly depend on the device though and if they provide that configuration or not.
I wasnât having luck with the variable, but I set up a rule and added itâs own tile to my dashboard - next to the tile for the related light. So basically, itâs a shortcut tile to turn the light on at a specific dim level. Iâll play around with the variable more, and the toggle action in a Super Tile.
Now that I think about it, the toggle action wouldnât help you here. Itâs still sending the on()
and off()
commands. Still, a single rule that âtogglesâ between your desired states still might work.
Iâm assuming your âFront On 1%â rule just calls a setLevel(1)
type of command, but you could adapt the Else side of the rule accordingly.
You run a rule from a regular Thing tile by changing the action to Hyperlink and using the $.runRule(RULEID)
syntax or you can select a rule directly in Super Tiles.