Sonoff TRVZB temperature synchronisation with external sensor #26308
Replies: 11 comments 10 replies
-
Hi photomoose, I was hoping you'd pick up something like this and implement it as it will be a game changer for many I imagine. Personally I think it should reside in Z2M, this means if I ever lose HA due to an outage the heating will remain unaffected by the outage because both temp sensor and TRV exist in Z2M. |
Beta Was this translation helpful? Give feedback.
-
This logic should be done by e.g. HA indeed, exactly for the reasons you mentioned here:
|
Beta Was this translation helpful? Give feedback.
-
I was just looking to see if this option is already implemented, as the firmware already supports it for about two months ;) As Koenkk writes, it would probably be better if there would be an entity to which the value could be written from HA. I hope this can be implemented as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
@EgerUS and @Koenkk: I have a working solution, I have exposed the "external sensor" entity in Z2M. I then have automations in HA which trigger on external sensor changes and then set the entity on the appropriate TRV(s). End result is that the temperature reported by the TRV remains in sync with the external sensor. I've been using it with Versatile Thermostat and it appears to be working well. I’m currently away until Thursday but will raise a PR with the changes by the end of the week. |
Beta Was this translation helpful? Give feedback.
-
I just noticed your PR, great improvement 👍
This tells that the feature was present in the FW 1.2.1 already, and yesterday the TRVs got an update to 1.3.0, for which I cannot find the changelog. Did anyone notice any change in behavior with 1.3.0 in regards to this topic? |
Beta Was this translation helpful? Give feedback.
-
I have a working HA blueprint to control the synchronisation. I will post this to the HA forum later and provide the link here. |
Beta Was this translation helpful? Give feedback.
-
I think it’s there in the firmware, just probably not present in the
eWeLink app yet.
…On Mon, 24 Feb 2025 at 11:19, Bojan Potočnik ***@***.***> wrote:
Great to see the hysteresis being implemented! 🥳 They promised the
implementation in Q1, but I got concerned yesterday after seeing this
comment https://forum.ewelink.cc/t/trvzb-hysteresis/72122/38
—
Reply to this email directly, view it on GitHub
<#26308 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPEJFV4OX7MVBWKDG3P6Q32RL52HAVCNFSM6AAAAABW3YARWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMRZHE2TCMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
question, what happens if HA goes down? The external temperture sensor wont talk balk to the trv? What prevents the TRV for like overheating or not kicking in when freezing? Now i am using the internal offset setting to correct the senor all the time. If HA goes down, its still more or less in order since the interal tem psensor working (with offset, better than no temp sensor at all) |
Beta Was this translation helpful? Give feedback.
-
Hah, would be good if there is at least a hard-coded timeout, e.g. no update to the temp for 2 hours means the TRV will revert to the internal sensor. Even better if it were configurable. |
Beta Was this translation helpful? Give feedback.
-
See my comments here regarding fall back to internal sensor when external sensor is unavailable. |
Beta Was this translation helpful? Give feedback.
-
Hey @Koenkk,
I've recently discovered that the Sonoff Bridge and eWeLink app make it possible to "connect" a Sonoff TRVZB with an external temperature sensor such that the internal temperature reported by the TRV matches that of the external device. This appears to be more accurate than any kind of temperature calibration setting, as the local temperature simply follows that of the external device.
From what I can tell, this synchronisation is orchestrated by the Sonoff Bridge: the external temperature sensor (SNZB-02D) advertises its temperature when it changes, which is received by the Bridge, and then the Bridge writes an attribute to the TRV with the temperature that was advertised by the external sensor, effectively updating the local temperature on the TRV.
I could quite easily expose two attributes on the TRV (there's one to enable/disable this behaviour and another to set the temperature). The question is where should the orchestration occur? It would be relatively simple to create an automation/blueprint in Home Assistant which is triggered by changes in temperature on an external device and then updates the TRV temperature. But I wonder whether this something that could also be achieved directly in Z2M? Or perhaps this "business logic" is something that falls outside the remit of Z2M and is better suited to an automation in Home Assistant?
I'd appreciate your thoughts on this.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions