Closed rfaelens closed 4 years ago
When using HomieV3, boolean properties are sent using string versions of python True or False. The homie convention specifies these should be the string literals true or false, see https://homieiot.github.io/specification/spec-core-v3_0_1/#boolean
True
False
true
false
For Property_Boolean, there is an easy workaround:
if myValue: property.value = "true" else: property.value = "false"
However, the same rule should also be applied to $settable and $retained.
$settable
$retained
Agree, that is a an error - if you do a PR I'll merge the fix
When using HomieV3, boolean properties are sent using string versions of python
True
orFalse
. The homie convention specifies these should be the string literalstrue
orfalse
, see https://homieiot.github.io/specification/spec-core-v3_0_1/#booleanFor Property_Boolean, there is an easy workaround:
However, the same rule should also be applied to
$settable
and$retained
.