Describe the bug
Temperature sensor's unit of measurement is Fahrenheit. The Gree component accepts the input as a Celsius value and converts the input to Fahrenheit. This results in values much higher value than actual labeled as Fahrenheit.
To Reproduce
Steps to reproduce the behavior:
Configure Home Assistant Unit System as US customary in GUI or configuration.yaml
Configure temp_sensor in climate.yaml with existing temperature sensor
Review current_temperature in Gree component created entity
Expected behavior
Current temperature displays correct value in correct temperature unit.
Screenshots
Gree entity attributes
hvac_modes: auto, cool, dry, fan_only, heat, off
min_temp: 61
max_temp: 86
target_temp_step: 1
fan_modes: Auto, Low, Medium-Low, Medium, Medium-High, High, Turbo, Quiet
swing_modes: Default, Swing in full range, Fixed in the upmost position, Fixed in the middle-up position, Fixed in the middle position, Fixed in the middle-low position, Fixed in the lowest position, Swing in the downmost region, Swing in the middle-low region, Swing in the middle region, Swing in the middle-up region, Swing in the upmost region
current_temperature: 159
temperature: 72
fan_mode: Auto
swing_mode: Swing in full range
friendly_name: Mini Split
supported_features: 425
Temp Sensor entity state:
70.3
Temp Sensor entity attributes:
state_class: measurement
unit_of_measurement: °F
device_class: temperature
friendly_name: kit-gove-sen-01 Temperature
Platform:
Core: 2024.7.4
Supervisor: 2024.07.0
Operating System: 12.4
Frontend: 20240710.0
Component Version: 2.14.2
Additional context
Problem is not corrected when changing temp sensor or configuration to Celcius.
Logs
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] available(): Device is online
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] hvac_mode(): cool
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] temperature_unit(): °C
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] current_temperature(): 70.7
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] target_temperature(): 22
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] fan_mode(): Auto
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] swing_mode(): Swing in full range
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] name(): Mini Split
2024-07-31 22:00:27.782 INFO (MainThread) [custom_components.gree.climate] supported_features(): 425
2024-07-31 22:01:27.690 INFO (MainThread) [custom_components.gree.climate] should_poll()
2024-07-31 22:01:27.691 INFO (SyncWorker_22) [custom_components.gree.climate] update()
2024-07-31 22:01:27.691 INFO (SyncWorker_22) [custom_components.gree.climate] Starting SyncState
2024-07-31 22:01:27.693 INFO (SyncWorker_22) [custom_components.gree.climate] Fetching(10.14.250.39, 7000, 10, {"cid":"app","i":0,"pack":"redact","t":"pack","tcid":"redact","uid":0,"tag" : "redact"})
Describe the bug Temperature sensor's unit of measurement is Fahrenheit. The Gree component accepts the input as a Celsius value and converts the input to Fahrenheit. This results in values much higher value than actual labeled as Fahrenheit.
To Reproduce Steps to reproduce the behavior:
Configuration climate.yaml
configuration.yaml
unit_system: us_customary
Expected behavior Current temperature displays correct value in correct temperature unit.
Screenshots Gree entity attributes
Temp Sensor entity state:
70.3
Temp Sensor entity attributes:
Platform:
Additional context Problem is not corrected when changing temp sensor or configuration to Celcius.
Logs