Automated Litter-Robot
Intro
Litter-Robot makes a great automated litter box for our furs. Using their product for over 10 years, I’ve save countless scoops of smelly and dusty litter. Sometime the out of mind mentality can be a blessing, but reminders and alerts when something goes wrong is need.
Process
- Monitor the Litter-Robot on waste level change
- When the waste level becomes a concern, notify
- When the waste level becomes critical, notify and change lights
- If the status of the litter robot status is anomalous, notify and change lights
- create a snooze button to change the lights back to normal for X amount of time
Code
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
alias: Litter-Robot
description: "Notification Automation for the Litter-Robot"
trigger:
- platform: state
entity_id:
- vacuum.litter_robot_litter_box
attribute: status
from: error
to: docked
id: litter-robot-reset
- platform: numeric_state
entity_id:
- sensor.litter_robot_waste_drawer
above: 95
below: 99
id: litter-robot-warning
- platform: state
entity_id:
- vacuum.litter_robot_litter_box
attribute: status
to: error
id: litter-robot-error
enabled: true
condition: []
action:
- alias: Litter Robot Warning Triggered
if:
- condition: trigger
id:
- litter-robot-warning
then:
- service: scene.create
metadata: {}
data:
snapshot_entities:
- light.living_room_lamp
- light.media_room_lamp
scene_id: lamps_before
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.litter_robot_warning
- service: notify.mobile_app_bstey2
metadata: {}
data:
message: >-
Litter-Robot drawer is at
title: Litter-Robot Waste Warning
else:
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.lamps_before
- if:
- condition: trigger
id:
- litter-robot-error
then:
- service: scene.create
metadata: {}
data:
scene_id: lamps_before
snapshot_entities:
- light.living_room_lamp
- light.media_room_lamp
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.litter_robot_error
- service: notify.mobile_app_bstey2
metadata: {}
data:
message: >-
Litter-Robot drawer
title: Litter-Robot Waste Error
else:
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.lamps_before
enabled: true
alias: Litter Robot Error Triggered
- alias: Litter Robot Reset
if:
- condition: trigger
id:
- litter-robot-reset
then:
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.lamps_before
- service: notify.mobile_app_bstey
metadata: {}
data:
message: >-
Litter-Robot drawer
title: Litter-Robot Waste Reset
enabled: true
mode: single
Whats Next?
- Logic to automatically attempt to poser cycle on error
This post is licensed under CC BY 4.0 by the author.