node-red-contrib-huemagic 2.8.6 → 4.0.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/CHANGELOG.md +229 -0
- package/README.md +807 -766
- package/examples/Hue Bridge.json +189 -35
- package/examples/Hue Brightness.json +124 -14
- package/examples/Hue Buttons.json +88 -0
- package/examples/Hue Group.json +575 -63
- package/examples/Hue Light.json +805 -58
- package/examples/Hue Magic.json +69 -24
- package/examples/Hue Motion.json +110 -42
- package/examples/Hue Rules.json +105 -37
- package/examples/Hue Scene.json +145 -28
- package/examples/Hue Temperature.json +124 -14
- package/huemagic/animations/001-sunny.json +22 -22
- package/huemagic/animations/002-cloudy.json +46 -46
- package/huemagic/animations/003-nightsky.json +20 -20
- package/huemagic/animations/004-sunrise.json +54 -54
- package/huemagic/animations/005-sunset.json +46 -46
- package/huemagic/animations/006-fireplace.json +74 -74
- package/huemagic/animations/007-spring.json +31 -31
- package/huemagic/animations/008-autmn.json +23 -23
- package/huemagic/animations/009-winter.json +23 -23
- package/huemagic/animations/010-dirtyfog.json +23 -23
- package/huemagic/animations/011-lgbt.json +49 -50
- package/huemagic/animations/012-rasta.json +28 -29
- package/huemagic/animations/013-strobo.json +30 -31
- package/huemagic/animations/014-randomrainbow.json +30 -31
- package/huemagic/animations/015-sos.json +158 -159
- package/huemagic/animations/016-milkyway.json +83 -0
- package/huemagic/animations/017-beach.json +40 -0
- package/huemagic/animations/018-forest.json +43 -0
- package/huemagic/animations/019-christmas.json +30 -0
- package/huemagic/animations/020-superhero.json +56 -0
- package/huemagic/animations/021-neoncity.json +52 -0
- package/huemagic/animations/previews/001-sunny.gif +0 -0
- package/huemagic/animations/previews/002-cloudy.gif +0 -0
- package/huemagic/animations/previews/003-nightsky.gif +0 -0
- package/huemagic/animations/previews/004-sunrise.gif +0 -0
- package/huemagic/animations/previews/005-sunset.gif +0 -0
- package/huemagic/animations/previews/006-fireplace.gif +0 -0
- package/huemagic/animations/previews/007-spring.gif +0 -0
- package/huemagic/animations/previews/008-autmn.gif +0 -0
- package/huemagic/animations/previews/009-winter.gif +0 -0
- package/huemagic/animations/previews/010-dirtyfog.gif +0 -0
- package/huemagic/animations/previews/011-lgbt.gif +0 -0
- package/huemagic/animations/previews/012-rasta.gif +0 -0
- package/huemagic/animations/previews/013-strobo.gif +0 -0
- package/huemagic/animations/previews/014-randomrainbow.gif +0 -0
- package/huemagic/animations/previews/015-sos.gif +0 -0
- package/huemagic/animations/previews/016-milkyway.gif +0 -0
- package/huemagic/animations/previews/017-beach.gif +0 -0
- package/huemagic/animations/previews/018-forest.gif +0 -0
- package/huemagic/animations/previews/019-christmas.gif +0 -0
- package/huemagic/animations/previews/020-superhero.gif +0 -0
- package/huemagic/animations/previews/021-neoncity.gif +0 -0
- package/huemagic/hue-bridge-config.html +105 -61
- package/huemagic/hue-bridge-config.js +629 -320
- package/huemagic/hue-bridge.html +41 -21
- package/huemagic/hue-bridge.js +191 -398
- package/huemagic/hue-brightness.html +130 -49
- package/huemagic/hue-brightness.js +131 -35
- package/huemagic/hue-buttons.html +197 -0
- package/huemagic/hue-buttons.js +152 -0
- package/huemagic/hue-group.html +137 -60
- package/huemagic/hue-group.js +394 -368
- package/huemagic/hue-light.html +133 -59
- package/huemagic/hue-light.js +551 -337
- package/huemagic/hue-magic.html +91 -240
- package/huemagic/hue-magic.js +57 -27
- package/huemagic/hue-motion.html +128 -50
- package/huemagic/hue-motion.js +116 -87
- package/huemagic/hue-rules.html +121 -50
- package/huemagic/hue-rules.js +84 -64
- package/huemagic/hue-scene.html +96 -115
- package/huemagic/hue-scene.js +65 -96
- package/huemagic/hue-temperature.html +130 -49
- package/huemagic/hue-temperature.js +136 -32
- package/huemagic/icons/hue-bridge.png +0 -0
- package/huemagic/icons/hue-bridge.svg +3 -0
- package/huemagic/icons/hue-brightness.png +0 -0
- package/huemagic/icons/hue-brightness.svg +11 -0
- package/huemagic/icons/hue-buttons.png +0 -0
- package/huemagic/icons/hue-buttons.svg +4 -0
- package/huemagic/icons/hue-group.png +0 -0
- package/huemagic/icons/hue-group.svg +12 -0
- package/huemagic/icons/hue-light.png +0 -0
- package/huemagic/icons/hue-light.svg +3 -0
- package/huemagic/icons/hue-magic.png +0 -0
- package/huemagic/icons/hue-magic.svg +3 -0
- package/huemagic/icons/hue-motion.png +0 -0
- package/huemagic/icons/hue-motion.svg +9 -0
- package/huemagic/icons/hue-rules.png +0 -0
- package/huemagic/icons/hue-rules.svg +4 -0
- package/huemagic/icons/hue-scene.png +0 -0
- package/huemagic/icons/hue-scene.svg +5 -0
- package/huemagic/icons/hue-temperature.png +0 -0
- package/huemagic/icons/hue-temperature.svg +7 -0
- package/huemagic/locales/de/hue-bridge-config.html +17 -12
- package/huemagic/locales/de/hue-bridge-config.json +7 -5
- package/huemagic/locales/de/hue-bridge.html +64 -145
- package/huemagic/locales/de/hue-bridge.json +6 -17
- package/huemagic/locales/de/hue-brightness.html +52 -38
- package/huemagic/locales/de/hue-brightness.json +7 -2
- package/huemagic/locales/de/hue-buttons.html +58 -0
- package/huemagic/locales/de/{hue-button.json → hue-buttons.json} +8 -8
- package/huemagic/locales/de/hue-group.html +46 -122
- package/huemagic/locales/de/hue-group.json +4 -2
- package/huemagic/locales/de/hue-light.html +68 -116
- package/huemagic/locales/de/hue-light.json +5 -2
- package/huemagic/locales/de/hue-magic.html +65 -57
- package/huemagic/locales/de/hue-magic.json +2 -1
- package/huemagic/locales/de/hue-motion.html +48 -44
- package/huemagic/locales/de/hue-motion.json +6 -3
- package/huemagic/locales/de/hue-rules.html +68 -73
- package/huemagic/locales/de/hue-rules.json +5 -2
- package/huemagic/locales/de/hue-scene.html +23 -32
- package/huemagic/locales/de/hue-scene.json +5 -2
- package/huemagic/locales/de/hue-temperature.html +53 -36
- package/huemagic/locales/de/hue-temperature.json +7 -2
- package/huemagic/locales/en-US/hue-bridge-config.html +17 -12
- package/huemagic/locales/en-US/hue-bridge-config.json +5 -3
- package/huemagic/locales/en-US/hue-bridge.html +64 -145
- package/huemagic/locales/en-US/hue-bridge.json +5 -16
- package/huemagic/locales/en-US/hue-brightness.html +52 -38
- package/huemagic/locales/en-US/hue-brightness.json +10 -3
- package/huemagic/locales/en-US/hue-buttons.html +58 -0
- package/huemagic/locales/en-US/{hue-button.json → hue-buttons.json} +11 -5
- package/huemagic/locales/en-US/hue-group.html +46 -122
- package/huemagic/locales/en-US/hue-group.json +7 -3
- package/huemagic/locales/en-US/hue-light.html +68 -116
- package/huemagic/locales/en-US/hue-light.json +8 -3
- package/huemagic/locales/en-US/hue-magic.html +65 -57
- package/huemagic/locales/en-US/hue-magic.json +3 -1
- package/huemagic/locales/en-US/hue-motion.html +48 -44
- package/huemagic/locales/en-US/hue-motion.json +9 -4
- package/huemagic/locales/en-US/hue-rules.html +68 -73
- package/huemagic/locales/en-US/hue-rules.json +5 -2
- package/huemagic/locales/en-US/hue-scene.html +23 -32
- package/huemagic/locales/en-US/hue-scene.json +5 -2
- package/huemagic/locales/en-US/hue-temperature.html +53 -36
- package/huemagic/locales/en-US/hue-temperature.json +10 -3
- package/huemagic/utils/api.js +290 -0
- package/huemagic/utils/color.js +382 -0
- package/{utils → huemagic/utils}/merge.js +9 -6
- package/huemagic/utils/messages.js +447 -0
- package/package.json +11 -12
- package/examples/Hue Switch.json +0 -40
- package/examples/Hue Tap.json +0 -40
- package/huemagic/assets/anime.js +0 -8
- package/huemagic/hue-button.html +0 -119
- package/huemagic/hue-button.js +0 -94
- package/huemagic/hue-switch.html +0 -119
- package/huemagic/hue-switch.js +0 -113
- package/huemagic/hue-tap.html +0 -119
- package/huemagic/hue-tap.js +0 -74
- package/huemagic/icons/hue-button.png +0 -0
- package/huemagic/icons/hue-switch.png +0 -0
- package/huemagic/icons/hue-tap.png +0 -0
- package/huemagic/locales/de/hue-button.html +0 -50
- package/huemagic/locales/de/hue-switch.html +0 -50
- package/huemagic/locales/de/hue-switch.json +0 -31
- package/huemagic/locales/de/hue-tap.html +0 -41
- package/huemagic/locales/de/hue-tap.json +0 -23
- package/huemagic/locales/en-US/hue-button.html +0 -50
- package/huemagic/locales/en-US/hue-switch.html +0 -50
- package/huemagic/locales/en-US/hue-switch.json +0 -31
- package/huemagic/locales/en-US/hue-tap.html +0 -41
- package/huemagic/locales/en-US/hue-tap.json +0 -23
- package/utils/color.js +0 -9
- package/utils/messages.js +0 -658
- package/utils/rgb.js +0 -188
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-button">
|
|
2
|
-
<p>Hue Smart Button um Schaltererignisse zu empfangen.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Einrichtung</h3>
|
|
5
|
-
<p>Wählen Sie die vorkonfigurierte Hue Bridge und klicken Sie auf die Suchschaltfläche, um alle verfügbaren Hue Buttons zu finden. Geben Sie den Namen manuell ein oder behalten Sie den Standardgerätenamen bei. Beachten Sie, dass Ereignisse nur bei der Bereitstellung (einmalig) und auf Knopfdruck gesendet werden. Bei Bedarf können alle Statusaktualisierungen dieses Nodes durch Aktivieren der Option "Mitteilungen ignorieren" ignoriert werden.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Button Ereignisse</h3>
|
|
8
|
-
<p>The event message that the Hue Smart Button sends contains the following data in the <b>msg.payload</b> object:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>ID der gedrückten Taste, 1002 für normales Drücken, 1003 für langes gedrückt halten (und loslassen) und 1001 während der Button lange gedrückt wird.</dd>
|
|
12
|
-
|
|
13
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
14
|
-
<dd>Lesbarer Name der gedrückten Taste (always On)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>action<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>Lesbare gedrückte Tastenaktion (short released, long released, holded)</dd>
|
|
18
|
-
|
|
19
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
20
|
-
<dd>ISO 8601 Datum des letzten Zeitpunkts, zu dem eine Taste gedrückt wurde</dd>
|
|
21
|
-
</dl>
|
|
22
|
-
|
|
23
|
-
<h3>Zusätzliche Sensorinformationen</h3>
|
|
24
|
-
<p>Zusätzliche Informationen zum Gerät werden an das Objekt <b>msg.info</b> gesendet:</p>
|
|
25
|
-
<dl class="message-properties">
|
|
26
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
27
|
-
<dd>Numerische ID des Sensors, wie auf der Bridge registriert</dd>
|
|
28
|
-
|
|
29
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Eindeutige ID des Sensors (normalerweise Hardware-ID)</dd>
|
|
31
|
-
|
|
32
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Name des Sensors</dd>
|
|
34
|
-
|
|
35
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
36
|
-
<dd>Sensor-Typ (z.B. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
37
|
-
|
|
38
|
-
<dt>softwareVersion<span class="property-type">float</span></dt>
|
|
39
|
-
<dd>Softwareversion des Sensors</dd>
|
|
40
|
-
|
|
41
|
-
<dt>battery<span class="property-type">int</span></dt>
|
|
42
|
-
<dd>Aktueller Batteriestand des Sensors in Prozent</dd>
|
|
43
|
-
|
|
44
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
45
|
-
<dd>Das Modellobjekt des Sensors enthält modellspezifische Informationen wie model.id, model.manufacturer, model.name und model.type</dd>
|
|
46
|
-
</dl>
|
|
47
|
-
|
|
48
|
-
<h3>Letzte Zustandsinformationen</h3>
|
|
49
|
-
<p>Dieser Node schickt auch die gesamten letzten Zustandsinformationen (vor dem Update) in das <b>msg.lastState</b>-Objekt. Dieses kann entweder false (Boolean) or die Objekte payload (msg.lastState.payload) und info (msg.lastState.info) beinhalten. Der Rückgabewert "false" wird nur dann gesendet, wenn es keinen letzten Zustand gab oder der Node neu erstellt oder gestartet wurde.</p>
|
|
50
|
-
</script>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-switch">
|
|
2
|
-
<p>Hue Dimmschalter um Schaltererignisse zu empfangen.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Einrichtung</h3>
|
|
5
|
-
<p>Wählen Sie die vorkonfigurierte Hue Bridge und klicken Sie auf die Suchschaltfläche, um alle verfügbaren Dimmschalter zu finden. Geben Sie den Namen manuell ein oder behalten Sie den Standardgerätenamen bei. Beachten Sie, dass Ereignisse nur bei der Bereitstellung (einmalig) und auf Knopfdruck gesendet werden. Bei Bedarf können alle Statusaktualisierungen dieses Nodes durch Aktivieren der Option "Mitteilungen ignorieren" ignoriert werden.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Dimmschalter-Ereignisse</h3>
|
|
8
|
-
<p>Die vom Dimmschalter gesendete Ereignismeldung enthält die folgenden Daten im Objekt <b>msg.payload</b>:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>ID der gedrückten Taste</dd>
|
|
12
|
-
|
|
13
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
14
|
-
<dd>Lesbarer Name der gedrückten Taste (On, Dim Up, Dim Down, Off)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>action<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>Lesbare gedrückte Tastenaktion (pressed, holded, short released, long released)</dd>
|
|
18
|
-
|
|
19
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
20
|
-
<dd>ISO 8601 Datum des letzten Zeitpunkts, zu dem eine Taste gedrückt wurde</dd>
|
|
21
|
-
</dl>
|
|
22
|
-
|
|
23
|
-
<h3>Zusätzliche Sensorinformationen</h3>
|
|
24
|
-
<p>Zusätzliche Informationen zum Gerät werden an das Objekt <b>msg.info</b> gesendet:</p>
|
|
25
|
-
<dl class="message-properties">
|
|
26
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
27
|
-
<dd>Numerische ID des Sensors, wie auf der Bridge registriert</dd>
|
|
28
|
-
|
|
29
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Eindeutige ID des Sensors (normalerweise Hardware-ID)</dd>
|
|
31
|
-
|
|
32
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Name des Sensors</dd>
|
|
34
|
-
|
|
35
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
36
|
-
<dd>Sensor-Typ (z.B. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
37
|
-
|
|
38
|
-
<dt>softwareVersion<span class="property-type">float</span></dt>
|
|
39
|
-
<dd>Softwareversion des Sensors</dd>
|
|
40
|
-
|
|
41
|
-
<dt>battery<span class="property-type">int</span></dt>
|
|
42
|
-
<dd>Aktueller Batteriestand des Sensors in Prozent</dd>
|
|
43
|
-
|
|
44
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
45
|
-
<dd>Das Modellobjekt des Sensors enthält modellspezifische Informationen wie model.id, model.manufacturer, model.name und model.type</dd>
|
|
46
|
-
</dl>
|
|
47
|
-
|
|
48
|
-
<h3>Letzte Zustandsinformationen</h3>
|
|
49
|
-
<p>Dieser Node schickt auch die gesamten letzten Zustandsinformationen (vor dem Update) in das <b>msg.lastState</b>-Objekt. Dieses kann entweder false (Boolean) or die Objekte payload (msg.lastState.payload) und info (msg.lastState.info) beinhalten. Der Rückgabewert "false" wird nur dann gesendet, wenn es keinen letzten Zustand gab oder der Node neu erstellt oder gestartet wurde.</p>
|
|
50
|
-
</script>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-switch":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Name des Dimmschalters",
|
|
8
|
-
"skipevents": "Mitteilungen ignorieren",
|
|
9
|
-
"skipevents-node": "Ignoriere die Mitteilungen des Nodes",
|
|
10
|
-
"searching": "Suche nach Dimmschaltern…",
|
|
11
|
-
"none-found": "Keine Dimmschalter gefunden!",
|
|
12
|
-
"unknown-error": "Etwas ist schief gelaufen. Bitte versuchen Sie es erneut.",
|
|
13
|
-
"switch": "Schalter"
|
|
14
|
-
},
|
|
15
|
-
"node":
|
|
16
|
-
{
|
|
17
|
-
"title": "Hue Dimmschalter",
|
|
18
|
-
"not-configured": "nicht konfiguriert",
|
|
19
|
-
"waiting": "warte…",
|
|
20
|
-
"button-on": "An",
|
|
21
|
-
"button-dimup": "Dimmen (heller)",
|
|
22
|
-
"button-dimdown": "Dimmen (dunkler)",
|
|
23
|
-
"button-off": "Aus",
|
|
24
|
-
"action-pressed": "gedrückt",
|
|
25
|
-
"action-holded": "gehalten",
|
|
26
|
-
"action-shortreleased": "kurz gedrückt",
|
|
27
|
-
"action-longreleased": "lange gedruckt",
|
|
28
|
-
"output": "gedrückte Taste"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-tap">
|
|
2
|
-
<p>Hue Tap Schalter um Schaltererignisse zu empfangen.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Einrichtung</h3>
|
|
5
|
-
<p>Wählen Sie die vorkonfigurierte Hue Bridge und klicken Sie auf die Suchschaltfläche, um alle verfügbaren Tap Schalter zu finden. Geben Sie den Namen manuell ein oder behalten Sie den Standardgerätenamen bei. Beachten Sie, dass Ereignisse nur bei der Bereitstellung (einmalig) und auf Knopfdruck gesendet werden. Bei Bedarf können alle Statusaktualisierungen dieses Nodes durch Aktivieren der Option "Mitteilungen ignorieren" ignoriert werden.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Tap-Ereignisse</h3>
|
|
8
|
-
<p>Die vom Tap Schalter gesendete Ereignismeldung enthält die folgenden Daten im Objekt <b>msg.payload</b>:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>Gedrückte Tastennummer von 1-4</dd>
|
|
12
|
-
|
|
13
|
-
<dt>buttonAlt<span class="property-type">int</span></dt>
|
|
14
|
-
<dd>Alternative Tastennummer (Rohversion)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>ISO 8601 Datum des letzten Zeitpunkts, zu dem eine Taste gedrückt wurde</dd>
|
|
18
|
-
</dl>
|
|
19
|
-
|
|
20
|
-
<h3>Zusätzliche Sensorinformationen</h3>
|
|
21
|
-
<p>Zusätzliche Informationen zum Sensor werden an das Objekt <b>msg.info</b> gesendet:</p>
|
|
22
|
-
<dl class="message-properties">
|
|
23
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
24
|
-
<dd>Numerische ID des Sensors, wie auf der Bridge registriert</dd>
|
|
25
|
-
|
|
26
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
27
|
-
<dd>Eindeutige ID des Sensors (normalerweise Hardware-ID)</dd>
|
|
28
|
-
|
|
29
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Name des Sensors</dd>
|
|
31
|
-
|
|
32
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Sensor-Typ (z.B. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
34
|
-
|
|
35
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
36
|
-
<dd>Das Modellobjekt des Sensors enthält modellspezifische Informationen wie model.id, model.manufacturer, model.name und model.type</dd>
|
|
37
|
-
</dl>
|
|
38
|
-
|
|
39
|
-
<h3>Letzte Zustandsinformationen</h3>
|
|
40
|
-
<p>Dieser Node schickt auch die gesamten letzten Zustandsinformationen (vor dem Update) in das <b>msg.lastState</b>-Objekt. Dieses kann entweder false (Boolean) or die Objekte payload (msg.lastState.payload) und info (msg.lastState.info) beinhalten. Der Rückgabewert "false" wird nur dann gesendet, wenn es keinen letzten Zustand gab oder der Node neu erstellt oder gestartet wurde.</p>
|
|
41
|
-
</script>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-tap":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Name des Tap Schalters…",
|
|
8
|
-
"skipevents": "Mitteilungen ignorieren",
|
|
9
|
-
"skipevents-node": "Ignoriere die Mitteilungen des Nodes",
|
|
10
|
-
"searching": "Suche nach Tap Schaltern…",
|
|
11
|
-
"none-found": "Keine Tap Schalter gefunden!",
|
|
12
|
-
"unknown-error": "Etwas ist schief gelaufen. Bitte versuchen Sie es erneut."
|
|
13
|
-
},
|
|
14
|
-
"node":
|
|
15
|
-
{
|
|
16
|
-
"title": "Hue Tap Schalter",
|
|
17
|
-
"not-configured": "nicht konfiguriert",
|
|
18
|
-
"waiting": "warte…",
|
|
19
|
-
"pressed-button": "Taste #__button__ gedrückt",
|
|
20
|
-
"output": "gedrückte Taste"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-button">
|
|
2
|
-
<p>Hue Smart Button node to receive button events.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Setup</h3>
|
|
5
|
-
<p>Select the preconfigured Hue Bridge and hit the search button to find all available Hue Smart Button devices. Type in the name manually or keep the default device name. Note that events will only sent on deploy (once) and if the button is pressed. If necessary, all status updates of this node can be ignored by activating the "Skip events" option.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Button Events</h3>
|
|
8
|
-
<p>The event message that the Hue Smart Button sends contains the following data in the <b>msg.payload</b> object:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>Pressed button id, 1002 for normal press, 1003 for long press (release) and 1001 during long press.</dd>
|
|
12
|
-
|
|
13
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
14
|
-
<dd>Human readable pressed button name (always On)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>action<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>Human readable pressed button action (short released, long released, holded)</dd>
|
|
18
|
-
|
|
19
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
20
|
-
<dd>ISO 8601 date string of the last time when the button was pressed</dd>
|
|
21
|
-
</dl>
|
|
22
|
-
|
|
23
|
-
<h3>Additional Sensor Info</h3>
|
|
24
|
-
<p>Additional information about the device is going to be sent to the <b>msg.info</b> object:</p>
|
|
25
|
-
<dl class="message-properties">
|
|
26
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
27
|
-
<dd>Numerical id of the sensor as registered on the bridge</dd>
|
|
28
|
-
|
|
29
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Unique Id of the sensor (typically hardware id)</dd>
|
|
31
|
-
|
|
32
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Name for the sensor</dd>
|
|
34
|
-
|
|
35
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
36
|
-
<dd>Sensor type (e.g. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
37
|
-
|
|
38
|
-
<dt>softwareVersion<span class="property-type">float</span></dt>
|
|
39
|
-
<dd>Software version of the sensor</dd>
|
|
40
|
-
|
|
41
|
-
<dt>battery<span class="property-type">int</span></dt>
|
|
42
|
-
<dd>Current battery level of the Hue Switch in percent</dd>
|
|
43
|
-
|
|
44
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
45
|
-
<dd>The model object of the sensor includes model specific information like the model.id, model.manufacturer, model.name and model.type</dd>
|
|
46
|
-
</dl>
|
|
47
|
-
|
|
48
|
-
<h3>Last State Information</h3>
|
|
49
|
-
<p>This node also sends the entire last state data (before the update) in the <b>msg.lastState</b> object. It can either contain false (boolean) or the objects payload (msg.lastState.payload) and info (msg.lastState.info). The return value "false" is only sent if there was no last state, e.g. when the node was newly created or restarted.</p>
|
|
50
|
-
</script>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-switch">
|
|
2
|
-
<p>Hue Switch node to receive button events.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Setup</h3>
|
|
5
|
-
<p>Select the preconfigured Hue Bridge and hit the search button to find all available Hue Switch devices. Type in the name manually or keep the default device name. Note that events will only sent on deploy (once) and if a button is pressed. If necessary, all status updates of this node can be ignored by activating the "Skip events" option.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Switch Events</h3>
|
|
8
|
-
<p>The event message that the Hue Switch sends contains the following data in the <b>msg.payload</b> object:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>Pressed button id</dd>
|
|
12
|
-
|
|
13
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
14
|
-
<dd>Human readable pressed button name (On, Dim Up, Dim Down, Off)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>action<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>Human readable pressed button action (pressed, holded, short released, long released)</dd>
|
|
18
|
-
|
|
19
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
20
|
-
<dd>ISO 8601 date string of the last time when a button was pressed</dd>
|
|
21
|
-
</dl>
|
|
22
|
-
|
|
23
|
-
<h3>Additional Sensor Info</h3>
|
|
24
|
-
<p>Additional information about the device is going to be sent to the <b>msg.info</b> object:</p>
|
|
25
|
-
<dl class="message-properties">
|
|
26
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
27
|
-
<dd>Numerical id of the sensor as registered on the bridge</dd>
|
|
28
|
-
|
|
29
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Unique Id of the sensor (typically hardware id)</dd>
|
|
31
|
-
|
|
32
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Name for the sensor</dd>
|
|
34
|
-
|
|
35
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
36
|
-
<dd>Sensor type (e.g. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
37
|
-
|
|
38
|
-
<dt>softwareVersion<span class="property-type">float</span></dt>
|
|
39
|
-
<dd>Software version of the sensor</dd>
|
|
40
|
-
|
|
41
|
-
<dt>battery<span class="property-type">int</span></dt>
|
|
42
|
-
<dd>Current battery level of the Hue Switch in percent</dd>
|
|
43
|
-
|
|
44
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
45
|
-
<dd>The model object of the sensor includes model specific information like the model.id, model.manufacturer, model.name and model.type</dd>
|
|
46
|
-
</dl>
|
|
47
|
-
|
|
48
|
-
<h3>Last State Information</h3>
|
|
49
|
-
<p>This node also sends the entire last state data (before the update) in the <b>msg.lastState</b> object. It can either contain false (boolean) or the objects payload (msg.lastState.payload) and info (msg.lastState.info). The return value "false" is only sent if there was no last state, e.g. when the node was newly created or restarted.</p>
|
|
50
|
-
</script>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-switch":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Switch name",
|
|
8
|
-
"skipevents": "Skip events",
|
|
9
|
-
"skipevents-node": "Skip events from node",
|
|
10
|
-
"searching": "Searching Hue Switches…",
|
|
11
|
-
"none-found": "No Hue Switches found!",
|
|
12
|
-
"unknown-error": "Something went wrong. Please retry.",
|
|
13
|
-
"switch": "Switch"
|
|
14
|
-
},
|
|
15
|
-
"node":
|
|
16
|
-
{
|
|
17
|
-
"title": "Hue Switch",
|
|
18
|
-
"not-configured": "not configured",
|
|
19
|
-
"waiting": "waiting…",
|
|
20
|
-
"button-on": "On",
|
|
21
|
-
"button-dimup": "Dim Up",
|
|
22
|
-
"button-dimdown": "Dim Down",
|
|
23
|
-
"button-off": "Off",
|
|
24
|
-
"action-pressed": "pressed",
|
|
25
|
-
"action-holded": "held",
|
|
26
|
-
"action-shortreleased": "short released",
|
|
27
|
-
"action-longreleased": "long released",
|
|
28
|
-
"output": "pressed button"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<script type="text/x-red" data-help-name="hue-tap">
|
|
2
|
-
<p>Hue Tap node to receive button events.</p>
|
|
3
|
-
|
|
4
|
-
<h3>Setup</h3>
|
|
5
|
-
<p>Select the preconfigured Hue Bridge and hit the search button to find all available Hue Tap devices. Type in the name manually or keep the default device name. Note that events will only sent on deploy (once) and if a button is pressed. If necessary, all status updates of this node can be ignored by activating the "Skip events" option.</p>
|
|
6
|
-
|
|
7
|
-
<h3>Tap Events</h3>
|
|
8
|
-
<p>The event message that the Hue Tap sends contains the following data in the <b>msg.payload</b> object:</p>
|
|
9
|
-
<dl class="message-properties">
|
|
10
|
-
<dt>button<span class="property-type">int</span></dt>
|
|
11
|
-
<dd>Pressed button number from 1-4</dd>
|
|
12
|
-
|
|
13
|
-
<dt>buttonAlt<span class="property-type">int</span></dt>
|
|
14
|
-
<dd>Alternative button number (unparsed from the bridge)</dd>
|
|
15
|
-
|
|
16
|
-
<dt>updated<span class="property-type">string</span></dt>
|
|
17
|
-
<dd>ISO 8601 date string of the last time when a button was pressed</dd>
|
|
18
|
-
</dl>
|
|
19
|
-
|
|
20
|
-
<h3>Additional Sensor Info</h3>
|
|
21
|
-
<p>Additional information about the device is going to be sent to the <b>msg.info</b> object:</p>
|
|
22
|
-
<dl class="message-properties">
|
|
23
|
-
<dt>id<span class="property-type">int</span></dt>
|
|
24
|
-
<dd>Numerical id of the sensor as registered on the bridge</dd>
|
|
25
|
-
|
|
26
|
-
<dt>uniqueId<span class="property-type">string</span></dt>
|
|
27
|
-
<dd>Unique Id of the sensor (typically hardware id)</dd>
|
|
28
|
-
|
|
29
|
-
<dt>name<span class="property-type">string</span></dt>
|
|
30
|
-
<dd>Name for the sensor</dd>
|
|
31
|
-
|
|
32
|
-
<dt>type<span class="property-type">string</span></dt>
|
|
33
|
-
<dd>Sensor type (e.g. Daylight, CLIPTemperature, ZGPSwitch)</dd>
|
|
34
|
-
|
|
35
|
-
<dt>model<span class="property-type">object</span></dt>
|
|
36
|
-
<dd>The model object of the sensor includes model specific information like the model.id, model.manufacturer, model.name and model.type</dd>
|
|
37
|
-
</dl>
|
|
38
|
-
|
|
39
|
-
<h3>Last State Information</h3>
|
|
40
|
-
<p>This node also sends the entire last state data (before the update) in the <b>msg.lastState</b> object. It can either contain false (boolean) or the objects payload (msg.lastState.payload) and info (msg.lastState.info). The return value "false" is only sent if there was no last state, e.g. when the node was newly created or restarted.</p>
|
|
41
|
-
</script>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hue-tap":
|
|
3
|
-
{
|
|
4
|
-
"config":
|
|
5
|
-
{
|
|
6
|
-
"name": "Name",
|
|
7
|
-
"input-name": "Tap name",
|
|
8
|
-
"skipevents": "Skip events",
|
|
9
|
-
"skipevents-node": "Skip events from node",
|
|
10
|
-
"searching": "Searching Hue Taps…",
|
|
11
|
-
"none-found": "No Hue Taps found!",
|
|
12
|
-
"unknown-error": "Something went wrong. Please retry."
|
|
13
|
-
},
|
|
14
|
-
"node":
|
|
15
|
-
{
|
|
16
|
-
"title": "Hue Tap",
|
|
17
|
-
"not-configured": "not configured",
|
|
18
|
-
"waiting": "waiting…",
|
|
19
|
-
"pressed-button": "Button #__button__ pressed",
|
|
20
|
-
"output": "pressed button"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|