slashback100 / presence_simulation

Home Assistant Presence Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random 'Turned Off'

Wright55 opened this issue · comments

Quite randomly whilst away from the house the active presence simulation that had previously been turned on, turned itself off (11:44:42).

Logbook

21 May 2024
Turned off triggered by service Home Assistant Core Integration: Generic turn off
11:44:42 - 3 hours ago
Turned on triggered by service Scenes: Activate
09:43:27 - 5 hours ago
Turned off triggered by service Home Assistant Core Integration: Generic turn off
09:43:27 - 5 hours ago
Turned on
09:43:27 - 5 hours ago

I have seen this happen before but had not investigated. Looking at the Logbook no other entries at or around the timing.

Not sure if related but as you can see at the time of departure the 3 entries at 09:43:27

Is this a bug?

Graham

A further instance

23 May 2024
Turned on triggered by service Scenes: Activate
14:19:13 - 25 minutes ago
Turned off triggered by service Home Assistant Core Integration: Generic turn off
14:19:13 - 25 minutes ago
Turned on
14:19:12 - 25 minutes ago

Graham

Further instance of issue. This time Generic turn off twice?

24 May 2024
Turned on triggered by service Home Assistant Core Integration: Generic turn off
12:13:28 - 2 hours ago
Turned off triggered by service Home Assistant Core Integration: Generic turn off
12:13:28 - 2 hours ago
Turned on
12:13:24 - 2 hours ago

I can confirm on this occasion however that switch.presence_simulation was in fact still turned on, and as it should turned off correctly when I later returned home.

Are you sure it is not caused by wathever automation enable/disable the switch when you leave/come back?
The only case where the simulation restarts itself is after the period you set. If you ask the simulation to look 7 days in the past, it will restart itself after 7 days. Could that be your scenario?

Worked for quite a long time from my automation without any problems, has only happened over say the last month, but I had no time to investigate. As you can see on and then off are at the same timings so effectively I leave my home, a number of actions take place (like activating my alarm), no other instance of this happening. Effectively the time that I am away can sometimes only be a short while, so PS should not restart.
At the moment on the last few occasions, this issue has not occurred .
I will continue to monitor, if it happens again I will strip it out of the existing automation and make it a new straightforward automation on its own