tom_l
December 1, 2019, 3:24am
1
Has anyone got a basic blinking light effect working with home assistant?
The light works and the effect shows up in the UI in home assistant but selecting the effect does nothing:
light:
- platform: binary
name: "MB Red LED"
output: mb_red_led
effects:
- strobe:
name: blink_slow
colors:
- state: true
duration: 1s
- state: false
duration: 1s
output:
- platform: gpio
id: mb_red_led
pin:
number: GPIO26
Edit: never mind. There is an open issue.
opened 12:14PM - 03 Nov 19 UTC
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Debian 10, pip3, 1.14.0
ESP (ESP32/ESP8266, Board/Sonoff):
d1_mini, but it doesn't matter
Affected component:
https://esphome.io/components/light/binary.html
https://esphome.io/components/light/index.html#strobe-effect
Description of problem:
Strobe effect does not work with binary...
component: light.binary
Bunyip183
(Stuart)
February 17, 2021, 10:28am
2
The binary light issue still hasn’t been resolved.
However, for anyone else who comes looking for solution I found a workaround by changing the light platform to monochromatic . This also meant that I had to change the output platform to esp8266_pwm (or ledc for ESP32).
light:
- platform: monochromatic
name: "MB Red LED"
output: mb_red_led
effects:
- strobe:
name: blink_slow
colors:
- state: true
duration: 1s
- state: false
duration: 1s
output:
- platform: esp8266_pwm
id: mb_red_led
pin:
number: GPIO26
4 Likes