Hi all,
I am trying to migrate my standard wall switch to Sonoff T1 and I would like to use Esphomelib to do so.
I successfully flashed it but I can’t control the blue led which backlights the button within HA.
My code in esphomelib is below: I can see the “light.Switch Studio Rose Blue LED” in HA but even turning it on does not turn on the backlight.
This instead turn on if i turn on the relay or Luce Studio Rose/light1 as you prefer to cal it.
I mean they doesn’t seem to be decoupled.
Can anyone help?
esphomeyaml:
name: MYNAME
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'xxxx'
password: 'yyyy'
mqtt:
broker: 'zzzz'
username: 'zzzz'
password: 'zzzz'
keepalive: 7s
# Enable logging
logger:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Switch Studio Rose Button"
on_double_click:
min_length: 50ms
max_length: 700ms
then:
- light.toggle:
id: light1
- platform: status
name: "Switch Studio Rose Status"
output:
- platform: gpio
pin: 12
id: 'relay'
- platform: esp8266_pwm
id: basic_blue_led
pin:
number: GPIO13
inverted: True
light:
- platform: binary
name: "Luce Studio Rose"
output: relay
id: light1
- platform: monochromatic
name: "Switch Studio Rose Blue LED"
output: basic_blue_led
id: blue_led
sensor:
- platform: wifi_signal
name: "Switch Studio Rose WiFi Signal Sensor"
update_interval: 15s