Sonoff TRVZB External Sensor Sync with External mode and null checks Zigbee2MQTT

Sonoff TRVZB External Sensor Synchronization Blueprint

This blueprint provides a method for synchronizing external temperature sensors with the Sonoff TRVZB via Zigbee2MQTT. It ensures the device stays in the correct external mode and applies averaged temperature data from multiple sources.


Features

  • Multi-Sensor Averaging: Supports selecting multiple temperature sensors and calculates the average room temperature.
  • Initialization Protection: Explicitly handles and ignores invalid sensor states such as null and None.
  • External Mdoe Check: Automatically monitors and forces the TRV back into external sensor mode if it reverts to internal sensing.
  • Drift and Stability Control: Includes configurable thresholds for temperature drift and a stability duration to prevent excessive adjustmentrs.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

V3: Update

  • Updated drift time limit from 10 minutes to 1 hour

really enjoy using this blueprint! Thank you!

Just to make sure i understand the drift setting. So for the default of 0,3 the temperature on the TRVZB is not updated unless the external temperature crosses that threshold?

Exactly,if the TRV local temperature and external temperatures drift +/-0.3(the difference between them) then the conditions are met for updating the TRV.

drift_detected: "{{ (avg_temp - trv_temp) | abs >= threshold | float }}"

Hi all, Just to reply to any users with questions, note trhis BP will update your TRV back to external temp sens mode automatically if the avg_temp (external sensor(s))) evaluate to a numeric value i.e.(healthy), if not then it will remain in its CURENT state. So if you replace batteries and the external temp sensor is healthy it will updfate your TRV to external and use your external sensor as the trv current sensor, as expected and instantly.

Cheers