=== Installation plugin teleinfo === sudo pip install pyserial sudo nano /usr/local/bin/check_sensors.py #!/usr/bin/env python # -*- coding: utf-8 -*- import os import time from skplugins import addValuePlugin, addEventPlugin, addValue, addEvent from skplugins.energy.teleinfo import teleinfo server = '192.168.1.1' while True: # Check teleinfo informations result = teleinfo(dev='/dev/ttyUSB0') if 'HCHC' in result.results: addValue(server, 'washroom:teleinfo:hchc', result.types['HCHC'], result.results['HCHC']) if 'HCHP' in result.results: addValue(server, 'washroom:teleinfo:hchp', result.types['HCHP'], result.results['HCHP']) if 'IINST' in result.results: addValue(server, 'washroom:teleinfo:iinst', result.types['IINST'], result.results['IINST']) if 'IINST' in result.results: addValue(server, 'washroom:teleinfo:test', result.types['IINST'], result.results['IINST']) if 'ISOUSC' in result.results: addValue(server, 'washroom:teleinfo:isousc', result.types['ISOUSC'], result.results['ISOUSC']) if 'PAPP' in result.results: addValue(server, 'washroom:teleinfo:papp', result.types['PAPP'], result.results['PAPP']) #Sleep time.sleep(5)