Help with Yaml code for PIR Occupation

The Home Assistant Cookbook - Index has some good info regarding this. Specifically:

  1. Why and how to avoid device_ids in automations and scripts and
  2. Motion activated lights automation
1 Like