home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.11k stars 2.81k forks source link

Overriding the thermostat temperature triggers an incompatible preset_mode #22944

Open 16-9 opened 1 day ago

16-9 commented 1 day ago

Checklist

Describe the issue you are experiencing

I have an Ecobee thermostat. It seems that, at some point in time, the preset_mode supported values went from Home, Away, Sleep, Away_indefinitely to lower case versions ie home, away, sleep...

I am using the thermostat card. Whenever I change the thermostat temperature setting, an error message pops up "Preset mode is not valid. Valid preset modes are: home, away, sleep, away_indefinitely." This is confirmed in the log: `Logger: homeassistant.components.websocket_api.http.connection Source: components/websocket_api/commands.py:287 integration: Home Assistant WebSocket API (documentation, issues) First occurred: 6:30:55 AM (2 occurrences) Last logged: 6:43:57 AM

[544804952464] Preset mode is not valid. Valid preset modes are: home, away, sleep, away_indefinitely`

Using the developer tools, I am able to confirm that preset_mode went from "home" to "temp". "temp" is not a permitted value. While in the developer tools, I noticed incidentally that climate_mode was set to "Sleep" While the thermostat schedule would have it in sleep mode at this time of the day, I ponder about the capitalization.

Describe the behavior you expected

Manually changing the thermostat temperature setting should:

Steps to reproduce the issue

  1. Click on the + or - button on the thermostat card to differ from the established preset
  2. Notice the error message at the bottom of the screen
  3. Notice that the preset on the card goes from a home icon and the text "Home" to a bullet icon and no text ...

What version of Home Assistant Core has the issue?

core-2024.11.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

Before:
hvac_modes:
  - heat_cool
  - heat
  - cool
  - "off"
min_temp: 44.6
max_temp: 95
target_temp_step: 0.5
fan_modes:
  - auto
  - "on"
preset_modes:
  - home
  - away
  - sleep
  - away_indefinitely
current_temperature: 66.4
temperature: 67
target_temp_high: null
target_temp_low: null
current_humidity: 52
fan_mode: auto
hvac_action: heating
preset_mode: home
fan: "on"
climate_mode: Sleep
equipment_running: auxHeat1,fan
fan_min_on_time: 0
available_sensors:
  - Bedroom jq9g (5fce723578a70d5e44b65d2ac37973d3)
  - Rec Room lycj (39b6bd7cf19da8343d8872fccc24822c)
  - Talia jw84 (6d304a4b5b644407dcaa45645c02f364)
  - Thermostat (3896fccb283cef07d77cb4626b15d149)
active_sensors:
  - Bedroom jq9g
  - Talia jw84
  - Thermostat
friendly_name: Thermostat
supported_features: 411

After:
hvac_modes:
  - heat_cool
  - heat
  - cool
  - "off"
min_temp: 44.6
max_temp: 95
target_temp_step: 0.5
fan_modes:
  - auto
  - "on"
preset_modes:
  - home
  - away
  - sleep
  - away_indefinitely
current_temperature: 66.4
temperature: 66.5
target_temp_high: null
target_temp_low: null
current_humidity: 52
fan_mode: auto
hvac_action: heating
preset_mode: temp
fan: "on"
climate_mode: Sleep
equipment_running: auxHeat1,fan
fan_min_on_time: 0
available_sensors:
  - Bedroom jq9g (5fce723578a70d5e44b65d2ac37973d3)
  - Rec Room lycj (39b6bd7cf19da8343d8872fccc24822c)
  - Talia jw84 (6d304a4b5b644407dcaa45645c02f364)
  - Thermostat (3896fccb283cef07d77cb4626b15d149)
active_sensors:
  - Bedroom jq9g
  - Talia jw84
  - Thermostat
friendly_name: Thermostat
supported_features: 411

Problem-relevant frontend configuration

- type: thermostat
    entity: climate.thermostat
    show_current_as_primary: true
    features:
      - style: dropdown
        type: climate-hvac-modes
      - style: dropdown
        type: climate-preset-modes
      - style: dropdown
        type: climate-fan-modes

Javascript errors shown in your browser console/inspector

none

Additional information

No response