Mercurial > code > home > repos > homeauto
annotate service/reasoning/rules.n3 @ 1052:2434e88d8bb0
add bed buttons
Ignore-this: 912a92f7a8e173fe64aa4c1df9ef7dba
darcs-hash:2e4031a9cacedb28f57c36708d69d6ec3610ef9d
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 08 Feb 2016 23:48:29 -0800 |
parents | a92fde1612a3 |
children | 82079561c214 |
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 |
835 | 10 { <http://bigasterisk.com/wifiDevice/x> :connected bigast:wifiAccessPoints . } => { :auth :near :home } . |
11 { <http://bigasterisk.com/wifiDevice/x> :connected bigast:wifiAccessPoints . } => { :auth :near :home } . | |
12 { <http://bigasterisk.com/wifiDevice/x> :connected bigast:wifiAccessPoints . } => { :playstation :powerState :on } . | |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
13 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
14 { env: :localHour 8 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
15 { env: :localHour 9 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
16 { env: :localHour 10 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 { env: :localHour 11 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 { env: :localHour 12 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 { env: :localHour 13 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 { env: :localHour 14 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 { env: :localHour 15 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 { env: :localHour 16 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 { env: :localHour 17 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 { env: :localHour 18 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 { env: :localHour 19 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 { env: :localHour 20 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 { env: :localHour 21 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 { env: :localHour 22 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 { env: :localHour 23 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 :auth :near :home . |
923
4ae49c6adecb
errors and logging in reasoning
drewp <drewp@bigasterisk.com>
parents:
893
diff
changeset
|
33 dev:theaterDoorOutsideMotion :state :sustainedMotion . |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
34 dev:theaterDoorOpen :state :closed . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
35 env: :localHour :awakeTime . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
36 } => { dev:theaterDoorLock :state :unlocked } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
37 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
38 { dev:frontDoorOpen :state :closed } => { dev:frontDoorOpenIndicator :text "_" } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
39 { dev:frontDoorOpen :state :open } => { dev:frontDoorOpenIndicator :text "D" } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
40 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
41 { dev:frontDoorMotion :state :noMotion } => { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
42 dev:frontDoorMotionIndicator :text "_" . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
43 dev:frontDoorLcd :brightness 0 . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
44 } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
45 { dev:frontDoorMotion :state :motion } => { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
46 dev:frontDoorMotionIndicator :text "D" . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
47 dev:frontDoorLcd :brightness 255 . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 } . |
836
24a47a07ac9a
new rule to turn on bang/monitor
drewp <drewp@bigasterisk.com>
parents:
835
diff
changeset
|
49 |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
50 { :darkKey :state :press } => { |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
51 <http://bigasterisk.com/host/dash/monitor> :powerState :off . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
52 } . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
53 |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
54 { <http://projects.bigasterisk.com/room/star/button/blu> :change :down . } => |
872 | 55 { |
56 <http://bigasterisk.com/host/star/slideshow> :postAction <http://bigasterisk.com/host/star/slideshow/advance> . | |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
57 <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/beep2> . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
58 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
59 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
60 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
61 { <http://projects.bigasterisk.com/room/star/button/yel> :change :down . } => |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
62 { |
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
|
63 <http://bigasterisk.com/host/star/slideshow> :postAction <http://bigasterisk.com/host/star/slideshow/toggleFeeder> . |
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
|
64 <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/beep1> . |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
65 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
66 |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
67 { <http://projects.bigasterisk.com/room/barcodeScan> <http://projects.bigasterisk.com/room/read> <http://projects.bigasterisk.com/room/barcode/UPC-A/4984343881945> } => |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
68 { |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
69 <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/troyandabed> . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
70 } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
71 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
72 @prefix bed: <http://projects.bigasterisk.com/room/ariBed/> . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
73 { bed:button1 :change :down . } => { |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
74 <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9055/starTrekLight/toggle> . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
75 <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/highlight> . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
76 } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
77 { bed:button2 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/troyandabed> . } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
78 { bed:button3 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/beep1> . } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
79 { bed:button4 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/beep1> . } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
80 { bed:button5 :change :down . } => { <http://bigasterisk.com/host/star/slideshow> :postAction <http://brace:9049/effects/jazztrumpet> . } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
81 |
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
|
82 |
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
|
83 # sound wasn't responding; waiting for other button fixes |
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
|
84 # { <http://projects.bigasterisk.com/room/star/button/yel> :change :down . } => |
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
|
85 # { |
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
|
86 # <http://bigasterisk.com/host/star/sound> :postAction <http://star:9049/sound?filename=/my/music/ubuntuone/Daft+Punk/Discovery/Harder+Better+Faster+Stronger.mp3> . |
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
|
87 # } . |
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
|
88 |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
89 { <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :up . } => { |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
90 <http://bigasterisk.com/host/slash/sound> :postAction <http://slash:9049/volume?offset=.05&max=.6> . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
91 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
92 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
93 { <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :down . } => { |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
94 <http://bigasterisk.com/host/slash/sound> :postAction <http://slash:9049/volume?offset=-.05&max=.6> . |
872 | 95 } . |
96 | |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
97 #{ :playstation :powerState ?s } => { <http://bigasterisk.com/host/bang/monitor> :powerState ?s } . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
98 |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
99 { |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
100 # this won't update right, currently, since I don't let the exact |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
101 # idle time into the rules recalculator. This threshold should be |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
102 # applied upstream. |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
103 |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
104 <http://bigasterisk.com/host/dash/xidle> :idleTimeMinutes ?idle . |
1004 | 105 # broken with new fuxi- needs review: ?idle math:lessThan 30 . |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
106 } => { |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
107 :drew :at :desk . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
108 # the plan here is that as soon as we can show that I'm not at my |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
109 # desk (cell phone wifi, asleep, etc), power the screen off |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
110 } . |
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
|
111 |
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
|
112 @prefix shuttle: <http://bigasterisk.com/room/livingRoom/shuttlepro/> . |
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
|
113 @prefix mpd: <http://bigasterisk.com/host/slash/mpd> . |
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
|
114 |
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
|
115 { ?button :state :press . ?button :playsMusic ?song } => { mpd: :startMusic ?song } . |
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
|
116 # the rest of this modeling is still a mess. Handled completely by special case in reasoning.py |
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
|
117 { shuttle:button12 :state :press } => { mpd: :playState :pause } . |
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
|
118 { shuttle:dial :change :clockwise } => { mpd: :audioState :volumeStepUp } . |
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
|
119 { shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
120 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
121 { <http://bigasterisk.com/homeauto/sensor/motion0> :seesRecently <http://projects.bigasterisk.com/room/noMotion> . } => { |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
122 :storageCeilingLedCross :brightness "0" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
123 :storageCeilingLedLong :brightness "0" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
124 } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
125 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
126 { <http://bigasterisk.com/homeauto/sensor/motion0> :seesRecently <http://projects.bigasterisk.com/room/motion> . } => { |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
127 :storageCeilingLedCross :brightness "1" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
128 :storageCeilingLedLong :brightness "1" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
129 } . |
1052 | 130 |
131 @prefix bed: <http://bigasterisk.com/homeauto/sensor/bed/> . | |
132 | |
133 { bed:greenButton :buttonState :pressed } => { | |
134 :headboardWhite :brightness 0 . | |
135 } . | |
136 | |
137 { bed:redButton :buttonState :pressed } => { | |
138 :headboardWhite :brightness 0.04 . | |
139 } . |