· 10 years ago · Jan 22, 2016, 08:48 PM
1homeassistant:
2 # Name of the location where Home Assistant is running
3 name: Maison Pere Vidal
4 # Location required to calculate the time the sun rises and sets
5 latitude: 42.553579
6 longitude: 3.017766
7 # C for Celcius, F for Fahrenheit
8 temperature_unit: C
9 # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
10 time_zone: Europe/Paris
11 customize :
12 switch.wemo_motion :
13 icon : mdi:radar
14 friendly_name : 'Mouvements'
15 switch.wemo_sapin :
16 entity_picture : https://dl.dropboxusercontent.com/u/38603964/profil%20home%20assistant/electrical11.png
17 sensor.NetAtmo_Exterieur_Humidity:
18 icon: mdi:water
19 friendly_name : 'Humidité'
20 sensor.NetAtmo_Exterieur_Temperature:
21 friendly_name : 'Température'
22 sensor.NetAtmo_Station_CO2:
23 icon: mdi:tree
24 friendly_name : 'Taux de CO2'
25 sensor.NetAtmo_Station_Humidity:
26 icon: mdi:water
27 friendly_name : 'Humidité'
28 sensor.NetAtmo_Station_Noise:
29 icon: mdi:volume-high
30 friendly_name : 'Volume sonore'
31 sensor.NetAtmo_Exterieur_Pressure:
32 icon: mdi:gauge
33 friendly_name : 'Pression'
34 sensor.NetAtmo_Station_Pressure:
35 icon: mdi:gauge
36 friendly_name : 'Pression'
37 sensor.NetAtmo_Station_Temperature:
38 friendly_name : 'Température'
39
40# Show links to resources in log and frontend
41# introduction:
42
43# Mot de passe de connexion a l interface
44http:
45 api_password : gkgxdigffq9e//
46
47# Enables the frontend
48frontend:
49
50# Checks for available updates
51updater:
52
53# View all events in a logbook
54logbook:
55
56# Track the sun
57sun:
58
59# Allows you to issue voice commands from the frontend
60conversation:
61
62# Enables support for tracking state changes over time.
63history:
64
65# Discover some devices automatically
66discovery:
67
68# Recherche des appareils connectes au reseau grace a nmap
69device_tracker:
70 platform: nmap_tracker
71 hosts: 192.168.1.0/24
72 home_interval: 10
73
74device_tracker 2:
75 platform: icloud
76 username: fabre.robin@gmail.com
77 password: J$%fq8pCYhKdjvsfDe@oTjr:tN4ay%
78
79# Philips hue
80light:
81 platform: hue
82 host : 192.168.1.25
83
84# Wemo
85switch :
86 platform : wemo
87 host : 192.168.1.29
88
89switch :
90 platform : wemo
91 host : 192.168.1.30
92
93# IFTTT
94ifttt :
95 key : bih7mZWly4mfM8WfgY_nkH
96
97# Chromecast
98media_player :
99 platform : cast
100
101media_player 2:
102 platform: plex
103
104# Etat du Raspberry Pi
105# sensor:
106# platform: systemmonitor
107# resources:
108# - type: 'disk_use_percent'
109# arg: '/'
110# - type: 'memory_use_percent'
111# - type: 'processor_use'
112
113# Netatmo
114sensor:
115 platform: netatmo
116 api_key: 569b6d402baa3c8749a0ce71
117 secret_key: Zr0vmwrpRaCA6HCAz3z3CojG2esTCkvKYG
118 username: robinfabre@protonmail.com
119 password: DEVDgE)oZsUm96gN?K
120 modules:
121 Station:
122 - temperature
123 - humidity
124 - noise
125 - pressure
126 - co2
127 Exterieur:
128 - temperature
129 - humidity
130#################################################################
131## Groups
132#################################################################
133
134# Lumiere chambre robin
135group :
136 chambre_de_robin :
137 - light.chambre
138 - sensor.NetAtmo_Station_Temperature
139 - sensor.NetAtmo_Station_Pressure
140 - sensor.NetAtmo_Station_CO2
141 - sensor.NetAtmo_Station_Humidity
142 - sensor.NetAtmo_Station_Noise
143 - switch.wemo_motion
144 Appareils :
145 - device_tracker.philipshue1home
146 - device_tracker.limahome
147 Famille :
148 - device_tracker.iphonedececile
149 - device_tracker.ipaddececile
150 - device_tracker.iphonederobin
151 - device_tracker.iphonedethierry
152# Detecteur de mouvements :
153# - switch.wemo_motion
154 Salon :
155 - switch.wemo_sapin
156 Exterieur :
157 - sensor.NetAtmo_Exterieur_Temperature
158 - sensor.NetAtmo_Exterieur_Pressure
159 - sensor.NetAtmo_Exterieur_Humidity
160#################################################################
161## Zones
162#################################################################
163zone:
164 name: Ecole Curie Pasteur
165 latitude: 42.546269
166 longitude: 3.025631
167 # Optional radius in meters (default: 100)
168 radius: 100
169 # Optional icon to show instead of name
170 icon: mdi:school
171
172zone 2:
173 name: Maison
174 latitude: 42.553579
175 longitude: 3.017766
176 radius: 50
177 icon: mdi:home-variant
178
179zone 3:
180 name: College de St Andre
181 latitude: 42.552431
182 longitude: 2.964789
183 radius: 100
184 icon: mdi:school
185
186zone 4:
187 name: Maison Papi-Mami
188 latitude: 42.647046
189 longitude: 2.870122
190 radius: 100
191 icon: mdi:home-variant
192
193#################################################################
194## Automations
195#################################################################
196automation:
197- alias: 'turn on light after motion sensor'
198 trigger:
199 - platform: sun
200 event: sunset
201 offset: '-01:00:00'
202 - platform : state
203 entity_id : switch.wemo_motion
204 from : 'off'
205 to : 'on'
206 action :
207 service : light.turn_on
208 entity_id : group.chambre_de_robin
209#automation 2 :
210# alias : turn on wemo sapin during the evening
211# trigger :
212# platform : time
213# after : '18:00'
214# before : '21:00'
215# action :
216# service : switch.turn_on
217# entity_id : switch.wemo_sapin
218
219#automation 3 :
220# alias : turn on light after motion sensor
221# trigger :
222# platform : state
223# entity_id : switch.wemo_motion
224# from : 'on'
225# to : 'off'
226# condition:
227# platform: sun
228# event: below_horizon
229# action :
230# service : light.turn_on
231# entity_id : group.chambre_de_robin