I think I’m faced with a similar issue, hence why I post here and not in a new topic (will do if needed).
One of my threshold sensors does not behave as expected as well, it stays on when it should not.
I’m tracking the numbers of run my vacuum do each day, with a history stat sensor :
- platform: history_stats
name: dusty2_daily_runs
entity_id: vacuum.dusty2
state: cleaning
type: count
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
This works well. Now, I have defined a binary sensor that turns on when the vac has been run at least one time :
- platform: threshold
name: dusty2_daily_run_done
entity_id: sensor.dusty2_daily_runs
upper: 0
This kinda works : binary sensor turns on when the history sensor goes above 0, but don’t turn off when it’s reset :

Am I doing something wrong ? It’s been so long, I think I’m missing something obvious. Thanks for any help you can provide.