forked from airalab/robonomics-smarthome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
152 lines (135 loc) · 3.53 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
broker: localhost
port: 1883
automation:
- alias: "send_datalog_temperature_sensor"
trigger:
platform: time_pattern
minutes: "/1"
action:
service: shell_command.send_datalog_temperature_sensor
- alias: "send_datalog_contact_sensor"
trigger:
platform: state
entity_id:
- binary_sensor.contact_sensor
action:
service: shell_command.send_datalog_contact_sensor
- alias: "vacuum_start"
trigger:
platform: webhook
webhook_id: "vacuum_start"
action:
service: vacuum.start
target:
entity_id:
- vacuum.robot_vacuum
- alias: "vacuum_pause"
trigger:
platform: webhook
webhook_id: "vacuum_pause"
action:
service: vacuum.pause
target:
entity_id:
- vacuum.robot_vacuum
- alias: "vacuum_return_to_base"
trigger:
platform: webhook
webhook_id: "vacuum_return_to_base"
action:
service: vacuum.return_to_base
target:
entity_id:
- vacuum.robot_vacuum
- alias: "shapes_on"
trigger:
platform: webhook
webhook_id: "shapes_on"
action:
service: light.turn_on
target:
entity_id:
- light.shapes_9275
- alias: "shapes_off"
trigger:
platform: webhook
webhook_id: "shapes_off"
action:
service: light.turn_off
target:
entity_id:
- light.shapes_9275
- alias: "shapes_brightness"
trigger:
platform: webhook
webhook_id: "shapes_brightness"
action:
service: light.turn_on
target:
entity_id:
- light.shapes_9275
data:
brightness: '{{ trigger.json.brightness }}'
- alias: "shapes_color"
trigger:
platform: webhook
webhook_id: "shapes_color"
action:
service: light.turn_on
target:
entity_id:
- light.shapes_9275
data:
rgb_color: '[{{ trigger.json.r }}, {{ trigger.json.g }}, {{ trigger.json.b }}]'
- alias: "shapes_color"
trigger:
platform: webhook
webhook_id: "shapes_effect"
action:
service: light.turn_on
target:
entity_id:
- light.shapes_9275
data:
effect: '{{ trigger.json.effect }}'
- alias: "lightbulb_on"
trigger:
platform: webhook
webhook_id: "lightbulb_on"
action:
service: light.turn_on
target:
entity_id:
- light.lightbulb
- alias: "lightbulb_off"
trigger:
platform: webhook
webhook_id: "lightbulb_off"
action:
service: light.turn_off
target:
entity_id:
- light.lightbulb
- alias: "lightbulb_brightness"
trigger:
platform: webhook
webhook_id: "lightbulb_brightness"
action:
service: light.turn_on
target:
entity_id:
- light.lightbulb
data:
brightness: '{{ trigger.json.brightness }}'
shell_command:
send_datalog_temperature_sensor: 'python3 python_scripts/send_datalog.py sensor_humidity={{ states("sensor.temperature_sensor_humidity") }} sensor_temp={{ states("sensor.temperature_sensor_temperature") }} sensor_battery={{ states("sensor.temperature_sensor_battery") }}'
send_datalog_contact_sensor: 'python3 python_scripts/send_datalog.py sensor_contact={{ states("binary_sensor.contact_sensor") }}'