-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
129 lines (104 loc) · 3.5 KB
/
configuration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 60.2257
longitude: 24.8636
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 20
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Helsinki
customize:
media_player.plex_web_chrome:
hidden: true
media_player.squicast:
hidden: true
media_player.speakers:
hidden: true
# Show links to resources in log and frontend
# introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Uncomment this to add a password (recommended!)
# Lisää alle salasana kakoispisteen jälkeen
api_password: !secret http_password
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Text to speech
tts:
platform: google
# Device tracker käyttää nmap-komentoa selvittääkseen verkkoon kytkeytyneet laitteet
# Älypuhelimen ilmestymistä verkkoon eli paikallaoloa voidaan käyttää osana automaatiota
device_tracker:
platform: nmap_tracker
hosts: 192.168.1.1/24
# Exclude-kohdassa listataan laitteet, joita ei tarvitse skannata kuten tietokoneet.
exclude:
- 192.168.1.109
- 192.168.1.108
- 192.168.1.104
- 192.168.1.102
- 192.168.1.103
- 192.168.1.235
- 192.168.1.105
- 192.168.1.107
- 192.168.1.112
- 192.168.1.106
- 192.168.1.124
# Jos automaattinen järjestelmä ei tunnista Trådfri-valoja, syötä tähän oman siltasi tiedot
tradfri:
host: 192.168.1.108
api_key: !secret tradfri_key
allow_tradfri_groups: false
#-- Anturit ---
sensor:
# Norjalaisen Yr-sääpalvelun asetukset
- platform: yr
monitored_conditions:
- temperature
- windSpeed
- cloudiness
- precipitation
# Philips Hue -liiketunnistimen valoisuusanturin asetukset
- platform: rest
resource: http://192.168.1.104/api/eqK7cI-0FhcU1ecd4D8uHqZnKPSDOfvZbqlWTbJc/sensors/4
value_template: '{{ value_json.state.lightlevel }}'
unit_of_measurement: Lux
name: 'Olohuoneen valoisuus'
# Hue-liiketunnistimen lämpötila-anturin asetukset
- platform: rest
resource: http://192.168.1.104/api/eqK7cI-0FhcU1ecd4D8uHqZnKPSDOfvZbqlWTbJc/sensors/2
value_template: '{{ value_json.state.temperature | float / 100 }}'
unit_of_measurement: °C
name: 'Olohuoneen lampotila'
# Liiketunnistimen asetukset
- platform: rest
resource: http://192.168.1.104/api/eqK7cI-0FhcU1ecd4D8uHqZnKPSDOfvZbqlWTbJc/sensors/3
value_template: '{{ value_json.state.presence }}'
scan_interval: 2
name: 'Olohuoneen liiketunnistin'
# !include-komennoilla paljon tilaa vievät automaatiot voi pitää omassa tiedostossaan
# Myös ryhmien tiedot voi jakaa omaan tiedostoonsa
group: !include groups.yaml
automation: !include automation.yaml