view 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 source

@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
  .