TP-Link automation trigger delay

Where is the components folder on HA OS? It doesn’t seem to be in /usr/src/homeassistant… on my install, and it’s not in the same folder as custom_components or configuration.yaml

Try:

➜  ~
➜  ~ docker exec -it homeassistant bash
homeassistant:/config# cd /usr/src/homeassistant/homeassistant/components/tplink
homeassistant:/usr/src/homeassistant/homeassistant/components/tplink#
homeassistant:/usr/src/homeassistant/homeassistant/components/tplink# ls -al
total 132
drwxr-xr-x    1 root     root          4096 Jan 31 03:22 .
drwxr-xr-x    1 root     root         36864 Jan 31 03:22 ..
-rw-r--r--    1 root     root          4667 Jan 31 02:59 __init__.py
drwxr-xr-x    2 root     root          4096 Jan 31 03:22 __pycache__
-rw-r--r--    1 root     root          5828 Jan 31 02:59 config_flow.py
-rw-r--r--    1 root     root           550 Jan 31 02:59 const.py
-rw-r--r--    1 root     root          2017 Jan 31 02:59 coordinator.py
-rw-r--r--    1 root     root          1172 Jan 31 02:59 diagnostics.py
-rw-r--r--    1 root     root          1932 Jan 31 02:59 entity.py
-rw-r--r--    1 root     root         14578 Jan 31 02:59 light.py
-rw-r--r--    1 root     root          3198 Jan 31 02:59 manifest.json
-rw-r--r--    1 root     root          5169 Jan 31 02:59 sensor.py
-rw-r--r--    1 root     root          3220 Jan 31 02:59 services.yaml
-rw-r--r--    1 root     root          4104 Jan 31 02:59 strings.json
-rw-r--r--    1 root     root          4365 Jan 31 02:59 switch.py
drwxr-xr-x    2 root     root          4096 Jan 31 03:02 translations
homeassistant:/usr/src/homeassistant/homeassistant/components/tplink#

If you are interested, I created a HACS custom components that does just that, and I try to keep it up to date with the upcoming Tplink updates that are shipped with HA updates.
Add the following repo to your HACS : GitHub - fabien88fr14/tplink_custom: Boost TP-Link device responsiveness in Home Assistant with this custom component. Reducing API query intervals from 5 to 1 second, it ensures your smart home reacts swiftly to your commands.

1 Like

My dude – thanks for that!! I updated my HA, completely forgot about this issue, reminded myself, found my post, this thread, and now your awesome repo!
:sweat_smile: