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 ++++++++++++--------- esphome/config/couchlight.yaml | 3 ++- esphome/config/hoblight.yaml | 3 ++- esphome/config/tvlight.yaml | 3 ++- 4 files changed, 18 insertions(+), 12 deletions(-) (limited to 'esphome') 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 diff --git a/esphome/config/couchlight.yaml b/esphome/config/couchlight.yaml index faa49a8..b15f88d 100644 --- a/esphome/config/couchlight.yaml +++ b/esphome/config/couchlight.yaml @@ -8,7 +8,8 @@ logger: # Enable Home Assistant API api: - password: !secret api_password + encryption: + key: !secret api_encryption_key # OTA ota: diff --git a/esphome/config/hoblight.yaml b/esphome/config/hoblight.yaml index 0421ea4..6ed21a5 100644 --- a/esphome/config/hoblight.yaml +++ b/esphome/config/hoblight.yaml @@ -10,7 +10,8 @@ logger: # Enable Home Assistant API api: - password: !secret api_password + encryption: + key: !secret api_encryption_key # OTA ota: diff --git a/esphome/config/tvlight.yaml b/esphome/config/tvlight.yaml index 4447744..1aea51a 100644 --- a/esphome/config/tvlight.yaml +++ b/esphome/config/tvlight.yaml @@ -8,7 +8,8 @@ logger: # Enable Home Assistant API api: - password: !secret api_password + encryption: + key: !secret api_encryption_key # OTA ota: -- cgit v1.2.3