-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-assistant.yaml
185 lines (158 loc) · 4.94 KB
/
home-assistant.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
################################################################################# Example Home Assistant config
vacuum:
- platform: template
vacuums:
irobot:
friendly_name: "iRobot"
unique_id: irobot
start:
service: mqtt.publish
data:
topic: roomba/commands
payload: start
stop:
service: mqtt.publish
data:
topic: roomba/commands
payload: stop
pause:
service: mqtt.publish
data:
topic: roomba/commands
payload: stop
return_to_base:
service: mqtt.publish
data:
topic: roomba/commands
payload: return_home
clean_spot:
service: mqtt.publish
data:
topic: roomba/commands
payload: spot
battery_level_template: "{{ states('sensor.roomba_battery')|int }}"
value_template: >-
{% if states('sensor.roomba_status') == "Cleaning" %}
cleaning
{% elif states('sensor.roomba_status') == "Halted" %}
paused
{% elif states('sensor.roomba_status') == "Returning" %}
returning
{% elif states('sensor.roomba_status') == "Dead Somewhere" %}
error
{% elif states('sensor.roomba_status') == "Charging" %}
docked
{% elif states('sensor.roomba_status') == "Spot Cleaning" %}
cleaning
{% elif states('sensor.roomba_status') == "Max Cleaning" %}
cleaning
{% else %}
error
{% endif %}
mqtt:
button:
- name: "Roomba ESP Restart"
command_topic: "roomba/commands"
payload_press: "restartESP"
qos: 0
retain: false
entity_category: "diagnostic"
device_class: "restart"
- name: "Roomba Restart"
command_topic: "roomba/commands"
payload_press: "restartRoomba"
qos: 0
retain: false
entity_category: "diagnostic"
device_class: "restart"
- name: "Roomba Poweroff"
command_topic: "roomba/commands"
payload_press: "powerOffRoomba"
qos: 0
retain: false
entity_category: "diagnostic"
device_class: "restart"
icon: mdi:power
- name: "Roomba Max Cleaning"
command_topic: "roomba/commands"
payload_press: "max"
qos: 0
retain: false
icon: mdi:car-turbocharger
sensor:
- name: "Roomba Status"
state_topic: "roomba/status"
- name: "Roomba Battery"
state_topic: "roomba/battery"
unit_of_measurement: "%"
icon: mdi:battery
- name: "Roomba Battery Temperature"
state_topic: "roomba/battery-temperature"
unit_of_measurement: "°C"
- name: "Roomba Virtual Wall Detector"
state_topic: "roomba/virtual-wall"
icon: mdi:wall
- name: "Roomba Battery Voltage"
state_topic: "roomba/battery-voltage"
unit_of_measurement: "v"
icon: mdi:car-battery
- name: "Roomba Power Usage"
state_topic: "roomba/power-usage"
unit_of_measurement: "mA"
icon: mdi:transmission-tower
- name: "Roomba Boot Status"
state_topic: "roomba/boot-status"
icon: mdi:bootstrap
- name: "Roomba Charging Status"
state_topic: "roomba/charging"
icon: mdi:ev-station
- name: "Roomba Running Indicator"
state_topic: "roomba/running-indicator"
icon: mdi:run
- name: "Roomba Right Motor Current"
state_topic: "roomba/right-motor-current"
unit_of_measurement: "mA"
icon: mdi:engine-outline
- name: "Roomba Left Motor Current"
state_topic: "roomba/left-motor-current"
unit_of_measurement: "mA"
icon: mdi:engine-outline
- name: "Roomba Main Brush Motor Current"
state_topic: "roomba/main-brush-motor-current"
unit_of_measurement: "mA"
icon: mdi:fan
- name: "Roomba Side Brush Motor Current"
state_topic: "roomba/side-brush-motor-current"
unit_of_measurement: "mA"
icon: mdi:fan
- name: "Roomba Charging Sources Available"
state_topic: "roomba/charging-sources-available"
icon: mdi:power-socket
- name: "Roomba Pressed Button"
state_topic: "roomba/buttons"
icon: mdi:gesture-tap-button
- name: Roomba WiFi SSID
state_topic: "roomba/wifi-ssid"
icon: mdi:eye
- name: Roomba WiFi BSSID
state_topic: "roomba/wifi-bssid"
icon: mdi:eye
- name: Roomba WiFi Channel
state_topic: "roomba/wifi-channel"
icon: mdi:eye
- name: Roomba WiFi IP
state_topic: "roomba/wifi-ip"
icon: mdi:eye
- name: Roomba WiFi RSSI
state_topic: "roomba/wifi-rssi"
icon: mdi:wifi
unit_of_measurement: dBm
- name: Roomba Day
state_topic: "roomba/day"
icon: mdi:calendar
- name: Roomba Hour
state_topic: "roomba/hour"
icon: mdi:clock
- name: Roomba Minutes
state_topic: "roomba/minutes"
icon: mdi:clock