diff service/mqtt_to_rdf/conf/zigbee.n3 @ 1584:0ca3228abade

start zigbee configs. this proves the need for more graph output from a given mqtt message
author drewp@bigasterisk.com
date Sun, 29 Aug 2021 13:43:50 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/mqtt_to_rdf/conf/zigbee.n3	Sun Aug 29 13:43:50 2021 -0700
@@ -0,0 +1,20 @@
+@prefix : <http://projects.bigasterisk.com/room/> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix fr: <http://bigasterisk.com/foaf/> .
+
+# debug: 
+# mosquitto_sub -v -t zigbee-frontbed/\#
+
+:mqttConnectedStatusMap a :ValueMap;
+   :map [:from "offline"; :to :Offline], 
+        [:from "online"; :to :Online] .
+
+:zigbeeBridge a :MqttStatementSource;
+  :mqttTopic ("zigbee-frontbed" "bridge" "state");
+  :parser :mqttConnectedStatusMap
+.
+
+:demoBulb a :MqttStatementSource;
+  :mqttTopic ("zigbee-frontbed/0xd0cf5efffe158e49");
+  :zzzparser :bulbReport
+  .
\ No newline at end of file