Closed Djebouh closed 5 years ago
The update of value_template in the mqtt:config is cosmetic, and makes it easier to read. The cast into int and float in the mqtt:state is needed otherwise boolean (matching {% if attribval | int == attribval -%}) are not correctly serialized.
Thanks!
The update of value_template in the mqtt:config is cosmetic, and makes it easier to read. The cast into int and float in the mqtt:state is needed otherwise boolean (matching {% if attribval | int == attribval -%}) are not correctly serialized.