airgradienthq / arduino

Firmware of open-source hardware air quality monitors AirGradient ONE (indoor) and AirGradient Open Air (outdoor).
https://www.airgradient.com/documentation/
Other
218 stars 115 forks source link

Add boot to keep HA integration compatability #168

Closed airgradienthq closed 5 months ago

airgradienthq commented 5 months ago

Our current HA integration expects "bootCount" as a parameter. However for the airgradient server API we need "boot".

Local server on monitor for the time being should therefore return both properties: "boot" and "bootCount".

http://192.168.1.xxx/measures/current {"wifi":-38,"serialno":"84fce61-----", ... ,"boot":2,"bootCount":2, ...}

At a later stage we will adjust the HA integration and depreciate "bootCount".

pnt325 commented 5 months ago

@airgradienthq it's ready here #169

Please check and merge the PR