How to check if a temp. sensor is still 'alive'

I have a flow that regulates by heating with a heatpump. For this I need the outside temperature.
At this moment i use the temperature from Homey’s Weather (add them up and divide by two) and from the KNMI App, but they sumtmes differ from the actual outside temperature.

My plan is to put 2 Sonoff temp sensors somewher outdoor and take the average of these.

But with a failing/stuck Aqara sensor still fresh in mind : How can I test if the sensors are giving valid values ?

  • Test if they are still reachable
  • Test if (I think) the value has changed in the last 12 hours ? Even in summer night and day should differ.
  • Any other way ?

If the test(s) fail I’ll have the flow revert the heating to thermostat (I have the flow for that already in place).

btw if the sensors go below -9 I’ll also revert to thermostat since the sensors can’t measure below -10..

1 Like

A very common way is the 2 out of 3 test. You use 3 sensors and at least 2 shall have the same value.

1 Like

I use Device capabilities to check if the sensor has reported the last x hours.
Use the card “Retrive insight value from” and set the time to 0. This will give you the last time the sensor reported.

You could also restart a timer everytime the sensor reports. When the timer finishes the sensor has not reported.

1 Like

But I intend to put them at different locations, so I doubt if that will be the case..

Spounds good, I’m not to familiar with the extended options of Device Capabilities though, only the regular ‘create virtual device’…

This was an answer to your question “ How can I test if the sensors are giving valid values ?”.
As it is difficult/impossible to make one sensor 100% reliable, as a sensor cannot send a message that it cannot reach Homey :wink:, etc.
Using this principle, for measuring the temperature at two location, you need 6 devices !

But maybe Homey can give a notification if the sensor doesn’t give a value ?

It is a card in the “Then” section of the app.

Ah, I think I did something like that with the aqara sensor that was not working wel…

2 Likes

Need to look in to that. Could be a solution but I’m not familiar with scripts, never used them…

Ok, I did this :

But not sure what to select here :

It gives me :

Aangepast UT Tick : 1742640105765

or

Duur tot nu : 801

Edit: got it… Duration is last upate since in milliseconds, right ?

Exactly


Still not getting something to work with.
Updates seem to refresh at random…

Hello, I have made an advances flow to do as you said. Every time the temperature changé it restart a 24h timer. And every day at 20h00 the flow is checking every timers are still running. If no an alert is raised for the concerned sensor.

Or you could just send an alert when the timer finishes. No need to check whether it is running or not.

That could work, but 24 is a bit long for a temp sensor for heating not working.

But to short and you might miss a temp change ? Not sure yet…

Yes 24h can be a bit long… You can choose 12h for example. It is true that the timer cannot be too short because temp can be stable in a room. However, my Aqara sensors measure temp, humidity and pressure. It seems that humidity changes more often than temp. So putting a timer on humidity change is perhaps more usefull to track an issue with the sensor.

This is for outdoor…

Insights for the sensor will show you how frequent it updates.