Hello everyone I’ve a question, there is a simple way to toggle a light in a scene?
name: Area1
entities:
light.Bulbo:
state: on
brightness: 200
rgb_color: [244,143,177]
light.gateway_light_34ce00908135:
state: on <-- I need toggle
brightness: 250
rgb_color: [244,143,177]
switch.Luce:
state: off
I know there is the automation way but it give me a lot of errors when I try to give brightness and color paramethers
I believe that lights/switches can only be on/off in a scene, I don’t believe you can toggle them, so you will have to go the automation route, post your non-working code here enclosing it in three back ticks, that’s the key to the left of 1 on the top row of the keyboard, or paste it leaving a blank line at the top and bottom of the code and select it then click the </> button to have it formatted so we can help
I’m sure we can work through those errors! Or, you could create this scene as a script instead. (Which is essentially just the “action” portion of an automation.)