hon icon indicating copy to clipboard operation
hon copied to clipboard

Health Mode switch causes error, but syncs correctly when triggered from app

Open nicmela opened this issue 11 months ago • 2 comments

Hi and thanks for the great integration — I’ve installed it and all my devices are working very well.

I just have one issue to report and one question:

Issue All controls appear to be functioning correctly except for the health mode switch. When I try to toggle this from Home Assistant, I get the following error:

Impossible eseguire l'azione: switch/turn_on ParameterEnum [healthMode] Invalid value: 1 Allowed values: ['0', '1']

What’s strange is that if I enable Health Mode (UV) directly from the official Hon app, the switch in Home Assistant updates correctly and reflects the new state.

Question Would it be possible to include controls like healthMode, silentMode, screenDisplay, etc. directly in the climate entity?

I’d like to manage these options directly from the thermostat card, not just via separate switches or buttons. I remember that the older integration by andre0512 may have allowed this (or at least showed these options as additional features after enabling them in the card's feature settings), though I might be mistaken.

Thanks for your work, and I’m happy to test or provide more information if useful.


Integration installed via HACS Home Assistant version: 2025.4.2 Hon integration version: v0.7.14 Installed on: Docker on Synology Device brand/model: Haier AS35PBPHRA-PRE and Haier AS35RBAHRA-3

nicmela avatar May 15 '25 22:05 nicmela

Seems like manually sending this action:

action: hon.update_settings
target: {device_id: f3afd203565xxxxxxxxxxxx2aacaa95b}
data:
  parameters: {"healthMode":'1'}

works perfectly... so I guess he's expecting the value as a string, while this section is sending it as a number:

Image

I'm doing a workaround with some automations and helpers to be able to set it... but i would prefer to avoid having over-complications of my setup....

@gvigroux any chance to correct it in the integration code <3 ?

nicmela avatar May 30 '25 22:05 nicmela

+1

m0canu1 avatar Jun 01 '25 15:06 m0canu1