Hi, I have an mqtt temperature sensor (its a zigbee sensor, with zigbee2mqtt)
I know that, the zigbee2mqtt publish the right value (example: 25.43) but in the history graph, there are unusable values (example: 25.980000726176556)
My config.yaml
- platform: “mqtt”
state_topic: “zigbee2mqtt/kis_szoba_temp”
availability_topic: “zigbee2mqtt/bridge/state”
unit_of_measurement: “°C”
icon: mdi:temperature-celsius
value_template: “{{ (value_json.temperature | float) | round(2) }}”
json_attributes:
- “linkquality”
- “battery”
- “voltage”
But I tried with value_template: "{{ (value_json.temperature }}"
too.
Did anyone ever meet something like this?