Edit esp-bedside-panel.yaml
This commit is contained in:
+216
-49
@@ -6,6 +6,7 @@
|
|||||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml
|
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-bedside-panel.yaml
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# VERSIONS:
|
# VERSIONS:
|
||||||
|
# V0.8h 2026-07-16 Updated local environment entities and added Moon / Outdoor readings
|
||||||
# V0.8g 2026-07-16 Added working Climate mode buttons and retained lightweight placeholders
|
# V0.8g 2026-07-16 Added working Climate mode buttons and retained lightweight placeholders
|
||||||
# V0.8f 2026-07-15 Added minimal Climate page with two placeholders and Back button
|
# V0.8f 2026-07-15 Added minimal Climate page with two placeholders and Back button
|
||||||
# V0.8e 2026-07-15 Centred Bedroom button captions only; no additional pages
|
# V0.8e 2026-07-15 Centred Bedroom button captions only; no additional pages
|
||||||
@@ -74,12 +75,12 @@ substitutions:
|
|||||||
# Device Naming
|
# Device Naming
|
||||||
device_name: "esp-bedside-panel"
|
device_name: "esp-bedside-panel"
|
||||||
friendly_name: "ESP Bedside Panel"
|
friendly_name: "ESP Bedside Panel"
|
||||||
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside clock and Home Assistant control panel. Initial working Climate controls. (Layout V1.1)"
|
description_comment: "Guition JC1060P470C_I_W_Y ESP32-P4 bedside clock and Home Assistant control panel. Climate controls with Moon, Outdoor, Indoor and Humidity readings. (Layout V1.1)"
|
||||||
device_area: "Bedroom"
|
device_area: "Bedroom"
|
||||||
|
|
||||||
# Project Naming
|
# Project Naming
|
||||||
project_name: "Guition.JC1060P470C_I_W_Y"
|
project_name: "Guition.JC1060P470C_I_W_Y"
|
||||||
project_version: "v0.8g"
|
project_version: "v0.8h"
|
||||||
|
|
||||||
# Passwords & Secrets
|
# Passwords & Secrets
|
||||||
api_key: !secret esp-api_key
|
api_key: !secret esp-api_key
|
||||||
@@ -104,9 +105,11 @@ substitutions:
|
|||||||
control_brightness: "80%"
|
control_brightness: "80%"
|
||||||
clock_brightness: "4%"
|
clock_brightness: "4%"
|
||||||
|
|
||||||
# Home Assistant Entities - Environment
|
# Home Assistant Entities - Status / Environment
|
||||||
bedroom_temperature_entity: "sensor.master_bedroom_master_bedroom_environment_z01th_temperature"
|
moon_phase_entity: "sensor.astroweather_moon_phase"
|
||||||
bedroom_humidity_entity: "sensor.master_bedroom_master_bedroom_environment_z01th_humidity"
|
outdoor_temperature_entity: "sensor.lounge_outside_temperature"
|
||||||
|
bedroom_temperature_entity: "sensor.bedroom_1_environment_z19th_temperature"
|
||||||
|
bedroom_humidity_entity: "sensor.bedroom_1_environment_z19th_humidity"
|
||||||
|
|
||||||
# Home Assistant Entities - Bedroom / Nearby Controls
|
# Home Assistant Entities - Bedroom / Nearby Controls
|
||||||
north_lights_entity: "light.tasmo_ifan02_3793_bedrm1_1"
|
north_lights_entity: "light.tasmo_ifan02_3793_bedrm1_1"
|
||||||
@@ -410,6 +413,42 @@ sensor:
|
|||||||
id: wifi_signal_sensor
|
id: wifi_signal_sensor
|
||||||
update_interval: "${update_interval}"
|
update_interval: "${update_interval}"
|
||||||
|
|
||||||
|
- platform: homeassistant
|
||||||
|
id: moon_phase
|
||||||
|
entity_id: "${moon_phase_entity}"
|
||||||
|
internal: true
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- lvgl.label.update:
|
||||||
|
id: bedroom_moon_value_label
|
||||||
|
text:
|
||||||
|
format: "%.1f%%"
|
||||||
|
args: [x]
|
||||||
|
|
||||||
|
- lvgl.label.update:
|
||||||
|
id: clock_moon_value_label
|
||||||
|
text:
|
||||||
|
format: "%.1f%%"
|
||||||
|
args: [x]
|
||||||
|
|
||||||
|
- platform: homeassistant
|
||||||
|
id: outdoor_temperature
|
||||||
|
entity_id: "${outdoor_temperature_entity}"
|
||||||
|
internal: true
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- lvgl.label.update:
|
||||||
|
id: bedroom_outdoor_value_label
|
||||||
|
text:
|
||||||
|
format: "%.1f°C"
|
||||||
|
args: [x]
|
||||||
|
|
||||||
|
- lvgl.label.update:
|
||||||
|
id: clock_outdoor_value_label
|
||||||
|
text:
|
||||||
|
format: "%.1f°C"
|
||||||
|
args: [x]
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: bedroom_temperature
|
id: bedroom_temperature
|
||||||
entity_id: "${bedroom_temperature_entity}"
|
entity_id: "${bedroom_temperature_entity}"
|
||||||
@@ -417,13 +456,13 @@ sensor:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
- lvgl.label.update:
|
- lvgl.label.update:
|
||||||
id: clock_temperature_label
|
id: bedroom_temperature_label
|
||||||
text:
|
text:
|
||||||
format: "%.1f°C"
|
format: "%.1f°C"
|
||||||
args: [x]
|
args: [x]
|
||||||
|
|
||||||
- lvgl.label.update:
|
- lvgl.label.update:
|
||||||
id: bedroom_temperature_label
|
id: clock_temperature_label
|
||||||
text:
|
text:
|
||||||
format: "%.1f°C"
|
format: "%.1f°C"
|
||||||
args: [x]
|
args: [x]
|
||||||
@@ -435,13 +474,13 @@ sensor:
|
|||||||
on_value:
|
on_value:
|
||||||
then:
|
then:
|
||||||
- lvgl.label.update:
|
- lvgl.label.update:
|
||||||
id: clock_humidity_label
|
id: bedroom_humidity_label
|
||||||
text:
|
text:
|
||||||
format: "%.0f%%"
|
format: "%.0f%%"
|
||||||
args: [x]
|
args: [x]
|
||||||
|
|
||||||
- lvgl.label.update:
|
- lvgl.label.update:
|
||||||
id: bedroom_humidity_label
|
id: clock_humidity_label
|
||||||
text:
|
text:
|
||||||
format: "%.0f%%"
|
format: "%.0f%%"
|
||||||
args: [x]
|
args: [x]
|
||||||
@@ -726,39 +765,100 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
x: 35
|
x: 35
|
||||||
y: 18
|
y: 14
|
||||||
text: "Bedroom"
|
text: "Bedroom"
|
||||||
text_font: font_title
|
text_font: font_title
|
||||||
text_color: 0xFFFFFF
|
text_color: 0xFFFFFF
|
||||||
|
|
||||||
- label:
|
|
||||||
id: bedroom_temperature_label
|
|
||||||
x: 700
|
|
||||||
y: 25
|
|
||||||
text: "--.-°C"
|
|
||||||
text_font: font_title
|
|
||||||
text_color: 0x8FC6EE
|
|
||||||
|
|
||||||
- label:
|
|
||||||
id: bedroom_humidity_label
|
|
||||||
x: 865
|
|
||||||
y: 25
|
|
||||||
text: "--%"
|
|
||||||
text_font: font_title
|
|
||||||
text_color: 0x83C7AA
|
|
||||||
|
|
||||||
- label:
|
- label:
|
||||||
id: bedroom_connection_label
|
id: bedroom_connection_label
|
||||||
x: 38
|
x: 38
|
||||||
y: 67
|
y: 57
|
||||||
text: "Waiting for HA"
|
text: "Waiting for HA"
|
||||||
text_font: font_small
|
text_font: font_small
|
||||||
text_color: 0xF0A45D
|
text_color: 0xF0A45D
|
||||||
|
|
||||||
|
# Four status readings across the top
|
||||||
|
- label:
|
||||||
|
x: 355
|
||||||
|
y: 12
|
||||||
|
width: 150
|
||||||
|
text: "Moon"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xA9A0D4
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: bedroom_moon_value_label
|
||||||
|
x: 355
|
||||||
|
y: 39
|
||||||
|
width: 150
|
||||||
|
text: "--.-%"
|
||||||
|
text_font: font_button
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xC6BDEC
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 510
|
||||||
|
y: 12
|
||||||
|
width: 150
|
||||||
|
text: "Outdoor"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x84B5D8
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: bedroom_outdoor_value_label
|
||||||
|
x: 510
|
||||||
|
y: 39
|
||||||
|
width: 150
|
||||||
|
text: "--.-°C"
|
||||||
|
text_font: font_button
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x9CCBEA
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 665
|
||||||
|
y: 12
|
||||||
|
width: 150
|
||||||
|
text: "Indoor"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xD6B78F
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: bedroom_temperature_label
|
||||||
|
x: 665
|
||||||
|
y: 39
|
||||||
|
width: 150
|
||||||
|
text: "--.-°C"
|
||||||
|
text_font: font_button
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xE8C79D
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 820
|
||||||
|
y: 12
|
||||||
|
width: 165
|
||||||
|
text: "Humidity"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x80BDA4
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: bedroom_humidity_label
|
||||||
|
x: 820
|
||||||
|
y: 39
|
||||||
|
width: 165
|
||||||
|
text: "--%"
|
||||||
|
text_font: font_button
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x97D2B7
|
||||||
|
|
||||||
- button:
|
- button:
|
||||||
id: north_lights_button
|
id: north_lights_button
|
||||||
x: 35
|
x: 35
|
||||||
y: 105
|
y: 95
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -784,7 +884,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: south_lights_button
|
id: south_lights_button
|
||||||
x: 362
|
x: 362
|
||||||
y: 105
|
y: 95
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -810,7 +910,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: bedside_lamp_button
|
id: bedside_lamp_button
|
||||||
x: 689
|
x: 689
|
||||||
y: 105
|
y: 95
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -836,7 +936,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: hall_floor_button
|
id: hall_floor_button
|
||||||
x: 35
|
x: 35
|
||||||
y: 228
|
y: 218
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -862,7 +962,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: hall_lights_button
|
id: hall_lights_button
|
||||||
x: 362
|
x: 362
|
||||||
y: 228
|
y: 218
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -888,7 +988,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: bathroom_lights_button
|
id: bathroom_lights_button
|
||||||
x: 689
|
x: 689
|
||||||
y: 228
|
y: 218
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -914,7 +1014,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: patio_lights_button
|
id: patio_lights_button
|
||||||
x: 35
|
x: 35
|
||||||
y: 351
|
y: 341
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -940,7 +1040,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: garage_lights_button
|
id: garage_lights_button
|
||||||
x: 362
|
x: 362
|
||||||
y: 351
|
y: 341
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -966,7 +1066,7 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: bathroom_fan_button
|
id: bathroom_fan_button
|
||||||
x: 689
|
x: 689
|
||||||
y: 351
|
y: 341
|
||||||
width: 300
|
width: 300
|
||||||
height: 105
|
height: 105
|
||||||
widgets:
|
widgets:
|
||||||
@@ -992,9 +1092,9 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: clock_now_button
|
id: clock_now_button
|
||||||
x: 35
|
x: 35
|
||||||
y: 485
|
y: 475
|
||||||
width: 280
|
width: 280
|
||||||
height: 82
|
height: 92
|
||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
id: clock_now_button_label
|
id: clock_now_button_label
|
||||||
@@ -1021,9 +1121,9 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: spare_navigation_button
|
id: spare_navigation_button
|
||||||
x: 340
|
x: 340
|
||||||
y: 485
|
y: 475
|
||||||
width: 280
|
width: 280
|
||||||
height: 82
|
height: 92
|
||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
id: spare_navigation_button_label
|
id: spare_navigation_button_label
|
||||||
@@ -1046,9 +1146,9 @@ lvgl:
|
|||||||
- button:
|
- button:
|
||||||
id: bedtime_button
|
id: bedtime_button
|
||||||
x: 645
|
x: 645
|
||||||
y: 485
|
y: 475
|
||||||
width: 344
|
width: 344
|
||||||
height: 82
|
height: 92
|
||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
id: bedtime_button_label
|
id: bedtime_button_label
|
||||||
@@ -1316,22 +1416,89 @@ lvgl:
|
|||||||
text_color: 0xA8A198
|
text_color: 0xA8A198
|
||||||
clickable: false
|
clickable: false
|
||||||
|
|
||||||
|
# Four status readings
|
||||||
- label:
|
- label:
|
||||||
id: clock_temperature_label
|
x: 80
|
||||||
x: 335
|
y: 355
|
||||||
y: 420
|
width: 205
|
||||||
|
text: "Moon"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xA9A0D4
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: clock_moon_value_label
|
||||||
|
x: 80
|
||||||
|
y: 387
|
||||||
|
width: 205
|
||||||
|
text: "--.-%"
|
||||||
|
text_font: font_title
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xC6BDEC
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 285
|
||||||
|
y: 355
|
||||||
|
width: 205
|
||||||
|
text: "Outdoor"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x84B5D8
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: clock_outdoor_value_label
|
||||||
|
x: 285
|
||||||
|
y: 387
|
||||||
|
width: 205
|
||||||
text: "--.-°C"
|
text: "--.-°C"
|
||||||
text_font: font_title
|
text_font: font_title
|
||||||
text_color: 0x8FAFC8
|
text_align: CENTER
|
||||||
|
text_color: 0x9CCBEA
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 490
|
||||||
|
y: 355
|
||||||
|
width: 205
|
||||||
|
text: "Indoor"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xD6B78F
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
id: clock_temperature_label
|
||||||
|
x: 490
|
||||||
|
y: 387
|
||||||
|
width: 205
|
||||||
|
text: "--.-°C"
|
||||||
|
text_font: font_title
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0xE8C79D
|
||||||
|
clickable: false
|
||||||
|
|
||||||
|
- label:
|
||||||
|
x: 695
|
||||||
|
y: 355
|
||||||
|
width: 245
|
||||||
|
text: "Humidity"
|
||||||
|
text_font: font_small
|
||||||
|
text_align: CENTER
|
||||||
|
text_color: 0x80BDA4
|
||||||
clickable: false
|
clickable: false
|
||||||
|
|
||||||
- label:
|
- label:
|
||||||
id: clock_humidity_label
|
id: clock_humidity_label
|
||||||
x: 600
|
x: 695
|
||||||
y: 420
|
y: 387
|
||||||
|
width: 245
|
||||||
text: "--%"
|
text: "--%"
|
||||||
text_font: font_title
|
text_font: font_title
|
||||||
text_color: 0x7FAE9B
|
text_align: CENTER
|
||||||
|
text_color: 0x97D2B7
|
||||||
clickable: false
|
clickable: false
|
||||||
|
|
||||||
- label:
|
- label:
|
||||||
|
|||||||
Reference in New Issue
Block a user