Skip to content

Instantly share code, notes, and snippets.

@lauer
Created August 29, 2018 11:30
Show Gist options
  • Save lauer/58961f6ffead183118ac36ab6b85ff8f to your computer and use it in GitHub Desktop.
Save lauer/58961f6ffead183118ac36ab6b85ff8f to your computer and use it in GitHub Desktop.
Simple script to fetch data from a Wavin 9000 controller
#!/usr/bin/env python3
#
# Require: https://github.com/paller/wavin-controller
#
# Example output:
# AC-116
# MC11013 MC61019
# 0 23.4 90 32788 21.5
# 1 23.0 90 32788 21.5
# 2 23.1 90 32788 21.0
# ...
from wavin_ahc9000 import *
def get_sensors():
wavin = WavinControl('/dev/ttyUSB0')
print(wavin.info.device_name)
print(wavin.info.hw_version,wavin.info.sw_version)
for x in wavin.get_indexes():
sensor = wavin.sensor(x)
room = wavin.room(x)
print(x, sensor.temp_room, sensor.battery, sensor.status, room.desired_temperature)
if __name__ == "__main__":
get_sensors()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment