Fix hvac_action indication icons (#865)

* Fix `hvac_action` indication icons

Fix for pages home and climate.
This should remove the need for all the 25~30 instances of hot water in the code.

* Update nspanel_esphome.yaml
This commit is contained in:
Edward Firmo
2023-06-08 15:28:25 +02:00
committed by GitHub
parent 4cb8bbe72e
commit c1ef9eb92b
2 changed files with 22 additions and 10 deletions

View File

@@ -320,6 +320,7 @@ api:
total_steps: int
slider_val: int
temp_offset: int
climate_icon: string
then:
- wait_until:
binary_sensor.is_on: nextion_init
@@ -328,6 +329,7 @@ api:
{
id(disp1).set_component_value("climateslider", slider_val);
id(disp1).set_component_text_printf("target_temp", "%.1f°", target_temp);
id(disp1).set_component_text_printf("target_icon", "%s", climate_icon.c_str());
id(disp1).show_component("target_icon");
id(disp1).show_component("target_temp");
id(disp1).show_component("climateslider");