Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- device_tracker:
- - platform: nmap_tracker
- hosts: 192.168.0.1/24
- home_interval: 1
- consider_home: 300
- interval_seconds: 15
- - platform: bluetooth_tracker
- track_new_devices: True
- scan_interval: 15
- - platform: icloud
- account_name: bart
- username: ***
- password: ***
- - platform: icloud
- account_name: sharon
- username: ***
- password: ***
- group:
- barthelper:
- name: Bart Helper
- entities:
- - device_tracker.iphonebartnmap
- - device_tracker.iphonebartbt
- sharonhelper:
- name: Sharon Helper
- entities:
- - device_tracker.iphonevansharonnmap
- - device_tracker.iphonevansharonbt
- automation:
- - alias: Bart kan vertrekken op het werk
- trigger:
- platform: time
- after: '17:30:00'
- condition:
- condition: state
- entity_id: device_tracker.iphonebart
- state: 'Data Consult'
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: 'bart'
- interval: 1
- device_name: 'iphonebart'
- - alias: Sharon kan vertrekken op het werk in de week
- trigger:
- platform: time
- after: '18:30:00'
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.iphonevansharon
- state: 'Bel&Bo'
- - condition: time
- weekday:
- - mon
- - tue
- - wed
- - thu
- - fri
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: 'sharon'
- interval: 1
- device_name: 'iphonevansharon'
- - alias: Sharon kan vertrekken op het werk op zaterdag
- trigger:
- platform: time
- after: '18:00:00'
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.iphonevansharon
- state: 'Bel&Bo'
- - condition: time
- weekday:
- - sat
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: 'sharon'
- interval: 1
- device_name: 'iphonevansharon'
- - alias: Bart NMAP is different from icloud
- trigger:
- platform: state
- entity_id: group.barthelper
- condition:
- condition: template
- value_template: "{{ states.group.barthelper.state != states.device_tracker.iphonebart.state }}"
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: bart
- device_name: iphonebart
- interval: 1
- - alias: Bart NMAP is the same as icloud
- trigger:
- platform: state
- entity_id: group.barthelper
- condition:
- condition: template
- value_template: "{{ states.group.barthelper.state == states.device_tracker.iphonebart.state }}"
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: bart
- device_name: iphonebart
- - alias: Sharon NMAP is different from icloud
- trigger:
- platform: state
- entity_id: group.sharonhelper
- condition:
- condition: template
- value_template: "{{ states.group.sharonhelper.state != states.device_tracker.iphonevansharon.state }}"
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: sharon
- device_name: iphonevansharon
- interval: 1
- - alias: Sharon NMAP is the same as icloud
- trigger:
- platform: state
- entity_id: group.sharonhelper
- condition:
- condition: template
- value_template: "{{ states.group.sharonhelper.state == states.device_tracker.iphonevansharon.state }}"
- action:
- - service: device_tracker.icloud_set_interval
- data:
- account_name: sharon
- device_name: iphonevansharon
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement