Aohzan / ipx800

IPX800 V4 integration for Home-Assistant
Apache License 2.0
20 stars 12 forks source link

Add support for XENO analog sensors #49

Closed ydubreuil closed 8 months ago

ydubreuil commented 9 months ago

I only added support for sensors. The numbering is pretty weird in the API response. The first analog device has index 17. To make it easier to configure, the code does the math to convert the ID seen in the IPX UI and the ID in the API.

API doc snippet (page 23) :

Réponse type à un « Get=Xxx » avec en-tête (ici Get=XENO):
{
"product": "IPX800_V4",
"status": "Success",
....
"ENO ANALOG17": 0.00,
"ENO ANALOG18": 0,
"ENO ANALOG19": 0,
...
"ENO ANALOG39": 0,
"ENO ANALOG40": 0
}