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

Overriding the thermostat temperature triggers an incompatible preset_mode #22944

Open
4 tasks done
16-9 opened this issue Nov 21, 2024 · 0 comments
Open
4 tasks done

Comments

@16-9
Copy link

16-9 commented Nov 21, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

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:

  • change the temperature
  • leave the preset_mode the way it was
    [!Note] the thermostat itself shows the current preset but indicates the override. I am not sure this is communicated in any shape or form to HA.

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

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

No branches or pull requests

1 participant