forked from eClarity/mycroft-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathconfiguration.yaml
executable file
·134 lines (122 loc) · 3 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
130
131
132
133
134
homeassistant:
name: Home
latitude: 48.864716
longitude: 2.349014
elevation: 430
unit_system: metric
time_zone: America/Los_Angeles
internal_url: "http://127.0.0.1:8123"
default_config:
virtual:
sensor:
# 01_sensor.feature
- platform: template
sensors:
mycroft_vk_sensor:
friendly_name: "Mycroft sensor"
unit_of_measurement: '°C'
value_template: 122.00
switch:
# 02_turn_on_switch.feature
- platform: virtual
name: "!blue switch"
initial_value: 'off'
# 03_toggle_off_switch.feature
- platform: virtual
name: "!green switch"
initial_value: 'on'
# 03_toggle_off_switch.feature
- platform: virtual
name: "!yellow switch"
initial_value: 'on'
# 04_toggle_on_switch.feature
- platform: virtual
name: "!pink switch"
initial_value: 'off'
# 05_turn_off_switch.feature
- platform: virtual
name: "!red switch"
initial_value: 'on'
# help function for # 13_set_climate.feature
- platform: template
switches:
mycroft_vk_switch:
friendly_name: "Mycroft sw"
value_template: "{{ is_state('input_boolean.mycroft_vk_bool', 'on') }}"
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.mycroft_vk_bool
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.mycroft_vk_bool
light:
# 06_turn_on_light.feature
- platform: virtual
name: "!Mycroft light"
initial_value: 'off'
# 08_increase_brightness.feature
- platform: virtual
name: "!Table light"
initial_value: 'on'
initial_brightness: 20
# 07_set_brightness.feature
# 09_decrease_brightness.feature
- platform: virtual
name: "!bathroom light"
initial_value: 'on'
initial_brightness: 80
# 10_turn_off_light.feature
- platform: virtual
name: "!stairs light"
initial_value: 'on'
# 11_automation.feature (script)
- platform: virtual
name: "!roof light"
initial_value: 'off'
# Unittest
- platform: virtual
name: "!unittest light"
initial_value: 'on'
initial_brightness: 80
device_tracker:
# 12_tracker.feature
- platform: virtual
devices:
- "mark"
climate:
# 13_set_climate.feature
- platform: generic_thermostat
name: "Mycroft climate"
heater: switch.mycroft_vk_switch
target_sensor: sensor.mycroft_vk_temp
min_temp: 15
max_temp: 21
ac_mode: false
target_temp: 17
cold_tolerance: 0.3
hot_tolerance: 0
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 3
initial_hvac_mode: "off"
away_temp: 16
precision: 0.1
# 14_add_item_shopping_list.feature
shopping_list:
camera:
# 15_show_camera_image.feature
- platform: generic
name: "Mycroft camera"
entity_picture: /image.jpg
automation: !include automations.yaml
script:
# 11_automation.feature (script)
roof:
sequence:
- alias: "Turn on roof light"
service: light.turn_on
target:
entity_id: light.roof_light