Mercurial > code > home > repos > homeauto
comparison service/reasoning/actions.py @ 264:570b0e73d2bc
rules updates
Ignore-this: e8f0c7c412d0e685296139d5ccd19021
author | drewp@bigasterisk.com |
---|---|
date | Thu, 14 Apr 2016 00:10:26 -0700 |
parents | 54fad386d6f5 |
children | c192d37b2bc8 |
comparison
equal
deleted
inserted
replaced
263:6fa5ce7a8718 | 264:570b0e73d2bc |
---|---|
33 # context of a dev and predicate pair, and then that would | 33 # context of a dev and predicate pair, and then that would |
34 # be the source of this list | 34 # be the source of this list |
35 #(DEV.theaterDoorLock, ROOM.state), | 35 #(DEV.theaterDoorLock, ROOM.state), |
36 #(URIRef('http://bigasterisk.com/host/bang/monitor'), ROOM.powerState), | 36 #(URIRef('http://bigasterisk.com/host/bang/monitor'), ROOM.powerState), |
37 (URIRef('http://bigasterisk.com/host/dash/monitor'), ROOM.powerState), | 37 (URIRef('http://bigasterisk.com/host/dash/monitor'), ROOM.powerState), |
38 (URIRef('http://projects.bigasterisk.com/room/storageCeilingLedLong'), ROOM.brightness), | 38 (ROOM['storageCeilingLedLong'], ROOM.brightness), |
39 (URIRef('http://projects.bigasterisk.com/room/storageCeilingLedCross'), ROOM.brightness), | 39 (ROOM['storageCeilingLedCross'], ROOM.brightness), |
40 (URIRef('http://projects.bigasterisk.com/room/headboardWhite'), ROOM.brightness), | 40 (ROOM['headboardWhite'], ROOM.brightness), |
41 (URIRef('http://projects.bigasterisk.com/room/changingWhite'), ROOM.brightness), | 41 (ROOM['changingWhite'], ROOM.brightness), |
42 (URIRef('http://projects.bigasterisk.com/room/starTrekLight'), ROOM.brightness), | 42 (ROOM['starTrekLight'], ROOM.brightness), |
43 (URIRef('http://projects.bigasterisk.com/room/bedLedStrip'), ROOM.color), | 43 (ROOM['livingRoomLamp1'], ROOM.brightness), |
44 (ROOM['livingRoomLamp2'], ROOM.brightness), | |
45 (ROOM['bedLedStrip'], ROOM.color), | |
44 ]: | 46 ]: |
45 url = deviceGraph.value(dev, ROOM.putUrl) | 47 url = deviceGraph.value(dev, ROOM.putUrl) |
46 | 48 |
47 if url and dev == DEV.theaterDoorLock: # ew | 49 if url and dev == DEV.theaterDoorLock: # ew |
48 self._put(url+"/mode", payload="output") | 50 self._put(url+"/mode", payload="output") |