Refactor binary sensor initial state handling and update OTA configuration for remote panels
This commit is contained in:
@@ -16,7 +16,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: standing_lamp_state
|
id: standing_lamp_state
|
||||||
entity_id: light.living_room_lamp_1
|
entity_id: light.living_room_lamp_1
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: standing_lamp_button
|
id: standing_lamp_button
|
||||||
@@ -25,7 +25,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: small_lamp_state
|
id: small_lamp_state
|
||||||
entity_id: light.small_family_room_lamp
|
entity_id: light.small_family_room_lamp
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: small_lamp_button
|
id: small_lamp_button
|
||||||
@@ -34,7 +34,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: tv_stand_state
|
id: tv_stand_state
|
||||||
entity_id: light.family_room_tv_stand
|
entity_id: light.family_room_tv_stand
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: tv_stand_button
|
id: tv_stand_button
|
||||||
@@ -42,6 +42,7 @@ binary_sensor:
|
|||||||
checked: !lambda return x;
|
checked: !lambda return x;
|
||||||
|
|
||||||
lvgl:
|
lvgl:
|
||||||
|
rotation: 90
|
||||||
on_idle:
|
on_idle:
|
||||||
- timeout: 45s
|
- timeout: 45s
|
||||||
then:
|
then:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ceiling_light_state
|
id: ceiling_light_state
|
||||||
entity_id: light.living_room_light_2
|
entity_id: light.living_room_light_2
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: ceiling_light_button
|
id: ceiling_light_button
|
||||||
@@ -25,7 +25,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: small_lamp_state
|
id: small_lamp_state
|
||||||
entity_id: light.small_living_room_lamp
|
entity_id: light.small_living_room_lamp
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
- lvgl.widget.update:
|
- lvgl.widget.update:
|
||||||
id: small_lamp_button
|
id: small_lamp_button
|
||||||
@@ -33,6 +33,7 @@ binary_sensor:
|
|||||||
checked: !lambda return x;
|
checked: !lambda return x;
|
||||||
|
|
||||||
lvgl:
|
lvgl:
|
||||||
|
rotation: 90
|
||||||
on_idle:
|
on_idle:
|
||||||
- timeout: 45s
|
- timeout: 45s
|
||||||
then:
|
then:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ api:
|
|||||||
|
|
||||||
ota:
|
ota:
|
||||||
- platform: esphome
|
- platform: esphome
|
||||||
password: !secret ota_password
|
encryption:
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_iot_ssid
|
ssid: !secret wifi_iot_ssid
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ api:
|
|||||||
|
|
||||||
ota:
|
ota:
|
||||||
- platform: esphome
|
- platform: esphome
|
||||||
password: !secret ota_password
|
encryption:
|
||||||
|
|
||||||
wifi:
|
wifi:
|
||||||
ssid: !secret wifi_iot_ssid
|
ssid: !secret wifi_iot_ssid
|
||||||
@@ -44,7 +44,6 @@ display:
|
|||||||
dc_pin: GPIO18
|
dc_pin: GPIO18
|
||||||
reset_pin: GPIO3
|
reset_pin: GPIO3
|
||||||
dimensions: 240x320
|
dimensions: 240x320
|
||||||
rotation: 90
|
|
||||||
data_rate: 8MHz
|
data_rate: 8MHz
|
||||||
invert_colors: true
|
invert_colors: true
|
||||||
auto_clear_enabled: false
|
auto_clear_enabled: false
|
||||||
|
|||||||
Reference in New Issue
Block a user