Hello,
I’m still new to both HA and ESPHome and I’m looking for a bit of help. I recently used tuya-cloudcutter to flash ESP on to some Merkury Innovation lights (MI-BW210-999WW) and have built a sunset/sunrise automation.
The lights are connected to a physical switch and sometimes they have been accidently switched off when the lights are on. When the switch is flipped back on, the lights reconnect but don’t turn back on. I have done some research seen “esp8266_restore_from_flash”, “on-boot” and “restore_mode” but none of them either make sense to me or completely answer my question.
Below is my yaml file for one of the lights. Any help is greatly appericated.
esphome:
name: "driveway-light-right"
libretiny:
board: generic-bk7231t-qfn32-tuya
framework:
version: dev
logger:
web_server:
captive_portal:
mdns:
api:
password: !secret api_password
encryption:
key: !secret api_encrypt_driveway-light-right
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
manual_ip:
# Set this to the IP of the ESP
static_ip: !secret ip_driveway-light-right
# Set this to the IP address of the router. Often ends with .1
gateway: !secret ip_gateway
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: !secret ip_subnet
button:
- platform: restart
name: Restart
debug:
update_interval: 30s
text_sensor:
- platform: debug
reset_reason:
name: Reset Reason
- platform: libretiny
version:
name: LibreTiny Version
sensor:
- platform: uptime
name: Uptime
bp5758d:
clock_pin: P8
data_pin: P7
output:
- platform: bp5758d
id: output_red
channel: 3
current: 29
- platform: bp5758d
id: output_green
channel: 2
current: 29
- platform: bp5758d
id: output_blue
channel: 1
current: 29
- platform: bp5758d
id: output_cold
channel: 5
current: 65
light:
- platform: rgbw
id: light_rgbw
name: Light
red: output_red
green: output_green
blue: output_blue
white: output_cold