diff --git a/esphome/nspanel_esphome_addon_climate_base.yaml b/esphome/nspanel_esphome_addon_climate_base.yaml index e945c10e..c2147049 100644 --- a/esphome/nspanel_esphome_addon_climate_base.yaml +++ b/esphome/nspanel_esphome_addon_climate_base.yaml @@ -266,7 +266,7 @@ script: 1055 : 48631); #else set_component_visibility->execute("climate", "button04", false); // Cool - set_component_font_color->execute("climate", "button04", + set_component_font_color->execute("climate", "button04", thermostat_embedded->mode == climate::CLIMATE_MODE_COOL ? 1055 : 6339); #endif diff --git a/esphome/nspanel_esphome_core_hw_buzzer.yaml b/esphome/nspanel_esphome_core_hw_buzzer.yaml index 3b663e25..f24dfa5b 100644 --- a/esphome/nspanel_esphome_core_hw_buzzer.yaml +++ b/esphome/nspanel_esphome_core_hw_buzzer.yaml @@ -16,7 +16,6 @@ substitutions: tone_boot: "two short:d=4,o=5,b=100:16e6,16e6" tone_touch_press: "Touch:d=16,o=5,b=180:g" tone_touch_release: "Release:d=32,o=5,b=180:g,g" - # Ex. # tone_volume_change: "scale_up:d=32,o=5,b=100:c,c#,d#,e,f#,g#,a#,b" tone_volume_change: "" diff --git a/esphome/nspanel_esphome_core_page_cover.yaml b/esphome/nspanel_esphome_core_page_cover.yaml index 41e77643..02d737f7 100644 --- a/esphome/nspanel_esphome_core_page_cover.yaml +++ b/esphome/nspanel_esphome_core_page_cover.yaml @@ -28,7 +28,8 @@ script: const std::string key = json["key"]; if (key == "position") { const std::string value = json["value"]; - ha_call_action->execute("cover.set_cover_position", key.c_str(), value.c_str(), detailed_entity->state.c_str()); + ha_call_action->execute("cover.set_cover_position", key.c_str(), + value.c_str(), detailed_entity->state.c_str()); } else ha_call_action->execute(("cover." + key).c_str(), "", "", detailed_entity->state.c_str()); } diff --git a/esphome/nspanel_esphome_core_page_notification.yaml b/esphome/nspanel_esphome_core_page_notification.yaml index aad2956e..6725cc42 100644 --- a/esphome/nspanel_esphome_core_page_notification.yaml +++ b/esphome/nspanel_esphome_core_page_notification.yaml @@ -13,7 +13,8 @@ substitutions: api: id: !extend api_server actions: - # This action removes any displayed notifications from the screen, helping to keep the user interface clean and focused on its primary functions. + # This action removes any displayed notifications from the screen, + # helping to keep the user interface clean and focused on its primary functions. - action: notification_clear then: - lambda: |- @@ -27,14 +28,18 @@ api: # Displays a notification message on the screen, useful for alerts or informational updates. - action: notification_show variables: - label: string # Title or label for the notification, displayed in a prominent format. - message: string # Detailed message or content of the notification. Include `\r` to insert a line break, allowing for custom formatting. + # Title or label for the notification, displayed in a prominent format. + label: string + # Detailed message or content of the notification. Include `\r` to insert a line break, + # allowing for custom formatting. + message: string then: - lambda: |- set_component_visibility->execute("home", "bt_notific", true); goto_page_id->execute(${PAGE_ID_NOTIFICATION}, true); set_component_text->execute("notification", "notifi_label", label.c_str()); - display_wrapped_text->execute("notification", "notifi_text01", message.c_str(), id(display_mode) == 2 ? 23 : 32); + display_wrapped_text->execute("notification", "notifi_text01", + message.c_str(), id(display_mode) == 2 ? 23 : 32); notification_label->publish_state(label.c_str()); notification_text->publish_state(message.c_str()); notification_unread->publish_state(true); @@ -117,7 +122,8 @@ script: then: - lambda: |- set_component_text->execute("notification", "notifi_label", notification_label->state.c_str()); - display_wrapped_text->execute("notification", "notifi_text01", notification_text->state.c_str(), id(display_mode) == 2 ? 23 : 32); + display_wrapped_text->execute("notification", "notifi_text01", + notification_text->state.c_str(), id(display_mode) == 2 ? 23 : 32); - id: !extend stop_all then: