KartoffelToby / better_thermostat

This custom component for Home Assistant will add crucial features to your climate-controlling TRV (Thermostatic Radiator Valves) to save you the work of creating automations to make it smart. It combines a room-temperature sensor, window/door sensors, weather forecasts, or an ambient temperature probe to decide when it should call for heat and automatically calibrate your TRVs to fix the imprecise measurements taken in the radiator's vicinity.
https://better-thermostat.org
GNU Affero General Public License v3.0
746 stars 123 forks source link

Calling a service twice leads to invalid values #489

Closed jhbruhn closed 1 year ago

jhbruhn commented 1 year ago

Prerequisites

On mobile ATM :(

Description

Calling the restore-day-temperature leads to a zero-value for the temperature in the thermostat. Instead this should be a no-op. This can happen for example through automations.

Additionally, the night-mode is not persistent through home-assistant restarts, which can lead to this error as well.

Steps to Reproduce

  1. Call the restore service
  2. Call the restore service again

Or:

  1. Set Thermostat to night mode
  2. Restart HA
  3. Observe the lack of leaf symbol

Versions

BT: 1.0.0-alpha23 HA 2022.9.7

Additional Information

KartoffelToby commented 1 year ago

Fixed in Beta 25