Mercurial > code > home > repos > homeauto
comparison service/rdf_to_mqtt/config.n3 @ 732:fdddbdaf07b5
more service renaming; start a lot more serv.n3 job files
Ignore-this: 635aaefc7bd2fa5558eefb8b3fc9ec75
author | drewp@bigasterisk.com |
---|---|
date | Thu, 06 Feb 2020 16:36:35 -0800 |
parents | service/mqtt_graph_bridge/config.n3@e1ee6661329a |
children |
comparison
equal
deleted
inserted
replaced
731:def4a53cbb6c | 732:fdddbdaf07b5 |
---|---|
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"]] . |