hi all,
i have a rgb light pannel using leds, i have a magic light rgb wifi controller reflashed to use esphome.
what I want to do is have the light cycle through red,green and blue, then settle on a custom colour every time the 12v power supply is plugged in. this would give me a visual indicator that the leds are still opperational, and that the controller is powering up…
the ideal option would be that the panel lights up red on power up, blue on searching for wifi, green on connecting to wifi and settles on a custom set colour after a few seconds, but im my mind this is a whole lot harder.
any help would be greatly accepted… this is the esphome setup on the controller just now…
esphome:
name: emergency_light
platform: ESP8266
board: esp01_1m
wifi:
ssid: "************"
password: "************"
manual_ip:
static_ip: 192.168.0.5
gateway: 192.168.0.1
subnet: 255.255.255.0
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
sensor:
- platform: wifi_signal
name: "Emergency light WiFi Signal"
update_interval: 600s
- platform: uptime
name: "Emergency Light uptime"
filters:
- lambda: return (x/60)/60;
unit_of_measurement: "Hrs"
text_sensor:
- platform: version
name: "Emergency Light ESPHome version"
light:
- platform: rgb
name: "Emergency light"
red: red
green: green
blue: blue
effects:
- strobe:
name: Emergency signal
colors:
- state: True
brightness: 100%
red: 100%
green: 0%
blue: 0%
duration: 500ms
- state: True
brightness: 100%
red: 0%
green: 0%
blue: 100%
duration: 500ms
output:
- platform: esp8266_pwm
id: red
pin: GPIO05
- platform: esp8266_pwm
id: green
pin: GPIO12
- platform: esp8266_pwm
id: blue
pin: GPIO13
Edit:
Just found this
https://esphome.io/components/esphome.html#esphome-on-boot
So going to give it a play tomorrow and will post back on how I got on.