#POST

1 messages · Page 1 of 1 (latest)

marsh edge
#

Hi,
I have a small problem controlling Home Assistant and hope you can help me.

I use this POST to control my TV and it works very well:
curl -X POST -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -d "{"entity_id": "remote.85_neo_qled", "command": ["KEY_VOLUP"]}" http://10.0.0.70:8123/api/services/remote/send_command

Now I want to control my Hisense air conditioner and have installed this add-on:
https://github.com/deiger/AirCon
At the Home Assistant Dashboard, I can control the air conditioning with all functions, but unfortunately I can't do it with POST.

The following is stated in the description, but unfortunately it doesn't work for me.
curl -ik 'http://localhost:8888/hisense/command?property=t_power&value=ON'

Could someone please help me create the correct POST?

Thanks in advance!

GitHub

Scripts for controlling Air Conditioners, e.g. with HiSense modules. - deiger/AirCon

deft zephyr
marsh edge
#

Hello,
Thank you for your reply.
I would like to use an API request, but I'm encountering an error somewhere.

curl -X POST -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -d "{"entity_id": "climate.gang_wohnzimmer_mqtt_hvac", "property"= ["t_power&value=ON"]}" http://http://10.0.0.70:8123/hassio/addon/c34eddb3_hisense_ac/command