homieiot / convention

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

Datatype for duration is not clear #206

Closed rhierlmeier closed 4 years ago

rhierlmeier commented 4 years ago

I think specficiation does not clearly define what datatype a property with duration payload has. Is the datatype string?

homie / device123 / mythermostat / open-duration→ PT10s
homie / device123 / mythermostat / open-duration/ $name → Open duration
homie / device123 / mythermostat / open-duration/ $unit → duration
homie / device123 / mythermostat / open-duration/ $datatype → string
homie / device123 / mythermostat / open-duration/ $settable → true
Thalhammer commented 4 years ago

https://github.com/homieiot/convention/blob/develop/convention.md#duration

Datatype should be "duration" and unit (which is optional) should not be present.

mjcumming commented 4 years ago

all messages are sent using payloads as strings