Homie Node¶
-
class circuitpython_homie.HomieNode(name: str, node_type: str, node_id: str =
None)[source]¶ A class to represent a Homie device’s individual node.
- Parameters¶
- name: str¶
The human friendly name of the node.
- node_type: str¶
A description of the node’s
type.- node_id: str =
None¶ A unique identifying
strto use in the generated MQTT topic. If this parameter is not specified, then thenameparameter will be used (providing it conforms to Homie specifications - seevalidate_id()).
Warning
All attributes for this class should be considered read-only after calling
HomieDevice.begin(). This is because the attributes published to the MQTT broker are not dynamically updated without callingHomieDevice.begin()after changing the attributes’ value.- name¶
The node’s human friendly
nameattribute.
- node_id¶
The node’s ID as used in the generated MQTT topic.
- properties : list[HomieProperty]¶
The node’s
propertiesis a list ofHomiePropertyobjects.
- type¶
The node’s
typeattribute.