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
844 stars 127 forks source link

Can't set 'heat' mode. Supported modes are: [<HVACMode.OFF: 'off'>] #1467

Closed Chrissi2812 closed 2 days ago

Chrissi2812 commented 3 days ago

Prerequisites

14:2d:41:ff:fe:2d:c1:da-1: can't set 'heat' mode. Supported modes are: [<HVACMode.OFF: 'off'>]

Logger: homeassistant.components.climate Quelle: components/climate/init.py:713 Integration: Klima (Dokumentation, Probleme) Erstmals aufgetreten: 09:45:25 (4 Vorkommnisse) Zuletzt protokolliert: 09:46:28

zha::Thermostat sets the hvac_mode heat which is not valid for this entity with modes: off. This will stop working in 2025.4 and raise an error instead. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22


* [ ] Output from Home Assistant Device Diagnostic from BT: **Not Working**

### Description

The thermoststat does not come back on after BT turned it off.
The problem seems to only occur after I updated the thermostat to FW 1.2.1, or it was a BT or HA update.

### Steps to Reproduce

1. Turn Off Heating via BT toggle, this will turn off the real Thermostat
2. Turn it on again. Sonoff Thermostat stays Off and the Error above is shown in HA Logs.

**Expected behavior:**

Real Thermostat should come back on.

**Actual behavior:**

Real Thermostat stays Off forever.

### Versions

BT: 1.6.1 & 1.7.0-beta1
HA: 2024.11.0
Sonoff: 1.2.1

### Additional Information

![image](https://github.com/user-attachments/assets/d3272771-fb4e-4175-b4ce-854a6645ef8d)
![image](https://github.com/user-attachments/assets/3b5c1a3c-aa54-46c6-bb64-0f8ff01ddcb0)
Octavius85 commented 2 days ago

Can't confirm.

Got the same TRV via Zigbee2Mqtt in my Setup, with the same FW. Maybe a problem with ZHA? Does turning off the TRV-entity itself via HA work?

Chrissi2812 commented 2 days ago

Okay I found the problem the marked thing was missing. I readded the thermostat and now it works. image

For some reason the thermostat also has a switch entity and that toggle would work. But yeah wasn't a BT problem after all.