node-red-contrib-alice 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nodes/alice-device.html +56 -1
- package/nodes/alice-mode.js +1 -0
- package/nodes/alice-onoff.js +1 -0
- package/nodes/alice-range.js +1 -0
- package/package.json +1 -1
package/nodes/alice-device.html
CHANGED
|
@@ -10,6 +10,57 @@
|
|
|
10
10
|
},
|
|
11
11
|
label: function(){
|
|
12
12
|
return this.room+":"+this.name || "Alice-Device";
|
|
13
|
+
},
|
|
14
|
+
oneditprepare: ()=>{
|
|
15
|
+
$("#node-config-input-dtype").typedInput({
|
|
16
|
+
types: [
|
|
17
|
+
{
|
|
18
|
+
options: [
|
|
19
|
+
{ value: "devices.types.light", label: "Light" },
|
|
20
|
+
{ value: "devices.types.socket", label: "Socket" },
|
|
21
|
+
{ value: "devices.types.switch", label: "Switch" },
|
|
22
|
+
{ value: "devices.types.thermostat", label: "Thermostat" },
|
|
23
|
+
{ value: "devices.types.thermostat.ac", label: "Air conditioning" },
|
|
24
|
+
{ value: "devices.types.media_device", label: "Multimedia" },
|
|
25
|
+
{ value: "devices.types.media_device.tv", label: "TV" },
|
|
26
|
+
{ value: "devices.types.media_device.tv_box", label: "TV Box" },
|
|
27
|
+
{ value: "devices.types.media_device.receiver", label: "AV Receiver" },
|
|
28
|
+
{ value: "devices.types.camera", label: "Camera" },
|
|
29
|
+
{ value: "devices.types.cooking", label: "Kitchen appliances" },
|
|
30
|
+
{ value: "devices.types.cooking.coffee_maker", label: "Coffee machine" },
|
|
31
|
+
{ value: "devices.types.cooking.kettle", label: "Smart kettle" },
|
|
32
|
+
{ value: "devices.types.cooking.multicooker", label: "Multicooker" },
|
|
33
|
+
{ value: "devices.types.openable", label: "Door, gate, window, shutters" },
|
|
34
|
+
{ value: "devices.types.openable.curtain", label: "Curtains, blinds" },
|
|
35
|
+
{ value: "devices.types.humidifier", label: "Humidifier" },
|
|
36
|
+
{ value: "devices.types.purifier", label: "Air purifier" },
|
|
37
|
+
{ value: "devices.types.vacuum_cleaner", label: "Vacuum cleaner robot" },
|
|
38
|
+
{ value: "devices.types.washing_machine", label: "Washing machine" },
|
|
39
|
+
{ value: "devices.types.dishwasher", label: "Dishwasher" },
|
|
40
|
+
{ value: "devices.types.iron", label: "Iron, steam generator" },
|
|
41
|
+
{ value: "devices.types.sensor", label: "Sensor" },
|
|
42
|
+
{ value: "devices.types.sensor.motion", label: "Sensor motion" },
|
|
43
|
+
{ value: "devices.types.sensor.vibration", label: "Sensor vibration" },
|
|
44
|
+
{ value: "devices.types.sensor.illumination", label: "Sensor illumination" },
|
|
45
|
+
{ value: "devices.types.sensor.open", label: "Sensor open" },
|
|
46
|
+
{ value: "devices.types.sensor.climate", label: "Sensor climate" },
|
|
47
|
+
{ value: "devices.types.sensor.water_leak", label: "Sensor water_leak" },
|
|
48
|
+
{ value: "devices.types.sensor.button", label: "Sensor button" },
|
|
49
|
+
{ value: "devices.types.sensor.gas", label: "Sensor gas" },
|
|
50
|
+
{ value: "devices.types.sensor.smoke", label: "Sensor smoke" },
|
|
51
|
+
{ value: "devices.types.smart_meter", label: "Counter" },
|
|
52
|
+
{ value: "devices.types.smart_meter.cold_water", label: "Cold Water counter" },
|
|
53
|
+
{ value: "devices.types.smart_meter.hot_water", label: "Hot Water counter" },
|
|
54
|
+
{ value: "devices.types.smart_meter.electricity", label: "Electricity counter" },
|
|
55
|
+
{ value: "devices.types.smart_meter.gas", label: "Gas counter" },
|
|
56
|
+
{ value: "devices.types.smart_meter.heat", label: "Heat Water counter" },
|
|
57
|
+
{ value: "devices.types.pet_drinking_fountain", label: "Pet drinking fountain" },
|
|
58
|
+
{ value: "devices.types.pet_feeder", label: "Pet feeder" },
|
|
59
|
+
{ value: "devices.types.other", label: "Other" },
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
});
|
|
13
64
|
}
|
|
14
65
|
})
|
|
15
66
|
</script>
|
|
@@ -32,6 +83,10 @@
|
|
|
32
83
|
<input type="text" id="node-config-input-room" placeholder="Room">
|
|
33
84
|
</div>
|
|
34
85
|
<div class="form-row">
|
|
86
|
+
<label for="node-config-input-dtype">Type</label>
|
|
87
|
+
<input type="text" id="node-config-input-dtype">
|
|
88
|
+
</div>
|
|
89
|
+
<!-- <div class="form-row">
|
|
35
90
|
<label for="node-config-input-dtype">Type</label>
|
|
36
91
|
<select id="node-config-input-dtype" style="width: 70%;">
|
|
37
92
|
<option value="devices.types.light">Light</option>
|
|
@@ -76,5 +131,5 @@
|
|
|
76
131
|
<option value="devices.types.pet_feeder">Pet feeder</option>
|
|
77
132
|
<option value="devices.types.other">Other</option>
|
|
78
133
|
</select>
|
|
79
|
-
</div>
|
|
134
|
+
</div> -->
|
|
80
135
|
</script>
|
package/nodes/alice-mode.js
CHANGED
package/nodes/alice-onoff.js
CHANGED
package/nodes/alice-range.js
CHANGED