Aranet4 with firmware v.1.2.0 or greater integration notes
aranet-techsupport
Posted: 15.09.2022 12:49
Modified: 20.11.2024 12:47
Important:
In Aranet4 FW >= v1.2.0 the advertised service UUID and the service UUID containing Aranet4 measurements are changed.
Prior to FW v1.2.0 the service UUID is f0cd1400-95da-4f4b-9ac8-aa55d312af0c.
On FW v1.2.0 and newer the service UUID is 0000FCE0-0000-1000-8000-00805f9b34fb.Device Scan:
To support both versions when using a device scan with filtering by service UUID the filter should accept both service UUIDs.
Characteristics:
When using the older Aranet4-Python implementation with the 'bluepy' library (https://github.com/Anrijs/Aranet4-Python/tree/8660af2877adf8ed6caa33626b79595ece2484b2 - last Aranet4-python version with 'bluepy'), only devices with FW lower than v1.2.0 can be read.
There are some possible solutions:
• Migrate to the latest Aranet4-Python version which uses the 'bleak' library and can read data from all FW versions.
• If the Aranet4 sensors of interest are updated to FW >= v1.2.0 and there is no need to read data from sensors with older FW, just the service UUID can be changed:
In client.py
replace:
AR4_SERVICE = btle.UUID("f0cd1400-95da-4f4b-9ac8-aa55d312af0c")
with:
AR4_SERVICE = btle.UUID("0000FCE0-0000-1000-8000-00805f9b34fb")
• If support for all FW versions is required, then the way how characteristics are read needs to be changed. An example for reading the sensor measurement interval provided (similar changes are required for all other Aranet4 characteristics of interest).
Do note that characteristics can be accessed directly without Service UUID:In client.py
replace:
def getInterval(self):
s = self.device.getServiceByUUID(self.AR4_SERVICE)
c = s.getCharacteristics(self.AR4_READ_INTERVAL)
return self.le16(c[0].read())
with:
def getInterval(self):
c = self.device.getCharacteristics(uuid = self.AR4_READ_INTERVAL)
return self.le16(c[0].read())friendlyfire
Posted: 28.01.2023 16:54
Modified: 28.01.2023 16:55
Would be nice if someone could contribute a solution to the related issue with the PWA "Sensor Pilot" on a Windows PC.
The author has indicated that this needs a fix, but unfortunately no solution has been posted on github since october.
Anyone? May be from SAF Tehnika?aranet-techsupport
Posted: 30.01.2023 09:56
The PWA-app "Sensor Pilot" is not developed/supported by the Aranet team. Either way, we have asked the developer if it is in their plan to make the needed changes to allow connectivity again. Perhaps you would like to check the Home Assistant integration, although you will need to install it to use it, but this might help you in your needs.
You have to log in to reply.