Mercurial > code > home > repos > homeauto
comparison service/mqtt_graph_bridge/config.n3 @ 1400:31aed1a0af9c
adjust kitchen PWM freqs. add comments and proposed contents of n3 configs
Ignore-this: 8fc4659c1d8830e1ed66b0702b1e69fd
darcs-hash:026328acb60195c0d4410ce1cc583ac120d1c6a3
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 13 Jul 2019 19:58:50 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1399:5e8f1fcfbc79 | 1400:31aed1a0af9c |
---|---|
1 @prefix : <http://projects.bigasterisk.com/room/> . | |
2 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
3 @prefix fr: <http://bigasterisk.com/foaf/> . | |
4 | |
5 :kitchenSkylight a :Device; | |
6 :mqttTopicHead ("h801_skylight" "light"); | |
7 :convertedAttr [ | |
8 :deviceAttr :white; | |
9 :mqttTopicTail ("kit_w1" "command"); | |
10 :valueConversion :to8Bit; | |
11 :message '{"state":"ON","brightness":%value%}' | |
12 ], | |
13 :convertedAttr [ | |
14 :deviceAttr :color; | |
15 :mqttTopicTail ("kit_r" "command"); | |
16 :valueConversion :extractRed8Bit; | |
17 :message '{"state":"ON","brightness":%value%}' | |
18 ], | |
19 :convertedAttr [ | |
20 :deviceAttr :color; | |
21 :mqttTopicTail ("kit_g" "command"); | |
22 :valueConversion :extractGreen8Bit; | |
23 :message '{"state":"ON","brightness":%value%}' | |
24 ], | |
25 :convertedAttr [ | |
26 :deviceAttr :color; | |
27 :mqttTopicTail ("kit_r" "command"); | |
28 :valueConversion :extractBlue8Bit; | |
29 :message '{"state":"ON","brightness":%value%}' | |
30 ], | |
31 | |
32 :nightlightAriTemperature a :ExportedMeasurement; | |
33 :mqttTopicHead ("nightlight_ari" "sensor" "temperature" "state"); | |
34 | |
35 :missingAfterSec 150; | |
36 :ignoreInputValueBelow -999; | |
37 | |
38 :valueProcess [ | |
39 :conversion :celsiusToFarenheit; #and round(x,2) | |
40 ]; | |
41 | |
42 :graphStatements [ | |
43 :outputPredicate :temperatureF; | |
44 :statementLifetime :untilReplaced; | |
45 | |
46 # is this just another valueProcess? | |
47 :outputRecentPredicate :recentLowTemperatureF; :recentPeriodSec 30; | |
48 ], | |
49 | |
50 :influxMeasurement [ | |
51 :measurement "temperatureF"; | |
52 :predicate :temperatureF; | |
53 :tag [:key "host"; :value "nightlight_ari"], | |
54 [:key "location"; :value "ariRoom"]] . |