ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.03k stars 149 forks source link

Water Heater: HA automation action "Set target temperature" ignores operation mode #747

Open Gitsarry opened 1 month ago

Gitsarry commented 1 month ago

Describe the bug Setting up a HA automation, with action setting the water heater mode (in my device e.g. mode "eco") works fine.

Setting up a HA automation, with action setting the water heater target temperature (e.g. "35 °C") works fine.

But in the target temperature setting when you enable also the optional "Operation mode: New value of the operation mode." checkbox and enter valid value "eco" as mode, and then test run the automation action (see screenshot), the temperature is set, but the mode is not set (changed). The operation mode setting is just ignored. You can also enter an invalid mode (e.g. "xyz"), and that is also just ignored.

Expected behavior Not only the temperature should be set, but also the operation mode (like the direct mode setting action works). When an invalid mode (e.g. "xyz") is entered, an error message should be thrown, like it is the case when you do the mode setting automation directly:

Error running action
Operation mode xyz is not valid for water_heater.wassererhitzer. Valid operation modes are: eco, heat_pump, performance, off

Screenshots screenshot

Environment details:

Home Assistant all updated

Integration Version 0.39.0

Core 2024.5.1 Supervisor 2024.04.4 Operating System 12.2 Frontend 20240501.0

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Gitsarry commented 1 week ago

Bug is still.