788
|
1 @prefix : <http://projects.bigasterisk.com/room/> .
|
|
2 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3 @prefix fr: <http://bigasterisk.com/foaf/> .
|
|
4
|
|
5 :buttonMap a :ValueMap;
|
|
6 :map [:from "OFF"; :to :notPressed], [:from "ON"; :to :pressed]
|
|
7 .
|
|
8
|
|
9
|
|
10
|
|
11 # goal is to read these and have reasoning notice them as the light state so the button works
|
|
12 #sonoff_0/switch/sonoff_basic_relay/state OFF
|
|
13
|
|
14
|
|
15 :kitchenCounterLight a :MqttStatementSource;
|
|
16 :mqttTopic ("h801_counter" "light" "kit_r" "state");
|
|
17 :parser :jsonBrightness;
|
|
18 :graphStatements [:outputPredicate :brightness;] .
|
|
19
|
|
20 :kitchenLight a :MqttStatementSource;
|
|
21 :mqttTopic ("h801_skylight" "light" "kit_r" "state");
|
|
22 :parser :jsonBrightness;
|
|
23 :graphStatements [:outputPredicate :brightness;] .
|
|
24 |