Set start time to 1:00PM, end time to 1:20PM.
Started right on time, but ended 1:25:27pm, 5m27s late.
Interestingly, in the DEBUG level Home-Assistant log there was not a single event from 1:16 to 1:22:
2022-06-02 13:16:35 DEBUG (MainThread) [homeassistant.components.tplink.coordinator] Finished fetching 192.168.15.67 data in 0.148 seconds (success: True)
2022-06-02 13:22:05 DEBUG (MainThread) [async_upnp_client.traffic.ssdp] Received packet from ('172.25.0.1', 54780): b'M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: "ssdp:discover"\r\nST: upnp:rootdevice\r\nMX: 5\r\n\r\n'
So absolutely nothing happened at 1:20, when it was supposed to trigger. 5 minutes later it finally decided to trigger:
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.tplink.coordinator] Finished fetching 192.168.15.64 data in 0.020 seconds (success: True)
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.tplink.coordinator] Finished fetching 192.168.15.54 data in 0.022 seconds (success: True)
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.automation.coffee_maker_scheduled] Automation triggered by time set in input_datetime.coffee_stop_time
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=Coffee Maker Scheduled, entity_id=automation.coffee_maker_scheduled, source=time set in input_datetime.coffee_stop_time>
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.coffee_maker_scheduled, old_state=<state automation.coffee_maker_scheduled=on; last_triggered=2022-06-02T13:00:00.004469-05:00, mode=single, current=0, id=1646408179088, friendly_name=Coffee Maker Scheduled @ 2022-06-02T12:09:50.868094-05:00>, new_state=<state automation.coffee_maker_scheduled=on; last_triggered=2022-06-02T13:25:27.394558-05:00, mode=single, current=1, id=1646408179088, friendly_name=Coffee Maker Scheduled @ 2022-06-02T12:09:50.868094-05:00>>
2022-06-02 13:25:27 INFO (MainThread) [homeassistant.components.automation.coffee_maker_scheduled] Coffee Maker Scheduled: Running automation actions
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140581399855312] Sending {"id":74,"type":"event","event":{"event_type":"automation_triggered","data":{"name":"Coffee Maker Scheduled","entity_id":"automation.coffee_maker_scheduled","source":"time set in input_datetime.coffee_stop_time"},"origin":"LOCAL","time_fired":"2022-06-02T18:25:27.394367+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}}
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140581399855312] Sending {"id":74,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"automation.coffee_maker_scheduled","old_state":{"entity_id":"automation.coffee_maker_scheduled","state":"on","attributes":{"last_triggered":"2022-06-02T18:00:00.004469+00:00","mode":"single","current":0,"id":"1646408179088","friendly_name":"Coffee Maker Scheduled"},"last_changed":"2022-06-02T17:09:50.868094+00:00","last_updated":"2022-06-02T18:00:00.058347+00:00","context":{"id":"018125930103f0b56a2312b4d1c67048","parent_id":null,"user_id":null}},"new_state":{"entity_id":"automation.coffee_maker_scheduled","state":"on","attributes":{"last_triggered":"2022-06-02T18:25:27.394558+00:00","mode":"single","current":1,"id":"1646408179088","friendly_name":"Coffee Maker Scheduled"},"last_changed":"2022-06-02T17:09:50.868094+00:00","last_updated":"2022-06-02T18:25:27.394636+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-06-02T18:25:27.394636+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}}
2022-06-02 13:25:27 INFO (MainThread) [homeassistant.components.automation.coffee_maker_scheduled] Coffee Maker Scheduled: Choose at step 1: choice 2: Running automation actions
2022-06-02 13:25:27 INFO (MainThread) [homeassistant.components.automation.coffee_maker_scheduled] Coffee Maker Scheduled: Choose at step 1: choice 2: Executing step call service
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=switch, service=turn_off, service_data=entity_id=['switch.coffee_maker']>
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140581399855312] Sending {"id":74,"type":"event","event":{"event_type":"call_service","data":{"domain":"switch","service":"turn_off","service_data":{"entity_id":["switch.coffee_maker"]}},"origin":"LOCAL","time_fired":"2022-06-02T18:25:27.398680+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}}
2022-06-02 13:25:27 DEBUG (Recorder) [homeassistant.components.recorder] Processing task: EventTask(event=<Event call_service[L]: domain=switch, service=turn_off, service_data=entity_id=['switch.coffee_maker']>)
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.protocol] 192.168.15.54 >> {"system": {"set_relay_state": {"state": 0}}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.protocol] 192.168.15.54 << {'system': {'set_relay_state': {'err_code': 0}}}
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.coffee_maker_scheduled, old_state=<state automation.coffee_maker_scheduled=on; last_triggered=2022-06-02T13:25:27.394558-05:00, mode=single, current=1, id=1646408179088, friendly_name=Coffee Maker Scheduled @ 2022-06-02T12:09:50.868094-05:00>, new_state=<state automation.coffee_maker_scheduled=on; last_triggered=2022-06-02T13:25:27.394558-05:00, mode=single, current=0, id=1646408179088, friendly_name=Coffee Maker Scheduled @ 2022-06-02T12:09:50.868094-05:00>>
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140581399855312] Sending {"id":74,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"automation.coffee_maker_scheduled","old_state":{"entity_id":"automation.coffee_maker_scheduled","state":"on","attributes":{"last_triggered":"2022-06-02T18:25:27.394558+00:00","mode":"single","current":1,"id":"1646408179088","friendly_name":"Coffee Maker Scheduled"},"last_changed":"2022-06-02T17:09:50.868094+00:00","last_updated":"2022-06-02T18:25:27.394636+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}},"new_state":{"entity_id":"automation.coffee_maker_scheduled","state":"on","attributes":{"last_triggered":"2022-06-02T18:25:27.394558+00:00","mode":"single","current":0,"id":"1646408179088","friendly_name":"Coffee Maker Scheduled"},"last_changed":"2022-06-02T17:09:50.868094+00:00","last_updated":"2022-06-02T18:25:27.406840+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-06-02T18:25:27.406840+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.smartdevice] Adding query for <Module Schedule (schedule) for 192.168.15.54>: {'schedule': {'get_rules': None, 'get_next_action': None}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.smartdevice] Adding query for <Module Usage (schedule) for 192.168.15.54>: {'schedule': {'get_realtime': None, 'get_daystat': {'year': 2022, 'month': 6}, 'get_monthstat': {'year': 2022}}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.smartdevice] Adding query for <Module Antitheft (anti_theft) for 192.168.15.54>: {'anti_theft': {'get_rules': None, 'get_next_action': None}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.smartdevice] Adding query for <Module Time (time) for 192.168.15.54>: {'time': {'get_time': None, 'get_timezone': None}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.smartdevice] Adding query for <Module Cloud (cnCloud) for 192.168.15.54>: {'cnCloud': {'get_info': None}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.protocol] 192.168.15.54 >> {"system": {"get_sysinfo": null}, "schedule": {"get_rules": null, "get_next_action": null, "get_realtime": null, "get_daystat": {"year": 2022, "month": 6}, "get_monthstat": {"year": 2022}}, "anti_theft": {"get_rules": null, "get_next_action": null}, "time": {"get_time": null, "get_timezone": null}, "cnCloud": {"get_info": null}}
2022-06-02 13:25:27 DEBUG (MainThread) [kasa.protocol] 192.168.15.54 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'err_code': -11, 'err_msg': 'time not sync'}},
'cnCloud': {'get_info': {'binded': 0,
'cld_connection': 0,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 0,
'username': ''}},
'schedule': {'get_daystat': {'day_list': [], 'err_code': 0},
'get_monthstat': {'err_code': 0, 'month_list': []},
'get_next_action': {'err_code': -11, 'err_msg': 'time not sync'},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'err_code': -11, 'err_msg': 'time not sync'}},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': 'HS103_D',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': '8006F0ACE6D1015112B9A92CCC9E37D81D799FC8',
'err_code': 0,
'feature': 'TIM',
'hwId': '80CB7367CEA6E3B6DC96C2855EE7C79A',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': 436704,
'led_off': 0,
'longitude_i': -723130,
'mac': '60:32:B1:74:35:74',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS103(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'oemId': '1925575B7899062F242F15F7AFE4D486',
'on_time': 0,
'relay_state': 0,
'rssi': -56,
'status': 'new',
'sw_ver': '1.0.2 Build 200602 Rel.114349',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 6,
'mday': 11,
'min': 29,
'month': 1,
'sec': 12,
'year': 2000},
'get_timezone': {'err_code': 0, 'index': 18}}}
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.tplink.coordinator] Finished fetching 192.168.15.54 data in 0.022 seconds (success: True)
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.coffee_maker, old_state=<state switch.coffee_maker=on; icon=mdi:coffee, friendly_name=Coffee Maker On @ 2022-06-02T13:00:00.422240-05:00>, new_state=<state switch.coffee_maker=off; icon=mdi:coffee, friendly_name=Coffee Maker On @ 2022-06-02T13:25:27.781709-05:00>>
2022-06-02 13:25:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140581399855312] Sending {"id":74,"type":"event","event":{"event_type":"state_changed","data":{"entity_id":"switch.coffee_maker","old_state":{"entity_id":"switch.coffee_maker","state":"on","attributes":{"icon":"mdi:coffee","friendly_name":"Coffee Maker On"},"last_changed":"2022-06-02T18:00:00.422240+00:00","last_updated":"2022-06-02T18:00:00.422240+00:00","context":{"id":"018125930103f0b56a2312b4d1c67048","parent_id":null,"user_id":null}},"new_state":{"entity_id":"switch.coffee_maker","state":"off","attributes":{"icon":"mdi:coffee","friendly_name":"Coffee Maker On"},"last_changed":"2022-06-02T18:25:27.781709+00:00","last_updated":"2022-06-02T18:25:27.781709+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}},"origin":"LOCAL","time_fired":"2022-06-02T18:25:27.781709+00:00","context":{"id":"018125aa4f6100132690c4294656b214","parent_id":null,"user_id":null}}}
2022-06-02 13:25:27 DEBUG (Recorder) [homeassistant.components.recorder] Processing task: EventTask(event=<Event state_changed[L]: entity_id=switch.coffee_maker, old_state=<state switch.coffee_maker=on; icon=mdi:coffee, friendly_name=Coffee Maker On @ 2022-06-02T13:00:00.422240-05:00>, new_state=<state switch.coffee_maker=off; icon=mdi:coffee, friendly_name=Coffee Maker On @ 2022-06-02T13:25:27.781709-05:00>>)
2022-06-02 13:25:27 DEBUG (Thread-3) [paho.mqtt.client] Sending PINGREQ
2022-06-02 13:25:27 DEBUG (Thread-3) [paho.mqtt.client] Received PINGRESP
2022-06-02 13:25:28 DEBUG (MainThread) [kasa.smartdevice] The device has emeter, querying its information along sysinfo
I’m not seeing a pattern yet.