alias: Frigate (Front doorway light on person dectect) description: "" trigger: - platform: mqtt topic: frigate/events payload: "on" value_template: >- {{ "on" if value_json["type"] == "new" and value_json["before"]["camera"] == "front_door_cam_fri" and value_json["before"]["label"] == "person" else "off"}} condition: - condition: sun after: sunset action: - type: turn_on device_id: 1ac8dbe1de45515de0cb274ec116b916 entity_id: light.front_doorway_light domain: light mode: single
Lights shouldn't be needed until after sunset. Right?