Sonoff TRVZB external temperature sensor - ZHA integration

Hey All!

First blueprint, so any feedback is appreciated!

This is a simple blueprint i made for my Sonoff TRVZB radiator thermostats. The function here has been a part of Z2M for a while, but is now available to ZHA aswell.

Basically it reads the temperature from an external temperature sensor, and writes that value into the TRV’s external temperature field. This happens every time the temperature sensor changes (eg. 20.5->20.4), or every 15 minutes so the TRV does not “panic” and go back to listening to it’s internal temperature sensor. It also turns off the TRV if a door/window sensor opens, if you add any such sensors.

NB! You have to go into the TRV device settings and enable “External temperature sensor”.

Required devices:
TRV
External temperature sensor

Optional devices:
Door/window sensors (Supports multiple)

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

3 Likes

Nice one. Thanks.

Feedback: If Window is closed, your automation turns on the HLK. It would be better to bring the TRV in the previous state before window was opened. (e. G. In our sleeping room the TRV is mostly off.)
It looks like the TRVZB has an “window open“ switch. I would expect the TRVZB pauses all operations when switch is on and resumes when switch is turned off (but I didn’t test it yet). Maybe that would be an better approach for your blueprint.

Best regards
Matthias

Thanks for the feedback! The previous state makes sense! I’ll look into that.

As far as i understand the “window open” switch in the device settings, it’s Sonoffs own software way of detecting an open window, if the temp drops fast.

You could probably have a window sensor enable this entity, instead of it turning off the TRV, but i’d have to test that.

Cool, thanks. Works ok so far after setting up for 4 TRVs and forcing all to run now.
This is my first automation so maybe I missed something but I had to switch on the Use External Temperature manually. No biggie as hopefully only needs to be done once!

This is great, exactly what I needed. I didn’t even realize that this was the mechanisms behind the TRVZB’s ‘external heating sensor’ number while using the ZHA integration.

Thanks!