SONOFF TRVZB local temperature sensor

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

I’d suggest you to create a template sensor helper to read the current temperature from the climate entity’s attributes. This sensor will be updated whenever the climate entity gets updated by the device.

Thanks for your answer!

Unfortunately, I still have the same problem. I must interact with the device to cause the change in the state.

Just for comparison, on the upper row left and center are two Tado valves, while the others are Sonoff. The drastic drop in the graphs is caused by me changing the target temperature in the thermostat.

Could it be because the valves are currently on the ‘OFF’ setting?

EDIT: run a test overnight to check whether turning the valves on (setting 15C as target temperature) would change anything. Now I can get an update from time to time.