A Python library for Homie Convention
Project description
Motivation
easy to use and flexible library in python for homie convention
Python 3 Homie 4.0.0
configuration of homie device is mainly carried out in a Yaml file
mqtt configuration in section mqtt
mqtt:
host: 192.168.2.20
port: 1889 <optional>
user: markus <optional>
passwd: Geheim <optional>
homie section
homie:
device01:
topic: homieTest
id: device01
name: Dishwasher
node01:
name: Program
switch01:
name: Power1
type: switch
settable: True
float02:
name: Power2
type: string
settable: True
node02:
name: Program
string21:
name: Power1
type: string
settable: True
switch22:
name: Power2
type: switch
settable: True
Example
import pyhomie
if __name__ == "__main__":
homie = pyhomie()
homie.init('config.yaml')
homie.run()
homie.switch01('True')
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pyHomie-0.0.4-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file pyHomie-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyHomie-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c3627eb85842bd898ede540db22fa4461be11182f5ca88fa662902b73f1c600 |
|
MD5 | e51925f71a05864830437de631b67afb |
|
BLAKE2b-256 | cc9a154f8ccef1b8946a993426967207e487e6492f40f554b29a9b7d745a43eb |