-
Notifications
You must be signed in to change notification settings - Fork 0
/
dcc.html
84 lines (83 loc) · 3.84 KB
/
dcc.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
<script type="text/javascript">
RED.nodes.registerType('Daikin-Cloud-Controller', {
category: 'function',
color: '#a6bbcf',
defaults: {
name: { value: "" },
loglevel: { value: "warn" },
tokensave: { value: "0" },
timeout: {
value: "10000",
validate: RED.validators.number()
},
retry: {
value: "3",
validate: RED.validators.number()
},
cachetime: {
value: "10",
validate: RED.validators.number()
}
},
credentials: {
username: { type: "text" },
password: { type: "password" }
},
inputs: 1,
outputs: 1,
icon: "white-globe.svg",
label: function () {
return this.name || "Daikin-Cloud-Controller";
}
});
</script>
<script type="text/x-red" data-template-name="Daikin-Cloud-Controller">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i>Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-username"><i class="fa fa-user"></i>Username</label>
<input type="text" id="node-input-username">
</div>
<div class="form-row">
<label for="node-input-password"><i class="fa fa-key"></i>Password</label>
<input type="password" id="node-input-password">
</div>
<div class="form-row">
<label for="node-input-loglevel"><i class="fa fa-bug"></i>Logging</label>
<select id="node-input-loglevel">
<option value="debug">DEBUG</option>
<option value="warn">WARN</option>
</select>
</div>
<div class="form-row">
<label for="node-input-timeout"><i class="fa fa-hourglass"></i>Timeout</label>
<input type="number" id="node-input-timeout">
</div>
<div class="form-row">
<label for="node-input-retry"><i class="fa fa-repeat"></i>Retries</label>
<input type="number" id="node-input-retry">
</div>
<div class="form-row">
<label for="node-input-cachetime"><i class="fa fa-database"></i>Cache time in sec</label>
<input type="number" id="node-input-cachetime">
</div>
</script>
<script type="text/x-red" data-help-name="Daikin-Cloud-Controller">
<h3 id="toc_4">Daiking Cloud Control Modul</h3>
<p> The Cloud Module offers the ability to communicate with Daikin Cloud Devices. This is working with Devices with gateway type BRP069C4 and also with devices before when they are configured in the Daikin Cloud Controller Account.</p>
<p> To use the module you need to store a valid tokenset.json in the node config folder or use the login with user credentials in the Node's config. </p>
<ul>
<li><strong>Name</strong>: Name of this node</li>
<li><strong>Username</strong>: Username of Daikin Cloud Controller (no social login is possible here! only e-Mail) - When empty the Node requires a valid tokenset.json in module directory</li>
<li><strong>Password</strong>: Password of the Daiking Cloud Controller User</li>
<li><strong>Logging</strong>: Log Level to console Log of Daikin Cloud Controller Module</li>
<li><strong>Save Token to File</strong>: Define if you want to save the token after login to a file. This reduce the amount creation of new tokens. When the token expires you need to remove the tokenset.json file in the node config folder (every 30 days)"
</ul>
<p>The handling is defined via the <strong>msg.topic</strong> value:</p>
<ul>
<li><strong>get</strong>: msg.payload will be set with all daikin cloud informations</li>
<li><strong>set</strong>: set device in daikin cloud with mentioned properties</li>
</ul>
</script>