Hi I have AM43 controller running from an ESP32
switch:
- platform: ble_client
name: "Office Curtains"
The normal “restore_mode: ALWAYS_OFF” is not accepted.
How do I turn off this switch by default if the ESP32 reboots
Regards, Dave
Hi I have AM43 controller running from an ESP32
switch:
- platform: ble_client
name: "Office Curtains"
The normal “restore_mode: ALWAYS_OFF” is not accepted.
How do I turn off this switch by default if the ESP32 reboots
Regards, Dave
perhaps on_boot:
Hi, thanks that worked, had to add id to switch and a delay on_boot
here is my code to help others
esphome:
name: office_curtains
platform: ESP32
board: nodemcu-32s
on_boot:
priority: 600
# ...
then:
- delay: 1000ms
- switch.turn_off: blutooth_on_off
switch:
- platform: ble_client
id: blutooth_on_off
name: "Office Curtains"
ble_client_id: office_am43
Once again thank you
Re Dave