I am attempting to create an automation that will set the brightness of three Zigbee Eaton Halo lights, without turning them on or off. They are already controlled by a timed motion sensor for on/off. What I want to do is at 6am, set the brightness to 75% (again, without turning them on), then at 8pm, I want the brightness to get set to 15%.
It looks like the only available options in the Automation GUI are Turn on, Turn off, Toggle, Increase and Decrease. I see no place to set the brightness level.
What am I missing here? I would think this Automation should be easy to pull off.
Oh, but I did have this functionality when I was using Mozilla IoT. These were actually the last 3 items I just moved from it, just yesterday. It worked perfectly there.
So this would be the Zigbee integration for Home Assistant, or the Eaton Halo integration specifically? Sorry, I am still kind of new with Home Assistant. Still much to learn.
No, these were added with a simple Zigbee scan after I removed them from the Mozilla IoT hub. So I guess this is part of the zigbee integration. I was using the Conbee II Zigbee dongle on that system. This one (Home Assistant) uses the Nortek adaptor. Perhaps that is enough of a difference.
Come to think of it I’ve recently been using adaptive lighting. It does just that, changes the brightness depending on the time of day without turning the light on, shade of white light as well. I think this should do what you need.
While I was not able to add on the repository for Adaptive Lighting, I did manage to make it work using a different method. Not sure why I couldn’t add it, but HA would just hang whenever clicking save.
I ended up adding a time range Condition and added one more automation. The “Timer Off” Automation works with both. So what I have now looks like this:
When you call the timer.start service with a duration value, that value overrides the timer’s default duration.
I don’t know why you called it an “external timer”. It doesn’t matter if it is defined in configuration.yaml or via the UI, both ways create the same kind (and only kind) of timer.
I called it an “external timer” because I am still really new at Home Assistant. Thanks for the valuable information. The test is running now and the lights should shut down in about one minute.
Edit: And it worked. Apparently the check box is ignored if the value is left at 0?
Is the 3-minute timer just for testing purposes? Meaning it’s there only to turn the lights off after 3 minutes, for testing, but that’s not what will be used in the final version?
It is designed to stay on for 3 minutes AFTER the motion stops. As long as there is movement, they should stay on forever as it constantly resets with motion. I just started with 3 minutes, and will probably adjust accordingly after living with it for a few days. You know, just to get a feel for it.
There’s an entirely different way to do that in Home Assistant that doesn’t involve using a timer entity.
FWIW, although I have an automation that does what you are attempting to create (motion-activated light that operates only at certain times of the day and whose brightness is based on a schedule … and can be temporarily bypassed by the end-user via the wall-switch), you might be better served by exploring some of the existing Blueprints designed for this purpose.
Very nice link. I had read a mention about the Blueprints but had not yet investigated anything about them. I will give this a good hard look this evening and get some ideas from it for sure. Thank you very much for this! Every little tidbit helps when one is a beginner.
I have used Mozilla IoT for about 1.5 years, and had basically run into its limitations. That was when I bought another RPi4 and put HA on it, and have been slowly moving things over from it. Well yesterday afternoon, somewhere a power transformer caught fire and my lights all started flickering about 5 times per second. Well, you know what happens whenever you flick on and off Zigbee lights that quickly. Yes, they reset. They ALL reset. So I basically started from scratch with Zigbee. So I just decided to move it all over at once at that point.
I also suggest you consider looking at the Light Group integration (not to be confused with the Group integration). It would let you create a virtual light consisting of the four Eaton Halo lights. Set the virtual light to on at 10% brightness and all four Halo lights will follow suit. It simplifies your automation because now it only needs to act on one (virtual) light. If you ever add a fifth light to the Light Group, the automation doesn’t need to be updated.