Hi everybody!
I’ve bought 3 SONOFF TRVZB valves for my heating system and I’m trying to configure them.
I’ve successfully connected them through Z2M to HA and can use all their functionalities.
The measured temperature is not available as a standalone sensor but it’s integrated into the climate entity exposed by the valve (as described in the Z2M page). Therefore, to get the temperature values from the valve itself I’ve created 3 MQTT Sensors like the following:
mqtt:
sensor:
- name: "Sonoff TRV Bagno local temperature"
state_topic: "zigbee2mqtt/Sonoff TRV Bagno"
state_class: measurement
device_class: temperature
force_update: true
value_template: "{{ value_json.local_temperature|float }}"
suggested_display_precision: 1
unit_of_measurement: "°C"
The problem I’m currently facing is that the value is not updated correctly. For example, if I launch the HA instance until I interact with the valve knob or the valve somehow decides to update the value (even when the temperature is constant) the displayed value is NaN. After that the values remain constant unless I interact with the valve.
Anyone has faced this same issue? Did I do something wrong?
Note: I know that an external sensor would be a better option but somehow the postal service lost my package, I need to order new ones but I need to wait for a final decision by the postal service on the situation to get a refund