gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
118 stars 45 forks source link

The air conditioner displays degrees in Fahrenheit instead of Celsius #101

Closed pedroRSL closed 10 months ago

pedroRSL commented 1 year ago

When starting or changing settings from Home Assistant, the display of the air conditioner shows degrees Fahrenheit instead of Celsius. By changing the temperature with the remote control, it displays again in Celsius degrees. In Home Assistant, the temperature is displayed in Celsius. Model AS35TAMHRA-C.

gvigroux commented 1 year ago

I'm (in theory) forcing the integration into CELSIUS all the time. Maybe I need to add this parameter as well when I change the temperature for certain devices. Can you please dump a program that changes temperature ? (check readme)

flep11 commented 11 months ago

I have the same problem when i use dashboard widget button or change temp from there. My air conditioner model is AS25S2SF1FA-WH + 2U40S2SM1FA (2x1)

I'm not sure if that's what you're asking, but:

Program [iot_cool] Parameters: screenDisplayStatus: [0 - 1] - Default: 1 echoStatus: [0 - 1] - Default: 0 tempSel: [16 - 30] - Default: 22 silentSleepStatus: [0 - 1] - Default: 0 muteStatus: [0 - 1] - Default: 0 rapidMode: [0 - 1] - Default: 0 humanSensingStatus: [0 - 3] - Default: 0 windSpeed: ['1', '2', '3', '5'] - Default: 5 windDirectionVertical: ['2', '4', '5', '6', '8'] - Default: 5 windDirectionHorizontal: ['0', '3', '4', '5', '6', '7'] - Default: 0

Start this program with default parameters: service: hon.start_program data: program: iot_cool target: device_id: ***

Start this program with customized parameters: service: hon.start_program data: program: iot_cool parameters: >- {'screenDisplayStatus':'1','echoStatus':'0','tempSel':'22','silentSleepStatus':'0','muteStatus':'0','rapidMode':'0','humanSensingStatus':'0','windSpeed':'5','windDirectionVertical':'5','windDirectionHorizontal':'0'} target: device_id: ***

gvigroux commented 11 months ago

thanks, I will look into it

gvigroux commented 11 months ago

I found probably the root cause, I will need some logs to investigate.

  1. please add these lines in you configuration.yaml and reboot
logger:
  logs:
    custom_components.hon: debug
  1. after the reboot, look at the log and share 2 info:
    • the complete "[custom_components.hon.hon] Context for mac[" log
    • any part of the "commands" log with the "tempUnit" paremter inside. You should have something like " 'tempUnit': {'category': 'command', 'typology': 'fixed', 'mandatory': 1, 'fixedValue': '1'}"
flep11 commented 11 months ago

The problem is no longer present in versions 0.6.0 and 0.6.1. The temperature is displayed in degrees Celsius. But I'll post the logs just in case. custom_components.hon.hon.txt custom_components.hon.hon Commands.txt

gvigroux commented 10 months ago

Thank you so much for the help and the confirmation :) Logs looks good. I will close this issue !