Mercurial > code > home > repos > homeauto
annotate service/reasoning/rules.n3 @ 1288:f4ce7989d25c
mockup of thermostat rules
Ignore-this: 61a460ac3bdcbc0c4c6de2a2afcc6d5c
darcs-hash:66578b12e414cfaf1c1bc1b93523e90d5dd1be0d
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 21 Apr 2019 00:06:12 -0700 |
parents | 5f522c2d18bf |
children | c7cdde15e8f0 |
rev | line source |
---|---|
934
3bb18b7d21df
reasoning actions: generalize them a bit but then add a bunch of special cases for mpd for now
drewp <drewp@bigasterisk.com>
parents:
923
diff
changeset
|
1 # rules only! statements in this file will not be considered in the graph |
3bb18b7d21df
reasoning actions: generalize them a bit but then add a bunch of special cases for mpd for now
drewp <drewp@bigasterisk.com>
parents:
923
diff
changeset
|
2 |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 @prefix : <http://projects.bigasterisk.com/room/>. |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 @prefix bigast: <http://bigasterisk.com/>. |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 @prefix dev: <http://projects.bigasterisk.com/device/>. |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
6 @prefix foaf: <http://xmlns.com/foaf/0.1/> . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
7 @prefix env: <http://projects.bigasterisk.com/device/environment>. |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
8 @prefix math: <http://www.w3.org/2000/10/swap/math#> . |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
9 |
1053 | 10 @prefix star: <http://bigasterisk.com/host/star/> . |
1133 | 11 @prefix bang: <http://bigasterisk.com/host/bang/> . |
1053 | 12 @prefix dash: <http://bigasterisk.com/host/dash/> . |
13 @prefix slash: <http://bigasterisk.com/host/slash/> . | |
14 | |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
15 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
16 |
1053 | 17 { ?d :deviceName "drew-phone"; :connected bigast:wifiAccessPoints . } => { :auth :near :home } . |
18 { ?d :deviceName "Kelsis-iPhone"; :connected bigast:wifiAccessPoints . } => { :auth :near :home } . | |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 { env: :localHour 8 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 { env: :localHour 9 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 { env: :localHour 10 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 { env: :localHour 11 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 { env: :localHour 12 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 { env: :localHour 13 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 { env: :localHour 14 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 { env: :localHour 15 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 { env: :localHour 16 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 { env: :localHour 17 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 { env: :localHour 18 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 { env: :localHour 19 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 { env: :localHour 20 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
33 { env: :localHour 21 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
34 { env: :localHour 22 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
35 { env: :localHour 23 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
36 |
1287 | 37 #{ |
38 # # this won't update right, currently, since I don't let the exact | |
39 # # idle time into the rules recalculator. This threshold should be | |
40 # # applied upstream. | |
41 # | |
42 # dash:xidle :idleTimeMinutes ?idle . | |
43 # # broken with new fuxi- needs review: ?idle math:lessThan 30 . | |
44 #} => { | |
45 # :drew :at :desk . | |
46 # # the plan here is that as soon as we can show that I'm not at my | |
47 # # desk (cell phone wifi, asleep, etc), power the screen off | |
48 #} . | |
49 # | |
50 #@prefix shuttle: <http://bigasterisk.com/room/livingRoom/shuttlepro/> . | |
51 #@prefix mpd: <http://bigasterisk.com/host/slash/mpd> . | |
52 # | |
53 #{ ?button :state :press . ?button :playsMusic ?song } => { mpd: :startMusic ?song } . | |
54 ## the rest of this modeling is still a mess. Handled completely by special case in reasoning.py | |
55 #{ shuttle:button12 :state :press } => { mpd: :playState :pause } . | |
56 #{ shuttle:dial :change :clockwise } => { mpd: :audioState :volumeStepUp } . | |
57 #{ shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . | |
58 # | |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
59 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
60 |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
61 #{ sensor:motionStorage :seesRecently :noMotion . } => { |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
62 # :storageCeilingLedCross :brightness 0 . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
63 # :storageCeilingLedLong :brightness 0 . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
64 #} . |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
65 |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
66 { sensor:motionStorage :seesRecently :motion . } => { |
1081 | 67 :storageCeilingLedCross :brightness 1 . |
68 :storageCeilingLedLong :brightness 1 . | |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
69 } . |
1052 | 70 |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
71 #{ sensor:motionStorage :sees :motionStart . } => { |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
72 # :storageCeilingLedCross :brightness 1 . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
73 # :storageCeilingLedLong :brightness 1 . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
74 #} . |
1056
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
75 |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
76 { sensor:bedGreenButton :buttonState :press } => { |
1081 | 77 :headboardWhite :brightness 0.0 . |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
78 :anim1 :position :end . |
1052 | 79 } . |
80 | |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
81 { sensor:bedRedButton :buttonState :press . :headboardWhite :brightness 0.0 . } => { |
1089
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
82 :headboardWhite :brightness 0.2 . |
1083
c5b61f943061
try a 2-mode rule for redButton, but this can't work as-is
drewp <drewp@bigasterisk.com>
parents:
1082
diff
changeset
|
83 } . |
c5b61f943061
try a 2-mode rule for redButton, but this can't work as-is
drewp <drewp@bigasterisk.com>
parents:
1082
diff
changeset
|
84 |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
85 { sensor:bedRedButton :buttonState :press . :headboardWhite :brightness 0.2 . } => { |
1089
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
86 :headboardWhite :brightness 1 . |
1059
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
87 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
88 |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
89 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
90 { sensor:buttonAriBed :buttonState :press } => { |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
91 :starTrekLight :brightness 0.0 . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
92 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
93 |
1082
4bbc4fea343c
updates to changingtable motion rules
drewp <drewp@bigasterisk.com>
parents:
1081
diff
changeset
|
94 { sensor:motionChanging :seesRecently30 :noMotion } => { |
1059
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
95 :changingWhite :brightness 0.0 . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
96 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
97 |
1082
4bbc4fea343c
updates to changingtable motion rules
drewp <drewp@bigasterisk.com>
parents:
1081
diff
changeset
|
98 { sensor:motionChanging :seesRecently30 :motion } => { |
4bbc4fea343c
updates to changingtable motion rules
drewp <drewp@bigasterisk.com>
parents:
1081
diff
changeset
|
99 :changingWhite :brightness 0.3 . |
1059
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
100 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
101 |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
102 { sensor:motionChanging :sees :motionStart90 . dev:calendar :twilight :daytime .} => { |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
103 :changingCam :grab <http://bang:9057/changing-day.jpg> . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
104 } . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
105 |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
106 { sensor:motionChanging :sees :motionStart90 . dev:calendar :twilight :withinTwilight .} => { |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
107 :changingCam :grab <http://bang:9057/changing-night.jpg> . |
1069 | 108 } . |
109 | |
110 { :bookSwitch :buttonState :press . :livingRoomLamp1 :brightness 0.0 . } => { | |
1089
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
111 :livingRoomLamp1 :brightness 1.0 . |
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
112 :livingRoomLamp2 :brightness 1.0 . |
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
113 } . |
1069 | 114 { :bookSwitch :buttonState :press . :livingRoomLamp1 :brightness 1.0 . } => { |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
115 :livingRoomLamp1 :brightness 0.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
116 :livingRoomLamp2 :brightness 0.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
117 } . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
118 |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
119 { :frontBedPostSwitch1 :buttonState :press . :starTrekLight :brightness 0.0 . } => { |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
120 :starTrekLight :brightness 1.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
121 } . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
122 { :frontBedPostSwitch1 :buttonState :press . :starTrekLight :brightness 1.0 . } => { |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
123 :starTrekLight :brightness 0.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
124 } . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
125 |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
126 |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
127 #{ :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/beep1> . } . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
128 #{ sensor:kitchenCounterButton1 :buttonState :press . } => { |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
129 # bang: :postAction <http://10.2.0.62/rpc/motor> . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
130 #} . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
131 |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
132 { sensor:kitchenCounterButton1 :buttonState :press . :kitchenLight :brightness 0.0 . } => { |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
133 :kitchenLight :brightness 1.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
134 :kitchenCounterLight :brightness 0.5 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
135 # and skylight rgb/rgb/set '200,255,200' |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
136 } . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
137 { sensor:kitchenCounterButton1 :buttonState :press . :kitchenLight :brightness 1.0 . } => { |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
138 :kitchenLight :brightness 0.0 . |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
139 :kitchenCounterLight :brightness 0.0 . |
1089
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
140 } . |
1081 | 141 |
1089
cb7fa2f30df9
rules become simple-looking again; fix the ambiguity in memory after loading them.
drewp <drewp@bigasterisk.com>
parents:
1088
diff
changeset
|
142 |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
143 |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
144 { <http://bigasterisk.com/homeauto/sensor/motionGarageDoorInside> :seesRecently :noMotion . } => { |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
145 :garageOverhead :brightness 0.0. |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
146 } . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
147 |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
148 { <http://bigasterisk.com/homeauto/sensor/motionGarageDoorInside> :seesRecently :motion . } => { |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
149 :garageOverhead :brightness 1.0 . |
1126
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
150 } . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
151 |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
152 { sensor:motionBed :sees :motion . } => { :anim1 :playback :start . } . |
82046a1c75f3
rules updates for storage and changing
drewp <drewp@bigasterisk.com>
parents:
1089
diff
changeset
|
153 |
1133 | 154 |
155 { sensor:motionFrontdoorInside :seesRecently30 :motion } => { | |
156 <http://bigasterisk.com/host/frontdoor/monitor> :powerState :on . | |
157 } . | |
158 | |
1197
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
159 |
d8acab2b01f5
mqtt has two devices now. various older cleanups.
drewp <drewp@bigasterisk.com>
parents:
1133
diff
changeset
|
160 |
1133 | 161 { <http://projects.bigasterisk.com/room/remoteButton/KEY_POWER> :state :press } => { |
162 #star:slideshow :postAction <http://dash:9049/effects/question> . | |
163 bang: :postAction <http://10.2.0.62/rpc/motor> . | |
164 } . | |
1286 | 165 |
1288 | 166 { <http://bigasterisk.com/homeauto/sensor/tempHumidKitchen> :temperatureF ?t . |
167 <http://bigasterisk.com/homeauto/thermostatSetTemp> :temperatureF ?setTemp . | |
168 ?t math:lessThan ?setTemp . | |
169 } => { | |
170 :fakeHeater :state :on . | |
171 } . | |
172 | |
1286 | 173 { :frontDoorLockRequest :state :unlocked . |
174 } => { | |
175 :frontDoorLock :putState :unlocked . | |
176 :frontDoorLock :putAgent :someStateRequest . | |
177 } . | |
178 | |
179 {:frontDoorLock :state :locked .} => {:frontDoorOled :state :locked .}. | |
180 {:frontDoorLock :state :unlocked .} => {:frontDoorOled :state :unlockNews .}. | |
181 | |
182 { | |
183 :frontDoorWindowRfid :reading ?card . | |
184 ?card :cardText ?text . | |
185 ?card :owner ?agent . | |
186 } => { | |
187 :frontDoorLock :putState :unlocked . | |
188 :frontDoorLock :putAgent ?agent . | |
189 } . |