Guest User

Home Assistant AI Front Door Package Detection (YouTube @HiTechLifeTV)

a guest
Sep 8th, 2025
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | Source Code | 0 0
  1. This image is a view from a front door camera on a residential single family home, looking out at the home’s front step, walkway, yard, driveway, and street. I want you to carefully examine the image and count how many packages you see on the front step. Only look at the front step area for packages and ignore any other areas in the image. Return a numeric answer of 0 if not packages are seen, otherwise return the number of packages that are visible.
  2.  
  3. Arriving
  4.  
  5. {{ trigger.from_state is not none and trigger.to_state is not none
  6. and trigger.from_state.state not in ['unknown','unavailable']
  7. and trigger.to_state.state not in ['unknown','unavailable']
  8. and (trigger.from_state.state | int) == 0
  9. and (trigger.to_state.state | int) > 0 }}
  10.  
  11. Removing
  12.  
  13. {{ trigger.from_state is not none and trigger.to_state is not none
  14. and trigger.from_state.state not in ['unknown','unavailable']
  15. and trigger.to_state.state not in ['unknown','unavailable']
  16. and (trigger.to_state.state | int) < (trigger.from_state.state | int) }}
Advertisement
Add Comment
Please, Sign In to add comment