I have a WiFi connected weather station mounted outside of my house. To deal with the loss of signal due to distance and exterior wall thickness I setup a WiFi extender as close to the exterior wall as possible. Every so often the WiFi extender goes down and the weather data stops being collected. Here’s an example of what that looks like using the temperature sensor, the long flat lines are when the WiFi went down
will give you the last time the sensor was updated.
So
automation:
trigger:
- platform: time_pattern
# You can also match on interval. This will match every 5 minutes
minutes: "/5"
condition: '{{ as_timestamp(now()) - as_timestamp(states["sensor.ambient_weather_station_temp"].last_updated) > 30*60 }}'
action:
<whatever>
The template will be evaluated whenever sensor.ambient_weather_station_temp changes, or every minute. The automation will trigger whenever the result changes from false to true.
The Weather Station and Home Assistant are on two different networks, one has a PiHole the other doesn’t, I didn’t want to complicate things by including that detail.
The other part helped me solve the problem thanks.
It’s an Ambient Weather WS-2902B, I believe the current version is WS-2902C, not sure exactly what the difference is. I’m generally happy with it, the only thing that I didn’t like was putting it on my WiFi network. It only works on 2.4ghz so you have to temporarily disable the 5ghz network while doing it. The App that connects the two is kinda old, and super buggy, it took 6-7 tries before it finally worked. You should only have to do it once.
Connecting it to Home Assistant was really easy, just use the Ambient Weather Integration