-
Notifications
You must be signed in to change notification settings - Fork 3
/
openthermdec.html
executable file
·30 lines (28 loc) · 1.09 KB
/
openthermdec.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<script type="text/javascript">
RED.nodes.registerType('openthermdec',{
category: 'opentherm',
color: '#a6bbcf',
defaults: {
name: {value:""}
},
inputs:1,
outputs:1,
icon: "openth.png",
label: function() {
return this.name||"OpenThermDec";
}
});
</script>
<script type="text/x-red" data-template-name="openthermdec">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="openthermdec">
<p>A node that decodes OpenTherm messages, stored in <b>msg.msgtype</b>, <b>msg.dataid</b> and <b>msg.datavalue</b>.
Messages values are decoded to <b>msg.payload</b> and a topic <b>msg.topic</b> which is a hierarchic representation of the <b>dataid</b>.
A succesful decoded input message can result in 1 or more output messages.
The original payload value of the message will be returned as <b>msg.raw</b>.
</p>
</script>