I have some automations that dim the lights in a certain room at a certain time. Specifically, in my living room, around 9 pm or so, the living room lights will switch to a night-time scene from the Philips Hue gallery, and then start dimming them over 30 minutes to zero as a sign to the kids that they need to wrap things up and go to bed.
But sometimes this is a problem in that when we need to stay up later than normal, the auto-dimming feature gets in the way, even if we switch to a bright light scene.
Is there a way to create a button that tells Hubitat to stop dimming certain lights? Maybe a button + rule would do this?
How are you initiating the dimming? If it's entirely from the Hue side of things, you will need to find a way to stop it on the Hue side. It could be as easy as just sending a specific on/off, level, CT, etc. command to the bulb or group, but it could require manually turning off some "activator" or however the sequence was initiated in the first place. This will undoubtedly depend on how this is set up on the Hue side. With something like Hue Labs, this may vary but is often a series of schedules set into place by virtual activator device, which Hubitat doesn't directly support but CoCoHue (which I think you're using?) should offer. Turning it on or off may work, and it would be possible to make that happen with a button event by way of a rule or other app--if that is it. But again, these vary...
If you're doing it all on the Hubitat side in the first place, you might be using something like one of the "...over time" actions in Rule Machine. If so, that's easy to stop by using the "Cancel timed actions" action on this rule from another rule (possibly including a Button Rule, though I haven't checked this in Button Controller specifically...), which could indeed be triggered with a button press. If you aren't and this sounds easier than any of the above, I suppose that's another option for how to create this automation in the first place.
Iβm doing it on the Hubitat side, using the rule that dims the devices over a certain time period, forgot what exactly itβs called.
How does one go about creating a button that cancels this, and would it cancel all delayed actions or can it be done to cancel only the delayed action of a certain device or a group of devices in a certain room?
"Cancel Rule Timers" applies to all timed actions in that rule, which would include actions like "Change color temperature over time" and "Fade dimmer over time" but also things like delays, waits for specific time, timeouts, etc.--plus periodic schedule triggers. The UI will mention these things when you choose the action. However, it applies only to the specific rule on which the "Cancel rule timers" action is executed, not all rules (you will see the option to select a specific rule and will have to choose one to be able to add this action to the other rule at all).
If you have an action like "Change color temperature over time" happening, it seems unlikely that you'd have anything else happening in your actions that would matter by this point, but I suppose the question remains of what your trigger is since this might affect that too. There should be workarounds if nothing else, including moving this particular task to a separate rule whose actions are just called from your "main" rule, then just cancelling the timed actions in this new rule--but what makes the most sense for your setup probably depends on how you already have this set up.
here are my rules.. where i use the physical switch on/off to turn on a virtual swtich and have thet referenced in my rules so it wont turn off the lights in the room after we have manually turned them up with the switch.. you could do something similiar..
i think there are new ways to do this with room lighting.. but my solution does work..
I use virtual switches to do a similar thing.
In my case I use the Room Lighting app. If the switch is on the room won't activate or turn off.
Its actually two virtual switches, The "TV Status" Switch is controlled by another rule which turns it on if the power usage of the TV goes high enough (ie, someone is watching TV). The "FR Manual Control" switch is controlled manually from the dashboard, although it would be simple enough to set up a button or switch to turn it on.
Before the Room Lighting app I made a simple rule in Rule Machine that would pause the Motion Lighting if either of those switches were on and resume when they turned off.
I have found the ability to use rules to pause/resume other rules to be useful in many situations.