Mercurial > code > home > repos > homeauto
view service/mqtt_to_rdf/conf/bed.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 | cdc76c84e3e2 |
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/> . :buttonMap a :ValueMap; :map [:from "OFF"; :to :notPressed], [:from "ON"; :to :pressed] . :bedGreenButton a :MqttStatementSource; :mqttTopic ("bed" "switch" "green_button" "state"); :parser :buttonMap; :graphStatements [:outputPredicate :state;] . :bedRedButton a :MqttStatementSource; :mqttTopic ("bed" "switch" "red_button" "state"); :parser :buttonMap; :graphStatements [:outputPredicate :state;] . :motionMap a :ValueMap; :map [:from "OFF"; :to :noMotion], [:from "ON"; :to :motion] . :bedHeadboardMotion a :MqttStatementSource; :mqttTopic ("bed" "switch" "pir" "state"); :parser :motionMap; :graphStatements [:outputPredicate :state;] .