Version | core-2022.6.6 |
---|---|
Installationstyp | Home Assistant OS |
— | — |
esphome | 2022.6.0 |
Hello,
my first post. Sorry if i break any rules. Could not find an answer for my task.
I’ve got an esp32 with connected rgb LED on GPIO 0,2,4. And in Home-Assistant an automation to
switch on this led over a transition of 24 seconds. Everything is fine so far. I can control the LED
and change color in HA User Interface.
Now i want to change color with transition and delay. Something like this:
(Written in my own wild syntax)
-
LED my_light_left_rgb is on or any delayed trigger.
-
start
-
wait 30 seconds
-
change color to 255,0,255 with transition of 10 seconds
-
wait 30 seconds
-
change color to 0,255,255 with transition of 10 seconds
-
wait 30 seconds
-
change color to 0,255,0 with transition of 10 seconds
-
goto start
How can i solve this?
Is it possible to trigger color change with one or multiple timer?
What i already have:
esp32.yaml
output:
- platform: ledc
id: ledc_red
pin: GPIO0
inverted: true
- platform: ledc
id: ledc_green
pin: GPIO2
inverted: true
- platform: ledc
id: ledc_blue
pin: GPIO4
inverted: true
light:
- platform: rgb
name: "my light left rgb"
red: ledc_red
green: ledc_green
blue: ledc_blue
automations.yaml
- id: '1655649605936'
alias: LED rgb ein
description: ''
trigger:
- platform: state
entity_id:
- switch.led_schalter
from: 'off'
to: 'on'
condition: []
action:
- service: light.turn_on
data:
transition: 24
rgb_color:
- 0
- 0
- 255
target:
entity_id: light.my_light_left_rgb
Raimund