How to use "Send custom request" action
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?
Any help @gvigroux ❤️?
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
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.
Oups ok. Can you update these values using the hon official app?
@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.
@gvigroux A miniguide on how to use the custom command function would be very much appreciated ❤️❤️❤️
Please 😥? @gvigroux