Compare commits
6 Commits
battery-ic
...
88a9caabaf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88a9caabaf | ||
|
|
2eaad35aaa | ||
|
|
c69d955080 | ||
|
|
e75763ba4d | ||
|
|
53c3add254 | ||
|
|
e1715b4ca5 |
@@ -104,6 +104,8 @@ font:
|
|||||||
- "\U000F0335" # mdi:lightbulb
|
- "\U000F0335" # mdi:lightbulb
|
||||||
- "\U000F0425" # mdi:power
|
- "\U000F0425" # mdi:power
|
||||||
- "\U000F0426" # mdi:power-plug
|
- "\U000F0426" # mdi:power-plug
|
||||||
|
- "\U000F07E9" # mdi:power-socket-us
|
||||||
|
- "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
# Battery status icons
|
# Battery status icons
|
||||||
- "\U000F0079" # mdi:battery
|
- "\U000F0079" # mdi:battery
|
||||||
- "\U000F12A1" # mdi:battery-low
|
- "\U000F12A1" # mdi:battery-low
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_family_room_tv_stand);
|
auto *btn = id(btn_family_room_tv_stand);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_small_family_room_lamp
|
id: ts_small_family_room_lamp
|
||||||
entity_id: light.small_family_room_lamp
|
entity_id: light.small_family_room_lamp
|
||||||
@@ -31,6 +34,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_small_family_room_lamp);
|
auto *btn = id(btn_small_family_room_lamp);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_living_room_lamp_1
|
id: ts_living_room_lamp_1
|
||||||
entity_id: light.living_room_lamp_1
|
entity_id: light.living_room_lamp_1
|
||||||
@@ -45,6 +51,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x3D0002) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x3D0002) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_family_room_standing_lamp);
|
auto *btn = id(btn_family_room_standing_lamp);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_living_room_light_2
|
id: ts_living_room_light_2
|
||||||
entity_id: light.living_room_light_2
|
entity_id: light.living_room_light_2
|
||||||
@@ -59,6 +68,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_living_room_main_light);
|
auto *btn = id(btn_living_room_main_light);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_patio_light_1
|
id: ts_patio_light_1
|
||||||
entity_id: light.patio_light_1
|
entity_id: light.patio_light_1
|
||||||
@@ -79,10 +91,22 @@ text_sensor:
|
|||||||
auto *btn2 = id(btn_outside_patio_light);
|
auto *btn2 = id(btn_outside_patio_light);
|
||||||
if (x == "on") {
|
if (x == "on") {
|
||||||
lv_obj_set_style_text_color(btn1, lv_color_hex(0x1A0C00), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn1, lv_color_hex(0x1A0C00), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn1); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn1, i), lv_color_hex(0x1A0C00), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
lv_obj_set_style_text_color(btn2, lv_color_hex(0x001A33), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn2, lv_color_hex(0x001A33), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn2); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn2, i), lv_color_hex(0x001A33), static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
lv_obj_set_style_text_color(btn1, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn1, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn1); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn1, i), off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
lv_obj_set_style_text_color(btn2, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn2, off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn2); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn2, i), off_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_kitchen_sink_light
|
id: ts_kitchen_sink_light
|
||||||
@@ -98,6 +122,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_kitchen_sink_light);
|
auto *btn = id(btn_kitchen_sink_light);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_office_lamp_2
|
id: ts_office_lamp_2
|
||||||
entity_id: light.office_lamp_2
|
entity_id: light.office_lamp_2
|
||||||
@@ -112,6 +139,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_office_lamp);
|
auto *btn = id(btn_office_lamp);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_office_led_strip
|
id: ts_office_led_strip
|
||||||
entity_id: light.led_strip_controller_led_strip_controller
|
entity_id: light.led_strip_controller_led_strip_controller
|
||||||
@@ -126,6 +156,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_office_led_strip);
|
auto *btn = id(btn_office_led_strip);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_garage_cam_light
|
id: ts_garage_cam_light
|
||||||
entity_id: light.esp32_saturn4_cam_esp32_saturn4_cam_light
|
entity_id: light.esp32_saturn4_cam_esp32_saturn4_cam_light
|
||||||
@@ -140,6 +173,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_garage_cam_light);
|
auto *btn = id(btn_garage_cam_light);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_office_echo_plug
|
id: ts_office_echo_plug
|
||||||
entity_id: switch.office_echo_plug
|
entity_id: switch.office_echo_plug
|
||||||
@@ -154,6 +190,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_office_echo_plug);
|
auto *btn = id(btn_office_echo_plug);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_office_end_table_lamp_outlet
|
id: ts_office_end_table_lamp_outlet
|
||||||
entity_id: switch.office_end_table_lamp_socket_1
|
entity_id: switch.office_end_table_lamp_socket_1
|
||||||
@@ -168,6 +207,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_office_end_table_lamp_outlet);
|
auto *btn = id(btn_office_end_table_lamp_outlet);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_office_wax_warmer_outlet
|
id: ts_office_wax_warmer_outlet
|
||||||
entity_id: switch.office_wax_warmer_socket_1
|
entity_id: switch.office_wax_warmer_socket_1
|
||||||
@@ -182,6 +224,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_office_wax_warmer_outlet);
|
auto *btn = id(btn_office_wax_warmer_outlet);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_outside_lamppost_outlet_1
|
id: ts_outside_lamppost_outlet_1
|
||||||
entity_id: switch.lamppost_outlets_socket_1
|
entity_id: switch.lamppost_outlets_socket_1
|
||||||
@@ -196,6 +241,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_outside_lamppost_outlet_1);
|
auto *btn = id(btn_outside_lamppost_outlet_1);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_outside_lamppost_outlet_2
|
id: ts_outside_lamppost_outlet_2
|
||||||
entity_id: switch.lamppost_outlets_socket_2
|
entity_id: switch.lamppost_outlets_socket_2
|
||||||
@@ -210,6 +258,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_outside_lamppost_outlet_2);
|
auto *btn = id(btn_outside_lamppost_outlet_2);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_outside_porch_decor_outlet
|
id: ts_outside_porch_decor_outlet
|
||||||
entity_id: switch.washing_machine_socket_1
|
entity_id: switch.washing_machine_socket_1
|
||||||
@@ -224,6 +275,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_outside_porch_decor_outlet);
|
auto *btn = id(btn_outside_porch_decor_outlet);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_living_room_garland_switch
|
id: ts_living_room_garland_switch
|
||||||
entity_id: switch.big_family_room_lamp
|
entity_id: switch.big_family_room_lamp
|
||||||
@@ -238,6 +292,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001F15) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_living_room_garland_switch);
|
auto *btn = id(btn_living_room_garland_switch);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_living_room_calendar_switch
|
id: ts_living_room_calendar_switch
|
||||||
entity_id: switch.digital_calendar
|
entity_id: switch.digital_calendar
|
||||||
@@ -252,6 +309,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1E0F3F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_living_room_calendar_switch);
|
auto *btn = id(btn_living_room_calendar_switch);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_upstairs_airquality_oled
|
id: ts_upstairs_airquality_oled
|
||||||
entity_id: switch.airqualitysensor_3_oled_power
|
entity_id: switch.airqualitysensor_3_oled_power
|
||||||
@@ -266,6 +326,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x001A33) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_upstairs_airquality_oled);
|
auto *btn = id(btn_upstairs_airquality_oled);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_upstairs_camera_motion
|
id: ts_upstairs_camera_motion
|
||||||
entity_id: switch.upstairs_camera_motion_detection
|
entity_id: switch.upstairs_camera_motion_detection
|
||||||
@@ -280,6 +343,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_upstairs_camera_motion);
|
auto *btn = id(btn_upstairs_camera_motion);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_garage_fume_exhaust_fan
|
id: ts_garage_fume_exhaust_fan
|
||||||
entity_id: switch.fume_exhaust_fan
|
entity_id: switch.fume_exhaust_fan
|
||||||
@@ -294,6 +360,9 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x22001F) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_garage_fume_exhaust_fan);
|
auto *btn = id(btn_garage_fume_exhaust_fan);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: ts_garage_resin_printer_heater
|
id: ts_garage_resin_printer_heater
|
||||||
entity_id: switch.resin_printer_heater
|
entity_id: switch.resin_printer_heater
|
||||||
@@ -308,4 +377,7 @@ text_sensor:
|
|||||||
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
const lv_color_t text_color = (x == "on") ? lv_color_hex(0x1A0C00) : lv_color_hex(0xE3E2E6);
|
||||||
auto *btn = id(btn_garage_resin_printer_heater);
|
auto *btn = id(btn_garage_resin_printer_heater);
|
||||||
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
lv_obj_set_style_text_color(btn, text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
for (uint32_t i = 0; i < lv_obj_get_child_cnt(btn); i++) {
|
||||||
|
lv_obj_set_style_text_color(lv_obj_get_child(btn, i), text_color, static_cast<lv_style_selector_t>(LV_PART_MAIN | LV_STATE_DEFAULT));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ lvgl:
|
|||||||
text_color: 0xE3E2E6
|
text_color: 0xE3E2E6
|
||||||
pages:
|
pages:
|
||||||
#############################################
|
#############################################
|
||||||
# Family Room #
|
# Family Room #
|
||||||
#############################################
|
#############################################
|
||||||
- id: home
|
- id: home
|
||||||
widgets:
|
widgets:
|
||||||
@@ -260,7 +260,9 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline-alert-variant-outline
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
y: 0
|
y: 0
|
||||||
@@ -518,7 +520,7 @@ lvgl:
|
|||||||
x: 18
|
x: 18
|
||||||
y: 56
|
y: 56
|
||||||
styles: md3_title
|
styles: md3_title
|
||||||
text: "Main Light"
|
text: "Large Living Room Lamp"
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 90
|
y: 90
|
||||||
@@ -543,7 +545,7 @@ lvgl:
|
|||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: light.toggle
|
service: light.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: light.patio_light_1
|
entity_id: light.small_living_room_lamp
|
||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
x: 204
|
x: 204
|
||||||
@@ -560,7 +562,7 @@ lvgl:
|
|||||||
x: 18
|
x: 18
|
||||||
y: 56
|
y: 56
|
||||||
styles: md3_title
|
styles: md3_title
|
||||||
text: "Patio Light"
|
text: "Small Living Room Lamp"
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 90
|
y: 90
|
||||||
@@ -592,7 +594,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -634,7 +636,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -667,6 +669,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
@@ -948,6 +952,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
@@ -1196,7 +1202,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -1238,7 +1244,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -1271,6 +1277,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
@@ -1603,7 +1611,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -1645,7 +1653,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -1687,7 +1695,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -1720,6 +1728,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
@@ -2010,7 +2020,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -2052,7 +2062,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0425" # mdi:power
|
text: "\U000F1A26" # mdi:toggle-switch-variant-off
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -2085,6 +2095,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
@@ -2375,7 +2387,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -2417,7 +2429,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -2459,7 +2471,7 @@ lvgl:
|
|||||||
y: 16
|
y: 16
|
||||||
styles: md3_icon
|
styles: md3_icon
|
||||||
text_font: mdi_icons
|
text_font: mdi_icons
|
||||||
text: "\U000F0426" # mdi:power-plug
|
text: "\U000F07E9" # mdi:power-socket-us
|
||||||
- label:
|
- label:
|
||||||
x: 18
|
x: 18
|
||||||
y: 16
|
y: 16
|
||||||
@@ -2492,6 +2504,8 @@ lvgl:
|
|||||||
widgets:
|
widgets:
|
||||||
- label:
|
- label:
|
||||||
align: center
|
align: center
|
||||||
|
text_font: mdi_icons
|
||||||
|
text_color: 0xC4C6CF
|
||||||
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
text: "\U000F10CD" # mdi:battery-alert-variant-outline
|
||||||
- button:
|
- button:
|
||||||
x: 100
|
x: 100
|
||||||
|
|||||||
Reference in New Issue
Block a user