Add a nodeΒΆ

We provide some example nodes in the microhomie-nodes repository. Most of these nodes can be used out of the box to publish data. If you want to use a DHT22 sensor in example, copy the files and from homie/node to the lib/homie/node directory on your device. In the file you see an example as docstring. Copy this example to on your device and on next reset it starts publishing temperature and humidity. In this example the DHT22 sensor is wired to GPIO PIN 4, on ESP8266 this is PIN D2.

You can also install nodes from PyPi:

>>> import upip
>>> upip.install('microhomie-nodes-dht22')