A bridge for python to the YouLess sensor
Project description
YouLess Python Data Bridge
This package contains support classes to fetch data from the YouLess sensors. The current implementation supports the following YouLess devices:
- LS120, both the Enologic and the PVOutput firmware
- LS110
Experimental support for authentication was added in v0.15 of the youless-python-bridge.
Contributing
To request new features or report bugs please use:
https://github.com/gjong/youless-python-bridge/issues/new
If you want to contribute by creating code yourself then create a fork of the repository and offer the changes in a PR back into this repository.
Using the python integration
To use the API use the following code:
from youless_api.youless_api import YoulessAPI
if __name__ == '__main__':
api = YoulessAPI("192.168.1.2") # use the ip address of the YouLess device
api.initialize()
api.update()
# from this point on on you should be able to access the sensors through the YouLess bridge
gasUsage = api.gas_meter.value
To use authentication please use the snippet below (this is still experimental):
from youless_api.youless_api import YoulessAPI
if __name__ == '__main__':
api = YoulessAPI("192.168.1.2", "my-user-name", "my-password") # use the ip address of the YouLess device
api.initialize()
api.update()
# from this point on on you should be able to access the sensors through the YouLess bridge
gasUsage = api.gas_meter.value
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
youless_api-2.0.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for youless_api-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94832d9f5f121bcf243703e1adb19c035a87295683df775200c1d90d36cccf19 |
|
MD5 | 575a3b668a6fc4245139ff995ac6edca |
|
BLAKE2b-256 | 7fcce15828edd7745872ee002777d67c686c395e0e5cb8e610abd677ad7e466c |