Mercurial > code > home > repos > homeauto
annotate service/reasoning/rules.n3 @ 1059:faf1f8677a91
pi device support for motionStart edge trigger
Ignore-this: 1eda3d0bed8def055573fdc1db3cd7c3
darcs-hash:b77ef0bc873415b7319e8dff11d484d48f4bd10e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 21 Mar 2016 04:18:45 -0700 |
parents | d2007482aec5 |
children | 570b0e73d2bc |
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/> . |
11 @prefix dash: <http://bigasterisk.com/host/dash/> . | |
12 @prefix slash: <http://bigasterisk.com/host/slash/> . | |
13 | |
14 { ?d :deviceName "drew-phone"; :connected bigast:wifiAccessPoints . } => { :auth :near :home } . | |
15 { ?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
|
16 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
17 { env: :localHour 8 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
18 { env: :localHour 9 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
19 { env: :localHour 10 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 { env: :localHour 11 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 { env: :localHour 12 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
22 { env: :localHour 13 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
23 { env: :localHour 14 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
24 { env: :localHour 15 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
25 { env: :localHour 16 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
26 { env: :localHour 17 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
27 { env: :localHour 18 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
28 { env: :localHour 19 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
29 { env: :localHour 20 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
30 { env: :localHour 21 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
31 { env: :localHour 22 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
32 { env: :localHour 23 } => { env: :localHour :awakeTime } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
33 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
34 { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
35 :auth :near :home . |
923
4ae49c6adecb
errors and logging in reasoning
drewp <drewp@bigasterisk.com>
parents:
893
diff
changeset
|
36 dev:theaterDoorOutsideMotion :state :sustainedMotion . |
826
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
37 dev:theaterDoorOpen :state :closed . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
38 env: :localHour :awakeTime . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
39 } => { dev:theaterDoorLock :state :unlocked } . |
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:frontDoorOpen :state :closed } => { dev:frontDoorOpenIndicator :text "_" } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
42 { dev:frontDoorOpen :state :open } => { dev:frontDoorOpenIndicator :text "D" } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
43 |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
44 { dev:frontDoorMotion :state :noMotion } => { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
45 dev:frontDoorMotionIndicator :text "_" . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
46 dev:frontDoorLcd :brightness 0 . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
47 } . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
48 { dev:frontDoorMotion :state :motion } => { |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
49 dev:frontDoorMotionIndicator :text "D" . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
50 dev:frontDoorLcd :brightness 255 . |
29459a87d314
reasoning rules moved from /my/proj/room
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
51 } . |
836
24a47a07ac9a
new rule to turn on bang/monitor
drewp <drewp@bigasterisk.com>
parents:
835
diff
changeset
|
52 |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
53 { :darkKey :state :press } => { |
1053 | 54 dash:monitor :powerState :off . |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
55 } . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
56 |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
57 { <http://projects.bigasterisk.com/room/star/button/blu> :change :down . } => |
872 | 58 { |
1053 | 59 star:slideshow :postAction star:slideshowadvance . |
60 star:slideshow :postAction <http://star:9049/effects/beep2> . | |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
61 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
62 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
63 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
64 { <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
|
65 { |
1053 | 66 star:slideshow :postAction star:slideshowtoggleFeeder . |
67 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
|
68 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
69 |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
70 { <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
|
71 { |
1053 | 72 star:slideshow :postAction <http://star:9049/effects/troyandabed> . |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
73 } . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
74 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
75 @prefix bed: <http://projects.bigasterisk.com/room/ariBed/> . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
76 { bed:button1 :change :down . } => { |
1053 | 77 star:slideshow :postAction <http://brace:9055/starTrekLight/toggle> . |
78 star:slideshow :postAction <http://brace:9049/effects/highlight> . | |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
79 } . |
1053 | 80 { bed:button2 :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/troyandabed> . } . |
81 { bed:button3 :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/beep1> . } . | |
82 { bed:button4 :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/beep1> . } . | |
83 { bed:button5 :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/jazztrumpet> . } . | |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
84 |
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
|
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 # 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
|
87 # { <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
|
88 # { |
1053 | 89 # star:sound :postAction <http://star:9049/sound?filename=/my/music/ubuntuone/Daft+Punk/Discovery/Harder+Better+Faster+Stronger.mp3> . |
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
|
90 # } . |
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
|
91 |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
92 { <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :up . } => { |
1053 | 93 slash:sound :postAction <http://slash:9049/volume?offset=.05&max=.6> . |
893
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
94 } . |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
95 |
bcd2d597c8e8
change cactus button to one that works. yellow button plays music
drewp <drewp@bigasterisk.com>
parents:
872
diff
changeset
|
96 { <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :down . } => { |
1053 | 97 slash:sound :postAction <http://slash:9049/volume?offset=-.05&max=.6> . |
872 | 98 } . |
99 | |
859
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
100 { |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
101 # 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
|
102 # 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
|
103 # applied upstream. |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
104 |
1053 | 105 dash:xidle :idleTimeMinutes ?idle . |
1004 | 106 # 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
|
107 } => { |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
108 :drew :at :desk . |
379cefec542e
screen out more values that change on every update
drewp <drewp@bigasterisk.com>
parents:
836
diff
changeset
|
109 # 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
|
110 # 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
|
111 } . |
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
|
112 |
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 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
|
114 @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
|
115 |
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 { ?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
|
117 # 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
|
118 { 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
|
119 { 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
|
120 { shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . |
986
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
121 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
122 { <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
|
123 :storageCeilingLedCross :brightness "0" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
124 :storageCeilingLedLong :brightness "0" . |
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 |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
127 { <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
|
128 :storageCeilingLedCross :brightness "1" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
129 :storageCeilingLedLong :brightness "1" . |
b279ca8d2894
new reasoning config for storage motion.
drewp <drewp@bigasterisk.com>
parents:
934
diff
changeset
|
130 } . |
1052 | 131 |
1056
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
132 { <http://bigasterisk.com/homeauto/sensor/motion0> :sees <http://projects.bigasterisk.com/room/motionStart> . } => { |
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
133 :storageCeilingLedCross :brightness "1" . |
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
134 :storageCeilingLedLong :brightness "1" . |
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
135 } . |
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
136 |
1052 | 137 @prefix bed: <http://bigasterisk.com/homeauto/sensor/bed/> . |
138 | |
1056
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
139 { bed:greenButton :buttonState :press } => { |
1052 | 140 :headboardWhite :brightness 0 . |
141 } . | |
142 | |
1056
d2007482aec5
start sending oneshot events from some devices
drewp <drewp@bigasterisk.com>
parents:
1053
diff
changeset
|
143 { bed:redButton :buttonState :press } => { |
1052 | 144 :headboardWhite :brightness 0.04 . |
1059
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
145 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
146 |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
147 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
148 { sensor:buttonAriBed :buttonState :press } => { |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
149 :starTrekLight :brightness 0.0 . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
150 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
151 |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
152 { <http://bigasterisk.com/homeauto/sensor/motion2> :sees :noMotion } => { |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
153 :changingWhite :brightness 0.0 . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
154 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
155 |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
156 { <http://bigasterisk.com/homeauto/sensor/motion2> :sees :motion } => { |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
157 :changingWhite :brightness 0.2 . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
158 } . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
159 |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
160 { <http://bigasterisk.com/homeauto/sensor/motion2> :sees :motionStart } => { |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
161 :changingCam :grab <http://bang:9057/changing.jpg> . |
faf1f8677a91
pi device support for motionStart edge trigger
drewp <drewp@bigasterisk.com>
parents:
1056
diff
changeset
|
162 } . |