/
myhome-gateway.html
111 lines (107 loc) · 7.18 KB
/
myhome-gateway.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<script type="text/javascript">
RED.nodes.registerType('myhome-gateway',{
category: 'config',
color: '#a6bbcf',
defaults: {
name: { value: '', required: true },
host: { value: '', required: true },
port: { value: '20000', required: true },
pass: { value: '12345', required: false },
timeout: { value: '600', required: false, validate: function(v){return (parseInt(v) == 0) || (parseInt(v) > 14)}},
lights_onconnect_refreshloads: { value: true, required: false},
log_in_lights: { value: false, required: false},
log_in_shutters: { value: false, required: false},
log_in_temperature: { value: false, required: false},
log_in_scenario: { value: false, required: false},
log_in_energy: { value: false, required: false},
log_in_others: { value: false, required: false},
log_out_cmd: { value: false, required: false}
},
icon: 'font-awesome/fa-server',
label: function() {
return this.name;
}
});
</script>
<script type="text/x-red" data-template-name="myhome-gateway">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.name"></span></label>
<input type="text" id="node-config-input-name" placeholder="F-455">
</div>
<div class="form-row">
<label for="node-config-input-host"><i class="fa fa-server"></i> <span data-i18n="mh-gateway.config.host"></span></label>
<input type="text" id="node-config-input-host" placeholder="192.168.1.110">
</div>
<div class="form-row">
<label for="node-config-input-port"><i class="fa fa-server"></i> <span data-i18n="mh-gateway.config.port"></span></label>
<input type="text" id="node-config-input-port" placeholder="20000">
</div>
<div class="form-row">
<label for="node-config-input-pass"><i class="fa fa-unlock-alt"></i> <span data-i18n="mh-gateway.config.password"></span></label>
<input type="text" id="node-config-input-pass" placeholder="12345">
</div>
<div class="form-row">
<label for="node-config-input-timeout"><i class="fa fa-repeat"></i> <span data-i18n="mh-gateway.config.keepalive"></span></label>
<input type="text" id="node-config-input-timeout" data-i18n="[placeholder]mh-gateway.config.keepalive-placeholder"/>
<i class="fa fa-info-circle" data-i18n="[title]mh-gateway.config.keepalive-info"></i>
</div>
<div class="form-row">
<label for="node-config-input-lights_onconnect_refreshloads">
<img src="resources/node-red-contrib-myhome-bticino-v2/manylights.png" width="16" height="16">
<span data-i18n="mh-gateway.config.lights-onconnect-refreshloads"></span>
</label>
<label for="node-config-input-lights_onconnect_refreshloads" style="width:70%">
<input type="checkbox" id="node-config-input-lights_onconnect_refreshloads" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/><span data-i18n="mh-gateway.config.lights-onconnect-refreshloads-checkbox"></span>
<i class="fa fa-info-circle" data-i18n="[title]mh-gateway.config.lights-onconnect-refreshloads-info"></i>
</label>
</div>
<div class="form-tips form-row" style="background:#EFEFEF">
<i class="fa fa-window-restore"></i> <b><span data-i18n="mh-gateway.config.advBusTracking"></span></b>
<br>
<span data-i18n="mh-gateway.config.advBusTracking-intro"></span>
<h4><span data-i18n="mh-gateway.config.advBusTracking-incoming"></span></h4>
<div class="form-row">
<label for="node-config-input-log_in_lights"> <i class="fa fa-lightbulb-o"></i> <span data-i18n="mh-gateway.config.type-lights"></span></label>
<label for="node-config-input-log_in_lights" style="width:70%" title="OpenWebNet WHO=1">
<input type="checkbox" id="node-config-input-log_in_lights" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-lights-checkbox"></span>
</label>
</div>
<div class="form-row">
<label for="node-config-input-log_in_shutters"> <i class="fa fa-align-justify"></i> <span data-i18n="mh-gateway.config.type-shutters"></span></label>
<label for="node-config-input-log_in_shutters" style="width:70%" title="OpenWebNet WHO=2">
<input type="checkbox" id="node-config-input-log_in_shutters" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-shutters-checkbox"></span>
</label>
</div>
<div class="form-row">
<label for="node-config-input-log_in_temperature"> <i class="fa fa-thermometer-half"></i> <span data-i18n="mh-gateway.config.type-temperature"></span></label>
<label for="node-config-input-log_in_temperature" style="width:70%" title="OpenWebNet WHO=4">
<input type="checkbox" id="node-config-input-log_in_temperature" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-temperature-checkbox"></span>
</label>
</div>
<div class="form-row">
<label for="node-config-input-log_in_scenario"> <i class="fa fa-magic"></i> <span data-i18n="mh-gateway.config.type-scenario"></span></label>
<label for="node-config-input-log_in_scenario" style="width:70%" title="OpenWebNet WHO=15 & 25">
<input type="checkbox" id="node-config-input-log_in_scenario" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-scenario-checkbox"></span>
</label>
</div>
<div class="form-row">
<label for="node-config-input-log_in_energy"> <i class="fa fa-bolt"></i> <span data-i18n="mh-gateway.config.type-energy"></span></label>
<label for="node-config-input-log_in_energy" style="width:70%" title="OpenWebNet WHO=18">
<input type="checkbox" id="node-config-input-log_in_energy" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-energy-checkbox"></span>
</label>
</div>
<div class="form-row">
<label for="node-config-input-log_in_others"> <i class="fa fa-download"></i> <span data-i18n="mh-gateway.config.type-others"></span></label>
<label for="node-config-input-log_in_others" style="width:70%">
<input type="checkbox" id="node-config-input-log_in_others" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-others-checkbox"></span>
</label>
</div>
<h4><span data-i18n="mh-gateway.config.advBusTracking-outgoing"></span></h4>
<div class="form-row">
<label for="node-config-input-log_out_cmd"> <i class="fa fa-upload"></i> <span data-i18n="mh-gateway.config.type-sent"></label>
<label for="node-config-input-log_out_cmd" style="width:70%" tit>
<input type="checkbox" id="node-config-input-log_out_cmd" style="display:inline-block; margin-left:0px; width:22px; vertical-align:baseline;"/> <span data-i18n="mh-gateway.config.type-sent-checkbox">
</label>
</div>
</div>
</script>