gpulido / homeassistant-airzone

Home Assistant Custom component to manage Airzone Climate installations
MIT License
27 stars 7 forks source link

API Flexa 3.0 #28

Closed yovesmlmt closed 2 years ago

yovesmlmt commented 2 years ago

Hello. Here I send you a link of the documentation for the Flexa 3.0 API

https://doc.airzone.es/producto/Gama_AZ6/Airzone/Comunes/Manuales/MI_AZ6_WSCLAPI_A4_MUL.pdf

Thank you for your work and I hope you integrate it in the not too distant future.

Greetings

gpulido commented 2 years ago

Hello @yovesmlmt, Thank you for the link. That document is the localapi integration guide. I have to review it for the changes with the localapi that is already integrated in python-airzone, but in the meantime, have you already tried to configure this plugin using the localapi part?

Would you mind making a request to the localapi url using the zone = 0 as parameter to check if it still returns the list of zones?

yovesmlmt commented 2 years ago

hi sorry but i'm quite a newbie to APIs. I am trying to install postman or something similar in some windows to use the GET commands. But I'm pretty lost. If I find the answer to your request, I will send it to you as soon as possible

gpulido commented 2 years ago

Hello, You can use any rest client (curl for example) or chrome extension like this(https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo?hl=es-419) that allows you to make the request. You should be able to make a POST request to your http://localapiipserver:3000/api/v1/hvac with the following body as JSON:

{
   "systemID": 0,
  "zoneID":0
}

(The systemID number is the one that is shown in the airzone app)

yovesmlmt commented 2 years ago

Hello, I have tried to POST from the chrome extension that you indicated and the server does not respond.

http://192.168.1.190:3000/api/v1/hvac

The point is that I ping it without problem.

ping 192.168.1.190

Pinging 192.168.1.190 with 32 bytes of data: Reply from 192.168.1.190: bytes = 32 time = 201ms TTL = 64 Reply from 192.168.1.190: bytes = 32 time = 114ms TTL = 64 Reply from 192.168.1.190: bytes = 32 time = 122ms TTL = 64 Reply from 192.168.1.190: bytes = 32 time = 8ms TTL = 64

I don't know if I have to do something in the gateway to activate the local API

yovesmlmt commented 2 years ago

I just saw that my webserver is WiFi.

It may be that that is why the documentation I sent you does not work.

If someone has an ethernet cable webserver, they can help you.

gpulido commented 2 years ago

Hello @yovesmlmt So the wifi webserver doesn't have localapi capabilities?

Also, I was just asking you to check the api to confirm that it works the same as the one I have already implemented.

yovesmlmt commented 2 years ago

From what I'm seeing, it doesn't seem like my wifi module has localAPI integration. I have to open the Airzone console to secure the wifi module that I have

joasara commented 2 years ago

image That is the error that gives me. I do not know if I have launched the parameter correctly. The versión of my gateway is 3.36, upgrade by Arirzone.

gpulido commented 2 years ago

Hello @joasara Would you mind try with SystemID = 1?

joasara commented 2 years ago

The same result.

gpulido commented 2 years ago

Can you confirm that your system ID is 1? Also can you test using zoneID 1

joasara commented 2 years ago

I confirmed that my system ID is 1. In the second test, i try but the result is the same.

gpulido commented 2 years ago

It should work :( I suggest to ask Airzone :( Can you test the "integration" part, at least o check if that is working: post to api/v1/integration with the body


{ "driver": "integrador"}

Last try could be using a different rest client, and double checking the body (write it directly { "systemID": 1, "zoneID":0} (Be Careful with the double quotes when you copy and paste)

joasara commented 2 years ago

Nothing. I try again but i dont have result. I open a ticket to Airzone. In other forum say that is a error from the new firmware of webserver. I tell you when their respond.

https://github.com/max13fr/Airzonecloud-HomeAssistant/issues/19#issuecomment-969062735

joasara commented 2 years ago

I have good news. The SAT of Airzone say that is an error of LocalAPI in the new version of firmware. They have updated this service. Now, i have Airzone configure in HomeAssistant again.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.