Multiple unrelated devices turned off by homeassistant.turn_off - how can I tell why?

At about 8:19 pm last night, multiple unrelated devices were turned off, including the AV receiver, media player, front lights, a ceiling fan, all the “switches” that control scheduler entities, and many others - many devices but not everything. It included entities that are not normally turned off, including one scene (but only one), setting entities controlling camera functions, etc.

The logs show, for example:

Turned off triggered by service homeassistant.turn_off
8:20:56 PM - 13 hours ago

The turn_off’s are logged over about 1-2 minutes and I can’t tell what instigated them.

Is there any way to tell from the logs what instigated it or why this might have happened? Or other suggestions how to trace this?

Do you have any automation running, which could cause this ? , or included some blueprints you don’t really understand fully ?

Thanks for the reply. I have many automations and a few scenes, but none of them should be able to turn off all these random unrelated devices. One scene was activated with a turn_off which is odd since I thought scenes only could turn_on. In any case, the scene that was activated can turn off a couple light entities but not all the random stuff.

I am doing some development on a fork of a custom Climate integration but it shouldn’t be able to trigger anything like this - certainly doesn’t have code to.

I captured the home-assistant.log covering the interval when this happened and there is nothing obviously helpful here. It is quiet for 2 minutes before, and then it just starts in with errors from entities receiving turn_off which don’t support it. I can supply log info if someone thinks it will help.

I cracked open the event log from the home-assistant.db and see that the turn_off events just started flowing to lots and lots of entities, but it started with out any obvious trigger and I am not seeing any way to trace it to a source.

Here in this lightly redacted extract you see for context the first 6 events were typical things (person detected at front door), then almost 5 minutes later the turn_off events started. I’m including the first couple ones here but you can see they are totally random (switch.omnilogic_spa_jet and then switch.doorbell1_siren_on_event) and it goes on and on from there turning off 100+ entities.

sqlite> select * from events e, event_data d where time_fired_ts > 1693624400 and time_fired_ts < 1693625152 and d.data_id = e.data_id order by time_fired_ts limit 10;
event_id|event_type|event_data|origin|time_fired|created|context_id|context_user_id|context_parent_id|data_id|origin_idx|time_fired_ts|context_id_bin|context_user_id_bin|context_parent_id_bin|event_type_id|data_id|hash|shared_data
15345564|||||||||20377|0|1693624410.97341|---|||8|20377|3132618806|{"name":"Notify when person at front door","entity_id":"automation.person_at_front_door","source":"mqtt topic frigate/events"}
15345565|||||||||27409|0|1693624410.97586|---|||6|27409|127947960|{"domain":"notify","service":"mobile_app_pixel_7_pro","service_data":{"message":"Person at Front Door","title":"Person at Front Door","data":{redacted}}}
15345566|||||||||20377|0|1693624415.96815|---|||8|20377|3132618806|{"name":"Notify when person at front door","entity_id":"automation.person_at_front_door","source":"mqtt topic frigate/events"}
15345567|||||||||27409|0|1693624415.97065|---|||6|27409|127947960|{"domain":"notify","service":"mobile_app_pixel_7_pro","service_data":{"message":"Person at Front Door","title":"Person at Front Door","data":{redacted}}}
15345568|||||||||20377|0|1693624423.84042|---|||8|20377|3132618806|{"name":"Notify when person at front door","entity_id":"automation.person_at_front_door","source":"mqtt topic frigate/events"}
15345569|||||||||27409|0|1693624423.84316|---|||6|27409|127947960|{"domain":"notify","service":"mobile_app_pixel_7_pro","service_data":{"message":"Person at Front Door","title":"Person at Front Door","data":{redacted}}}
15345571|||||||||27410|0|1693624717.03304|---|||6|27410|2912944569|{"domain":"homeassistant","service":"turn_off","service_data":{"entity_id":"switch.omnilogic_spa_jet"}}
15345572|||||||||27411|0|1693624717.03341|---|||6|27411|477465242|{"domain":"switch","service":"turn_off","service_data":{"entity_id":["switch.omnilogic_spa_jet"]}}
15345573|||||||||27412|0|1693624717.1738|---|||6|27412|560973228|{"domain":"homeassistant","service":"turn_off","service_data":{"entity_id":"switch.doorbell1_siren_on_event"}}
15345574|||||||||27413|0|1693624717.17583|---|||6|27413|2254388913|{"domain":"switch","service":"turn_off","service_data":{"entity_id":["switch.doorbell1_siren_on_event"]}}
sqlite>