Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Open Gate While
- description: ""
- trigger:
- - platform: zone
- entity_id: person.voskov
- zone: zone.home
- event: enter
- - platform: zone
- entity_id: person.tanya
- zone: zone.home
- event: enter
- - platform: state
- entity_id:
- - binary_sensor.in_car
- - binary_sensor.tanya_in_car
- to: "on"
- condition: []
- action:
- - repeat:
- while:
- - condition: or
- conditions:
- - condition: and
- conditions:
- - condition: zone
- entity_id: person.tanya
- zone: zone.home
- - condition: state
- entity_id: binary_sensor.tanya_in_car
- state: "on"
- - condition: and
- conditions:
- - condition: state
- entity_id: binary_sensor.in_car
- state: "on"
- - condition: zone
- entity_id: person.voskov
- zone: zone.home
- sequence:
- - service: script.open_gate
- data: {}
- - delay:
- hours: 0
- minutes: 0
- seconds: 11
- milliseconds: 0
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement