hon icon indicating copy to clipboard operation
hon copied to clipboard

How to use "Send custom request" action

Open nicmela opened this issue 7 months ago • 7 comments

Hi, I'm struggling undestanding how to format custom requests in order to use them as an action for my climate setup:

Right now i'm using this for the action "hOn: Send custom request":

action: hon.send_custom_request
target:
  device_id: f3afd203565ed6dacecd8ba2aacaxxxx
data:
  device: f3afd203565ed6dacecd8ba2aacaxxxx
  parameters: {"onOffStatus": "0"}

this code works (beep on the AC unit, and then is set to OFF).

However if i try any other parameter, for example

action: hon.send_custom_request
target:
  device_id: f3afd203565ed6dacecd8ba2aacaxxxx
data:
  device: f3afd203565ed6dacecd8ba2aacaxxxx
  parameters: {"windDirectionVertical": "2"}

the command it's ignored (no beep from AC unit).

I know I can use action: hon.update_settings to set vertical direction (and it works).... but I'm trying to use different parameters in order to enable HEALTH_HIGH and HEALTH_LOW vertical positions (1,3) which are blocked by action: hon.update_settings

Any hint on how to correctly format custom requests in order to send parameters?

nicmela avatar Jun 08 '25 13:06 nicmela

Any help @gvigroux ❤️?

nicmela avatar Sep 20 '25 23:09 nicmela

If you want to change only few parameters, you can use the action hon.update_settings.

If you want to start a new program, you can use the hin.start_program instead (check the Readme).

Tell me if it works

gvigroux avatar Sep 21 '25 06:09 gvigroux

Thank you @gvigroux . I'll give it a try with program ... But this does not really answer my question on how to use custom requests.

My goal is to try to send some windDirectionVertical values that are ignored by update settings.

The problem is too understand the syntax you need to use in order to send a custom request.

nicmela avatar Sep 21 '25 06:09 nicmela

Oups ok. Can you update these values using the hon official app?

gvigroux avatar Sep 21 '25 07:09 gvigroux

@gvigroux Haven't found a way, but if I set them via remote, the value is shown as active in the app. So the application knows that state.

When I try to send a custom command, it’s not that I can’t send any custom requests at all. I actually can for certain commands like turning the device on or off. The problem is that I can’t find the correct syntax to send parameters in general, not just the ones that might be unsupported, but any parameter. For example, the vertical orientation parameter doesn’t work even when I’m sending values that are fully supported.

So I’d appreciate your help in understanding why the syntax isn’t working for these parameters at all.

nicmela avatar Sep 21 '25 08:09 nicmela

@gvigroux A miniguide on how to use the custom command function would be very much appreciated ❤️❤️❤️

nicmela avatar Sep 29 '25 18:09 nicmela

Please 😥? @gvigroux

nicmela avatar Oct 25 '25 23:10 nicmela