Skip to content

Changing $homie value #212

@bggardner

Description

@bggardner

In 6d852df the convention was updated with:

The following MQTT topics must remain unchanged when a device is in ready, sleeping or alert state:

Any device attributes except $name and $state
The $properties attribute of any node
Any attribute of any property except $name

However, the convention also states:

Homie controllers must by default perform auto-discovery on the wildcard topic "+/+/$homie".

My first reaction would be to add $homie to the list of device attributes that cannot be changed when a device is in ready, sleeping, or alert state. However, I believe the intent is that publishing to $homie (regardless of $state) triggers a "re-discovery" since the protocol version may have changed. In any case, consider adding some clarification to the convention, either in both sections mentioned above, and/or something like:

Publishing to a device's $homie attribute will trigger a rediscovery by Homie controllers, so it is recommended that devices disconnect or enter the init state first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions