I’m just about at wit’s end with my TP-Link Smart Plugs (4x HS103 and 1x KP400). They keep turning on by themselves every day at 5:30PM and I don’t know what’s causing it. The logbook doesn’t provide any context, just says “Turned on”. Kasa doesn’t have anything scheduled and Alexa doesn’t have any routines. These plugs control the Christmas lights so I am only discovering this now since they have been decommissioned for the past 11 months.
What is interesting is that 1 of the 4 HS103s does not have this issue whatsoever. I did notice when removing the plugs from HA that they had bugged out and the integrations would have some entities from the other plugs mixed in, but that is no longer there since re-adding them to HA.
I do have a suspect but I have been unable to find any proof. I was new to HA last year when I integrated these plugs and elected to use Simple Scheduler since it was nice and easy to understand. Since then, I have uninstalled that add-on and switched to automations as I’ve learned more.
Things I’ve tried:
- Using the HA Logger to log everything to see if anything is turning on the plug
- Checking all the diagnostic information from each plug, no schedule rules
- Checking the Kasa app for schedules
- Checking Alexa routines
- Factory resetting the plugs
- After factory resetting, making sure not to name them the same names as before
In the log, I found a line like these for each plug, but I have no idea how to find what is triggering these tasks or where to find them or what an EventTask is.
2022-12-06 17:30:03.055 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.outdoor_plug_1, old_state=<state switch.outdoor_plug_1=off; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 1 @ 2022-12-06T17:09:23.138130-05:00>, new_state=<state switch.outdoor_plug_1=on; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 1 @ 2022-12-06T17:30:03.055744-05:00>>
2022-12-06 17:30:03.056 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.outdoor_plug_2, old_state=<state switch.outdoor_plug_2=off; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 2 @ 2022-12-06T17:09:23.138573-05:00>, new_state=<state switch.outdoor_plug_2=on; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 2 @ 2022-12-06T17:30:03.056089-05:00>>
2022-12-06 17:30:03.059 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=switch.outdoor_plug_1, old_state=<state switch.outdoor_plug_1=off; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 1 @ 2022-12-06T17:09:23.138130-05:00>, new_state=<state switch.outdoor_plug_1=on; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 1 @ 2022-12-06T17:30:03.055744-05:00>>)
2022-12-06 17:30:03.059 DEBUG (Recorder) [homeassistant.components.recorder.core] Processing task: EventTask(event=<Event state_changed[L]: entity_id=switch.outdoor_plug_2, old_state=<state switch.outdoor_plug_2=off; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 2 @ 2022-12-06T17:09:23.138573-05:00>, new_state=<state switch.outdoor_plug_2=on; icon=mdi:power-socket-us, friendly_name=Outdoor Plug 2 @ 2022-12-06T17:30:03.056089-05:00>>)
Possible helpful information; I am not using HA Cloud, only the Kasa app, and Alexa’s Kasa skill.
If anyone has an idea on how to fix this, please chime in. Thanks!