Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't turn on Heating after upgrade to 1.5.0-beta6 or higher #1295

Open
iDazai opened this issue Feb 22, 2024 · 6 comments
Open

Can't turn on Heating after upgrade to 1.5.0-beta6 or higher #1295

iDazai opened this issue Feb 22, 2024 · 6 comments
Assignees
Labels
new bug incoming bug issue

Comments

@iDazai
Copy link

iDazai commented Feb 22, 2024

Prerequisites

  • TZ601 _TZE200_hue3yfsn
  • hvac_modes: off, heat
    min_temp: 5
    max_temp: 30
    preset_modes: none, holiday, Schedule, frost protect
    current_temperature: 16
    temperature: 16
    hvac_action: idle
    preset_mode: none
    system_mode: [4]/heat
    occupied_heating_setpoint: 1600
    unoccupied_heating_setpoint: 1700
    friendly_name: Bad_Thermostat Thermostat
    supported_features: 401

Description

I use mushroom cards on my dashboard to control BT. Turning off the thermostat works, but turning it on throws an error. On 1.5.0-beta5 it works fine, but after an upgrade to 1.5.0-beta6 or higher this error appears.

 Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:240
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:00:37 (1 occurrences)
Last logged: 18:00:37

[139774147023936] type object 'HVACMode' has no attribute 'HEATING'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 240, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2279, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2316, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 892, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 962, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/better_thermostat/climate.py", line 1270, in async_turn_on
    await self.async_set_hvac_mode(HVACMode.HEATING)
                                   ^^^^^^^^^^^^^^^^
AttributeError: type object 'HVACMode' has no attribute 'HEATING' 

Steps to Reproduce

  1. Install version 1.5.0-beta5
  2. Turn off thermostat in mushroom heating card, turn on and see the error

Expected behavior:

The thermostat should be turned on again, without an error

Actual behavior:

The thermostat doesn't turn on again

Versions

HA Core 2024.2.2
HA Supervisor 2024.02.0
HA Frontend 20240207.1
BT 1.5.0-beta6 and higher

@iDazai iDazai added the new bug incoming bug issue label Feb 22, 2024
@benna1990
Copy link

Same here

@kuduacz
Copy link

kuduacz commented Feb 24, 2024

Same Here.

@UweTo
Copy link

UweTo commented Feb 26, 2024

same here

@auanasgheps
Copy link

I have the same issue, I'm forced to roll-back

@Microfi
Copy link

Microfi commented Mar 7, 2024

Same problem over here.

@LeoCal
Copy link
Contributor

LeoCal commented Mar 22, 2024

I have noticed the same problem on my setup today.

From a quick code inspection, it seems the issue has been introduced by a recent commit (b53b564) which was bundled into BT version 1.5.0beta6.

I have found the root cause and successfully tested it on my HA instance. I've also raised a PR to fix the issue:
#1323

@KartoffelToby , do you mind approving and merging it? It's a very short one.

My 2 cents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new bug incoming bug issue
Projects
None yet
Development

No branches or pull requests

8 participants