From 4454e96b906de8670ed2aa7af70ebf8d532c7d83 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 12 Oct 2023 11:32:46 +0200 Subject: esphome: migrate to api encryption key --- esphome/config/bedlight.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'esphome/config/bedlight.yaml') diff --git a/esphome/config/bedlight.yaml b/esphome/config/bedlight.yaml index 81392b0..f34f021 100644 --- a/esphome/config/bedlight.yaml +++ b/esphome/config/bedlight.yaml @@ -2,15 +2,16 @@ esphome: name: bedlight platform: ESP8266 board: esp01_1m + #esp8266_restore_from_flash: true # light default values - on_boot: - then: - - light.control: - id: bed - state: off - brightness: 50% - color_temperature: 3000 K + #on_boot: + # then: + # - light.control: + # id: bed + # state: on + # brightness: 10% + # color_temperature: 330.0 mireds # Enable logging logger: @@ -19,7 +20,8 @@ logger: # Enable Home Assistant API api: - password: !secret api_password + encryption: + key: !secret api_encryption_key # OTA ota: @@ -46,7 +48,8 @@ light: warm_white: pwm_b_t cold_white_color_temperature: 6536 K warm_white_color_temperature: 2000 K - restore_mode: RESTORE_AND_OFF + #restore_mode: RESTORE_AND_OFF + restore_mode: RESTORE_DEFAULT_OFF output: - id: gpio_r -- cgit v1.2.3