homieiot / convention

🏡 The Homie Convention: a lightweight MQTT convention for the IoT
https://homieiot.github.io/
Other
710 stars 59 forks source link

Point Last Will section to `$state` #157

Closed ibloat closed 5 years ago

ibloat commented 5 years ago

$ready does no longer seem to be a thing, Lifecycle is tracked in the $state attribute so the last will should update that instead

euphi commented 5 years ago

@davidgraeff I think this should be tagged as 3.0.2?

davidgraeff commented 5 years ago

We would need to backport that for a revision update. The current master contains breaking changes and will be 4.0

euphi commented 5 years ago

Ah yes, I forgot. Luckily, the v3.0.1 tag does not contain this error, because it only defines the possible state for $state:

The $state device attribute represents, as the name suggests, the current state of the device. There are 6 different states:

[....]

  • lost: this is the state the device is in when the device has been "badly" disconnected. You must define this message as LWT.