Advertisement
Bart274

icloud config example

May 12th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.59 KB | None | 0 0
  1. homeassistant:
  2.   name: Home
  3.   latitude: ***
  4.   longitude: ***
  5.   temperature_unit: C
  6.   time_zone: Europe/Brussels
  7.  
  8. device_tracker:
  9.   platform: nmap_tracker
  10.   hosts: 192.168.0.1-255
  11.   home_interval: 1
  12.  
  13. pokemon:
  14.   playername: Bart274
  15.   enemyname: GreenTurtwig
  16.   interval: 60
  17.  
  18. icloud:
  19.   bart:
  20.     username: <my username>
  21.     password: <my password>
  22.     manual_update:
  23.      - '7:45'
  24.       - '7:50'
  25.       - '17:45'
  26.       - '17:50'
  27.     ignored_devices:
  28.      - iphonevanbvb
  29.       - ipodvanbart
  30.     events: True
  31.   sharon:
  32.     username: <gf's username>
  33.     password: <gf's password>
  34.     manual_update:
  35.      - '8:45'
  36.       - '8:50'
  37.       - '18:45'
  38.       - '18:50'
  39.  
  40. group:
  41.   bart:
  42.     name: Bart
  43.     entities:
  44.      - device_tracker.iphonebart
  45.   sharon:
  46.     name: Sharon
  47.     entities:
  48.      - device_tracker.iphonevansharon
  49.   bartsharon:
  50.     name: Bart & Sharon
  51.     entities:
  52.      - group.bart
  53.       - group.sharon
  54.      
  55. automation:
  56.   - alias: Bart vertrekt ergens
  57.     trigger:
  58.       platform: state
  59.       entity_id: device_tracker.iphonebart
  60.       to: 'not_home'
  61.     action:
  62.       - condition: template
  63.         value_template: "{{ trigger.from_state.state != 'not_home' }}"
  64.       - service: notify.pushbullet
  65.         data_template:
  66.           title: "Bart left"
  67.           message: "Bart is vertrokken in {{ trigger.from_state.state }}"
  68.   - alias: Sharon vertrekt ergens
  69.     trigger:
  70.       platform: state
  71.       entity_id: device_tracker.iphonevansharon
  72.       to: 'not_home'
  73.     action:
  74.       - condition: template
  75.         value_template: "{{ trigger.from_state.state != 'not_home' }}"
  76.       - service: notify.pushbullet
  77.         data_template:
  78.           title: "Sharon left"
  79.           message: "Sharon is vertrokken in {{ trigger.from_state.state }}"
  80.   - alias: Bart komt ergens
  81.     trigger:
  82.       platform: state
  83.       entity_id: device_tracker.iphonebart
  84.       from: 'not_home'
  85.     action:
  86.       - condition: template
  87.         value_template: "{{ trigger.to_state.state != 'not_home' }}"
  88.       - service: notify.pushbullet
  89.         data_template:
  90.           title: "Bart arrived"
  91.           message: "Bart is aangekomen in {{ trigger.to_state.state }}"
  92.   - alias: Sharon komt ergens
  93.     trigger:
  94.       platform: state
  95.       entity_id: device_tracker.iphonevansharon
  96.       from: 'not_home'
  97.     action:
  98.       - condition: template
  99.         value_template: "{{ trigger.to_state.state != 'not_home' }}"
  100.       - service: notify.pushbullet
  101.         data_template:
  102.           title: "Sharon arrived"
  103.           message: "Sharon is aangekomen in {{ trigger.to_state.state }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement