New to HA, but wowed by the relative ease of getting it going.
Maybe someone can point me i right direction here. I’d like to create a “3 way toggle” for a smart bulb where the “stops” are on-white light, on-blue-dimmed-light and off.
Dropdowns looked promising. I also have 2 scripts for the 2 on states, but I cannot figure out how to put it together with off and then use it with a remote button to cycle through.
i think we’re going to need a bit more clarification in order to help you achieve what you’re trying to achieve. a “3 way toggle” traditionally means that you have 2 physical switches that do “on/off” and one light bulb that does on/off. but i don’t think that’s what you’re asking for.
sounds like you have a 3 way light bulb (white, blue, off). how many physical switches do you have? and what buttons do those switches have? i’ve seen some with 1 button, 2 buttons, 3 buttons. presuming it’s not 3 buttons, what do you want each button to do when pressed? and if you have more than one devices (switch), what do you want each to do depending upon the state of the light?
i presume you have those buttons and the smart bulb already enabled in home assistant and you’re just trying to tie them together?
be pedantically verbose about what you are looking to do and we can better help you.
if you’ve already tried to build automation for it, post what you’ve got here. it tends to help. don’t be embarassed about having it wrong or bare bones…
A colour smart bulb on a dumb switch (non issue in this case). I use the bulb from sunset to 11 on full white (evening) At 11, the bulb lowers to 20% and a colour (night). Then at sunrise it turns off.
This is a main floor hallway.
I have it working well on HA with 2 scripts, 1 for evening and 1 for night. Then 3 automations handle the evening, night and sunrise triggers.
The downside is when we have company and we’re still downstairs and the light goes out at 11. I can just turn them back on using my phone, but I need a wife-friendly solution too.
To wit, I got the Zooz Remote ZEN37, and want to program one button to toggle through the evening, night and off modes.
Pushing the button once should run the evening script, a 2nd push withing seconds should run the night script and a 3rd script would turn off. A 4th push should start back with the evening script, and so on.
I’ve looked at automations, scripts and scenes, but do not see anything to build this type of cycle.
+1 to @NathanCu suggestion about input_select which is actually the same thing as the dropdown that you initially called out.
here’s the doc on it:
i would create the input_select/dropdown in the ui helper section and define the 3 states you want (evening, night, off).
then in your automation, trigger on the button press and call input_select.select_next with cycle: true which will tell it to cycle back to the beginning. and also have an automation change your smart bulb when the input_select changes.
i’d start that first. you said that you wanted to do it within seconds, but i’d tell you to hold off on that for now.
also, when you have your existing automation turn on in the evening and night… currently it’s turning on the light bulb. i’d encourage you to consider having it change the input_select… that way the input_select stays in sync…
give this a shot. if you want help with the actual coding instead of just directional help, then post your code and ask… it’s otherwise hard to help you with the coding w/o a starting point.
Thank you and @NathanCu. I actually have a development (albeit databases) background, so I can muddle through any coding.
The curse/blessing of HA is that there is so much that is possible and likely several ways of getting the same result, that it can be hard to know where to start. This is just my 2nd week using it.
in the ui, if you create the dropdown, when you go to yaml, it will show up as input_select.
and about this:
this is so true. can’t tell you how many times i suggest a solution and someone comes along and provides another way to achieve the same outcome but in a more elegant way such that i prefer their answer to my own