Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: "Front Porch: Motion On/Off"
- description: ""
- triggers:
- - entity_id:
- - binary_sensor.doorbell_motion
- id: Motion
- trigger: state
- to: "on"
- - entity_id:
- - binary_sensor.doorbell_motion
- to: "off"
- for:
- hours: 0
- minutes: 3
- seconds: 0
- id: No_Motion
- trigger: state
- conditions:
- - condition: sun
- before: sunrise
- after: sunset
- after_offset: "-00:15:00"
- before_offset: "00:15:00"
- - condition: state
- entity_id: input_boolean.front_porch
- state: "off"
- actions:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - Motion
- sequence:
- - action: light.turn_on
- metadata: {}
- data: {}
- target:
- device_id: e59092133e161406bfacd855eecf5977
- - conditions:
- - condition: trigger
- id:
- - No_Motion
- sequence:
- - action: light.turn_off
- metadata: {}
- data: {}
- target:
- device_id: e59092133e161406bfacd855eecf5977
- mode: restart
Advertisement
Add Comment
Please, Sign In to add comment