Automation Speed Expierences

Hi All,

first time poster here so go easy on me lol!

I have created my first automation which is meant to turn on a TP Link smart switch when my nest camera noticies movement. The idea is to get the automation to only run between the hours of 23:00 and 08:00 but for troubleshooting purposes, i dont have a time in the conditions. This is the automation:-

  - alias: Turn on lamp when motion
trigger:
  platform: state
  entity_id: binary_sensor.living_room_camera_living_room_entrance_activity
  to: 'on'
action:
  service: switch.turn_on
  entity_id: switch.livingroomlamp

My issue is it take 18 seconds for the light to turn on. Now i’m assuming this is because the nest has to post the new result to the website to state it has seen motion and then home assistant has to see that change and then the automation runs.

Can someone give me some insight and knowledge on how i can achieve a fast result? I assuming getting dedicated motion sensors could do the trick but any help is appreciated.

Have you monitored the binary sensor to see how long it takes to identify the change?

It seems like the trip out to the nest servers and back may be the limiting factor here.

I have a door sensor (zwave) that turns on my garage light. The light is on before I have the door open.