Replies: 3 comments 6 replies
-
Hmm, in my experience it is a bit of a balance between what kind of failure mode you want to most protect against. You could extend the timeout time longer, but you run a greater risk over overheating or overcooling if the sensor fails. A shorter timeout is safer in that sense, but yes, a delayed update from the sensor, or very stable temperatures in the air, could mean that it reverts to the internal sensor unexpectedly (though it would go back to the external sensor on the next update, and if room temperature is that stable anyway, then it wouldn't be likely to actually cause a problem). One thing to test might be to try calling the I'm a bit leery about it, because of of the failure modes I've had on some zigbee sensors is that they will continue reporting values, but always at a stuck temperature value. So in my case I want the timeout to revert to the internal sensor in that case, even if it means it does it more often than it needs to. |
Beta Was this translation helpful? Give feedback.
-
After investigating what all is happening, I realized there were two problems:
So I decided to try putting all the logic into an HA automation so I could make it do what I want, but unfortunately that involves polling. Here's what I came up with, which seems to be working ok:
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure if I'm experiencing the same issue exactly, but it seems similar. I am using a Ecowitt remote temperature sensor which is reliably connected to Home assistant. Looking at the logs this is reported temps: I'm using it as remote temp sensor for my wall mounted mitsubishi unit but getting weird reports of the temps jumping way high. The high temperature I've found is when it uses the built in temperature sensor since it's so close to teh unit it always reads really hot. Ifyou look at the times, it's spiking to 80F+ when the actual remote sensor is giving readings to Home assistant. My ESP config has remote temperature sensor timeout at 30 mins which is actually longer than I'd like given the ecowitt sensor is giving readings every 1 min. I tried @homegreen's solution which was basically matching it identically except changing my sensor name. I'm getting an issue with F vs C I believe as when the automation runs, the climate temp is shown as 32F which is the telltale sign something is wrong, although I'm not sure where. The relevant portions of my ESPHome config is this:
In HA, the sensor is configured like this: To debug this, I ran the automation once and looked at the ESPHome device logs and saw these lines:
So for some reason it got 32F / 0C. Is there a bug in my automation?
Calling the sensor state from dev tools indicates it is indeed in F and correctly reporting: I then tried setting the temperature by calling the action directly: doing this resulted in the temp also going to 32F right away: So this begs the question what is the right way to send temp to the action? |
Beta Was this translation helpful? Give feedback.
-
Hi,
This may be more of a HomeAssistant question, but I figured I'd ask here because it's highly related to this functionality.
I recently got some Shelly temperature sensors, and have them setup with my cn105 through HomeAssistant. This mostly works great, except for one problem:
HomeAssistant doesn't record a value when the temperature probe reports an identical value multiple times in a row (when the temperature isn't changing at all). So I have periods where the HomeAssistant data shows no updates for 30-60 minutes, and so the cn105 remote temperature times out.
I enabled debug logging in HomeAssistant for the shelly integration and I can see that the probe is sending updates every 10 minutes or so in these periods. But the cn105 consistently gets a remote temperature timeout because HomeAssistant isn't sending the same value again.
Has anyone run into this, or found a way to work around it?
Beta Was this translation helpful? Give feedback.
All reactions