Mercurial > code > home > repos > homeauto
changeset 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 | b0608eb6e90c |
children | c8092f6d70c0 |
files | service/mqtt_to_rdf/conf/tradfri.n3 service/mqtt_to_rdf/conf/zigbee.n3 |
diffstat | 2 files changed, 31 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/mqtt_to_rdf/conf/tradfri.n3 Sun Aug 29 13:43:50 2021 -0700 @@ -0,0 +1,11 @@ +@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 tradfri-raw/\# + +:tradfri a :MqttStatementSource; + :mqttTopic ("tradfri-raw" "15001"); + :parser :tradfri; +.
--- /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