home-assistant / frontend

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

Generic thermostat after update to 2022.12 went wonky, displays C should be F #14611

Closed ssirkakriss closed 1 year ago

ssirkakriss commented 1 year ago

Checklist

Describe the issue you are experiencing

I employ several Generic thermostat’s in Home assistant. After update 2022.12 all display cards now seem to be converting the values to C, when it should be F.

heatcard

The actual sensor’s by there self’s still report and display there value as F, heatcard2

I have HA General settings set to Fahrenheit.

My Generic thermostat yaml:

climate:
# --house heat
  - platform: generic_thermostat
    name: House heat
    unique_id: househeat1234
    heater: switch.thermostat_main_2
    target_sensor: sensor.thermostat_main_ds18b20_temperature
    min_temp: 50
    max_temp: 79
    ac_mode: False
    target_temp: 70
    cold_tolerance: 0.5
    hot_tolerance: 0.5
    min_cycle_duration:
      seconds: 45
    keep_alive:
      minutes: 3
    #initial_operation_mode: "auto"
    initial_hvac_mode: "heat"
    away_temp: 63
    precision: 0.1

Bug or misconfiguration ?

Describe the behavior you expected

The card to display the correct temperature conversion.

Steps to reproduce the issue

Display thermostat card on 2022.12

What version of Home Assistant Core has the issue?

core-2022.12

What was the last working version of Home Assistant Core?

core-2022.11

In which browser are you experiencing the issue with?

Chrome 108.0.5359.99 (Official Build) (64-bit)

Which operating system are you using to run this browser?

Winsows 10

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

ssirkakriss commented 1 year ago

I think I figured out what was happening.

To remedy the country code error I completely removed ALL location .yaml entries in favor for the gui entry, and set localization there.

That’s where the problem creeps in, When I use the gui localization settings.

All seems to be working well with .yaml localization set.

Not sure what happening but it working now.