0.0.47 • Published 1 year ago

homebridge-aranet4-py v0.0.47

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Homebridge-Aranet4-Py

A Homebridge plugin for Aranet4 devices using external Python library to fetch data.

The Python library uses Bluetooth 4 (Low Energy) to connect to the Aranet and reports the CO2 level, humidity and temperature and the device's battery into HomeKit.

There is python script, which will have to be run in a loop that will output a txt file containing the sensor data. This file is read by the plugin. The output file must be specified in plugin config - via local file name or URL. The output file must have exact 10 lines:

manufacturer
modelNumber
serialNumber
hardwareRevision
firmwareRevision
temperature
humidity
co2
pressure
battery

Example python script to produce the output file

#!/usr/bin/python
from pyaranet4 import Aranet4
import sys

a4 = Aranet4()
#print(a4.current_readings.co2)
#print(a4.current_readings.temperature)
#print(a4.current_readings.humidity)


file_path = './aranet4_output.txt'
sys.stdout = open(file_path, "w")

print("%s" % a4.manufacturer_name )
print("%s" % a4.model_name)
print("111111")
print("%s" % a4.hardware_revision )
print("%s" % a4.software_revision )
print("%s" % a4.current_readings.temperature )
print("%s" % a4.current_readings.humidity)
print("%i" % a4.current_readings.co2)
print("%s" % a4.current_readings.pressure)
print("%s%%" % a4.battery_level)
0.0.47

1 year ago

0.0.46

1 year ago

0.0.45

1 year ago

0.0.44

1 year ago

0.0.43

1 year ago

0.0.42

1 year ago

0.0.41

1 year ago

0.0.40

1 year ago

0.0.39

1 year ago

0.0.38

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago