Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy LocalAPI through Modbus #21

Open
jjcasmar opened this issue May 4, 2023 · 4 comments
Open

Proxy LocalAPI through Modbus #21

jjcasmar opened this issue May 4, 2023 · 4 comments

Comments

@jjcasmar
Copy link

jjcasmar commented May 4, 2023

Would it be possible to expose a webserver that exposes the same API as the LocalAPI which communicates with Modbus? That way, Airzone devices that don't support LocalAPI could be used with LocalAPI integrations (home assistant for example) via the proxy.

@gpulido
Copy link
Owner

gpulido commented May 4, 2023

Hello,
It is a very interesting idea.
Is there an official localapi reference to be used?
(In the mean time for modbus in HA. It is already supported by https://github.com/gpulido/homeassistant-airzone)

@jjcasmar
Copy link
Author

jjcasmar commented May 4, 2023

Yeah, I am actually using that integration in HomeAssistant, but since Airzone provides/support (or at least is linked from Airzone website) the official integration, would be interesting to be able to use directly that one, exposing a fake LocalAPI.

There is a reference manual https://doc.airzone.es/producto/Gama_AZ6/Airzone/Comunes/Manuales/MI_AZ6_WSCLAPI_A4_MUL.pdf

@jjcasmar
Copy link
Author

jjcasmar commented May 5, 2023

If you need any help testing this, I currently have a RPi connected to the Modbus port of my Aidoo device, so I can definitely test it.

@Noltari
Copy link

Noltari commented Apr 9, 2024

@jjcasmar @gpulido I've just seen this issue and I think that the Local API simulator that I've implemented in the official integration library repository could be helpful for this purpose:
https://github.com/Noltari/aioairzone/blob/master/sim/airzone.py

You can also use the following resource for the Local API documentation:
https://developers.airzonecloud.com/docs/local-api/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants