This entity Wyze2Motion5m records the number of times the motion sensor is “on” for the past 5 minutes.
It works perfect for long time, but suddenly it stopped working today after I pulled the latest home assistant container (Home Assistant Core 2022.5.3). When the motion sensor is triggered, it doesn’t change from 0 to 1. Anyone know what could be the issue in the latest HA container?
There is no error in log.
hate to hijack a thread, but i am having similar issues where i am not getting any data on history_stats sensors… I created a sensor to see if my AC was on heat or cool. here is what i have as that sensor sensor.
they always show 0.0 on the stats, i would expect them to be showing some rolling total throughout the day. I am sure i am missing something on my end, but i can’t figure out what it is.
No I didn’t see any errors from the log. Also it is not excluded from recorder.
It was working fine for more than 1 year. It stopped working since I did the update of the latest container. No change on the configuration.
Based on your current configuration and the screenshots, it should be working. Are you positive it’s not working? It’s only looking at the last 5 minutes. The only other suggestion I could see causing the problem is that your duration is not in quotes.
After further checking carefully, I found that it is actually working but with delay on the updating Wyze2Motion5m.
Here are the trigger entries on the motion sensor:
Cleared (no motion detected)
8:46:16 AM - 8 seconds ago
Detected motion
8:45:34 AM - 1 minute ago
Cleared (no motion detected)
8:43:11 AM - 3 minutes ago
Detected motion
8:42:29 AM - 4 minutes ago
As can see there is delay about 40+ seconds.
I have same setup for two motion sensors, they all behave same (delay updating on the history_stats entities).