Mercurial > code > home > repos > homeauto
view service/mqtt_to_rdf/conf/kitchen.n3 @ 798:cdc76c84e3e2
move conf into subdir
author | drewp@bigasterisk.com |
---|---|
date | Tue, 29 Dec 2020 21:05:32 -0800 |
parents | service/mqtt_to_rdf/config_kitchen.n3@7916b9786288 |
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] . # goal is to read these and have reasoning notice them as the light state so the button works #sonoff_0/switch/sonoff_basic_relay/state OFF :kitchenCounterLight a :MqttStatementSource; :mqttTopic ("h801_counter" "light" "kit_r" "state"); :parser :jsonBrightness; :graphStatements [:outputPredicate :brightness;] . :kitchenLight a :MqttStatementSource; :mqttTopic ("h801_skylight" "light" "kit_r" "state"); :parser :jsonBrightness; :graphStatements [:outputPredicate :brightness;] .