Milight Adapter

milight lampenadapter

Aktueller Release
0.4.0
Entwickler
foxthefox, bluefox
Lizenz
MIT

Adapter für ioBroker für LED-Lampen wie milight, easybulb, limitless

Allgemeine Einstellungen:

auf der Admin-Seite

  • IP-Adresse -> IP-Adresse der Brücke
  • Port -> Port der Brücke
  • delaybetweenPackages -> ms Verzögerung zwischen UDP-Paketen (100 ms für v5)
  • repeatPackage -> Anzahl der Wiederholungen (1 für v5)
  • Version des MiLight-Protokolls v5 oder v6 -> legt automatisch den entsprechenden Port fest
  • Volle Helligkeit einstellen, wenn in den Weißmodus gewechselt wird

Lampentypen in den Zonen:

auf der Admin-Seite

  • Basic = Bridge NUR für Zone 1 und V6
  • RGBWW = Vollfarblampe mit weißer LED und Farbtemperatureinstellung (höhere Farbtemperatur bedeutet kühlere Farben), NUR in Version 6
  • RGB = reine Farblampe ohne Weiß, NUR für Zone 1
  • RGBW = Farblampe mit weißer LED
  • Weiß = WW/CW-Weißlichtlampe mit Farbtemperaturanpassung (höhere Farbtemperatur bedeutet kühlere Farbwiedergabe)

Mit Zone0 oder ZoneAll können Befehle an alle 4 Zonen gesendet werden. Der Adapter wird in Version 6 mit Basis-/Brückenbefehlen und in Version 5 mit RGBW-Befehlen konfiguriert.

Staaten in Version 6

verfügbarer ZustandGrund-/BrückenprogrammWeißRGBRGBWRGBWW
EIN/AUS als SchalterZustand(Zone1), FunktionZustand(Zone), FunktionZustand(Zone1), FunktionZustand(Zone), FunktionZustand(Zone), Funktion
EIN als Tasteon(zone1), nativeon(zone), nativeon(zone1), nativeon(zone), nativeon(zone), native
AUS als Tasteaus (Zone 1), nativaus(Zone), nativaus (Zone 1), nativaus(Zone), nativaus(Zone), nativ
Farbmodus als boolescher ZustandFarbmodus (0=Nachtmodus, 1=Weißmodus)Farbmodus (0=Nachtmodus, 1=Weißmodus)
maxWhite als SchaltflächemaxBright(zone), native
Weißmodus als SchaltflächewhiteMode(zone1), nativewhiteMode(zone), nativewhiteMode(zone), native
Nachtmodus als TasteNachtmodus(Zone), nativNachtmodus(Zone), nativNachtmodus(Zone), nativ
Helligkeit als Wert (0-100%)Helligkeit (Zone), nativHelligkeit (Zone), nativHelligkeit (Zone), nativ
Farbe als 3 HexadezimalwerteFarbe(Zone), nativFarbe(Zone), nativFarbe(Zone), nativFarbe(Zone), nativ
RGB als kombinierter Wert (#000000 - #FFFFFF)rgb(Zone), nativrgb(Zone), nativrgb(Zone), nativrgb(Zone), nativ
Modus als WertModus(Zone), nativModus(Zone), nativModus(Zone), nativ
modeSpeedUp als SchaltflächemodeSpeedUp(zone), nativemodeSpeedUp (zone), nativemodeSpeedUp (zone), native
modeSpeedDown als TastemodeSpeedDown (Zone), nativmodeSpeedDown(zone), nativemodeSpeedDown(zone), native
Link als SchaltflächeLink(Zone), nativLink(Zone), nativ
Als Schaltfläche „Verknüpfung aufheben“ entfernenunlink(zone), nativeunlink(zone), native
Sättigungswert (0-100%)Sättigung (Zone), nativ
Farbtemperatur als Wert (0-100 entspricht 2700K bis 6500K)Farbtemperatur (Zone), nativ
Helligkeit erhöhen als TasteHelligkeit erhöhen (Zone), FunktionHelligkeitserhöhung (Zone), nativHelligkeitserhöhung (Zone), nativHelligkeit erhöhen (Zone), FunktionHelligkeit erhöhen (Zone), Funktion
Helligkeit verringern als TasteHelligkeit verringern (Zone), FunktionHelligkeitsreduzierung (Zone), nativHelligkeitsreduzierung (Zone), nativHelligkeit verringern (Zone), FunktionHelligkeit verringern (Zone), Funktion
Farbe nach oben als SchaltflächecolorUp(zone), FunktioncolorUp(zone), FunktioncolorUp(zone), Funktion
Farbe nach unten als SchaltflächeFarbe Abwärts (Zone), FunktionFarbe Abwärts (Zone), FunktionFarbe Abwärts (Zone), Funktion
Sättigung erhöhen (als Schaltfläche)Sättigung erhöhen (Zone), Funktion
Sättigung verringern (als Schaltfläche)Sättigung reduzieren (Zone), Funktion
colorTempUp als SchaltflächecolorTempUp (Zone), nativcolorTempUp (Zone), Funktion
colorTempDown als SchaltflächecolorTempDown (Zone), nativcolorTempDown (Zone), Funktion
Farbton als Wert (0-360)Farbton (Zone), FunktionFarbton (Zone), Funktion

Staaten in Version 5/ Version 4

verfügbarer ZustandRGBWeißRGBW
EIN/AUS als SchalterZustand(Zone), FunktionZustand(Zone), FunktionZustand(Zone), Funktion
EIN als Tasteon(zone), nativeon(zone), nativeon(zone), native
AUS als Tasteaus(Zone), nativaus(Zone), nativaus(Zone), nativ
Farbmodus als boolescher ZustandcolorMode (0/hs=whiteMode, 1/ct=color(hue=55))
maxWhite als SchaltflächemaxBright(zone), native
Weißmodus als SchaltflächewhiteMode(zone), native
Nachtmodus als TasteNachtmodus(Zone), nativ
Farbe als Farbtonwert (0-255)Farbton, einheimisch
RGB als kombinierter Wert (#000000 - #FFFFFF)RGB, nativ
colorTempUp als Schaltflächewärmer, einheimische
colorTempDown als Schaltflächekühler, einheimische
Helligkeit als Wert (0-100%)Helligkeit, nativ
Helligkeit als Wert (0-100%), erweiterter Bereich
effectModeNext als SchaltflächeeffectModeNext, native
Als Schaltfläche beschleunigenspeedUp, nativeeffectSpeedUp, native
Geschwindigkeit verringern als TastespeedDown, nativeEffektGeschwindigkeitVerringern, nativ
als Schaltfläche „Aufhellen“brightUp, nativebrightUp, native
als Taste hell herunterbrightDown, nativebrightDown, native
effectModeNext als SchaltflächeeffectSpeedUp, native
effectModePrev als SchaltflächeEffektGeschwindigkeitVerringern, nativ

effectSpeedUp/Down hat unterschiedliche Bedeutungen (bei RGB ändert es den Modus, bei RGBW ändert es die Geschwindigkeit)!

Konfiguration:

auf der Admin-Seite der Adapterversion 5, die auch für Lampen der Version 4 verwendet werden kann.

TODO:

  • ??

Bekannte Probleme:

  • ??

Changelog

WORK IN PROGRESS

  • (iobroker-bot) Adapter requires node.js >= 20 now.:

0.4.0

  • compact mode

0.3.6

  • (foxthefox) node-milight-promise 0.3.1 (former version 0.2.32)

0.3.5

  • (mrinc) fix for the v5 color setting (was always blue)
  • (foxthefox) nightModeSwitch added on white bulbs for command from Alexa

0.3.4

  • (foxthefox) adminv3 added

0.3.3

  • (foxthefox) setting of state after usage of command OFF/ON
  • (foxthefox) v6 widget for RGBW; RGBWW mode switch night/weiß instead weiß/farbe
  • (foxthefox) v6 widget for RGBW, RGBWW speedup/down correction, no hide of color temp vs. color when switching night/weiß
  • (foxthefox) v5 widget for RGBW with color changing to matching the selected color
  • (foxthefox) v6 widget for RGBWW with colortemperature changing to matching the selected colortemperature

0.3.2

  • (foxthefox) V5 uses brightUp/brightDown instead brightnessUp/brightnessDown
  • (foxthefox) corrections in V5 for white Commands (cooler/warmer/maxBright)
  • (foxthefox) new RGBWW V6 widget
  • (foxthefox) update for effects and correctios in RGBW V6 widget
  • (foxthefox) added CW/WW widget V4 and V6
  • (foxthefox) added disco button in RGBW V4

0.3.1

  • (bluefox) added checking of methods before calling them

0.3.0

  • (foxthefox) cleanup of states
  • (foxthefox) added white/rgb lamp
  • (foxthefox) correction of mismatch RGBW/RGBWW in v6
  • (foxthefox) v6 brightness only 0-0x64(100)

0.2.2/0.2.1

  • (foxthefox) debug messages with v5/v6 prefix; v6 colorset->colormode

0.2.0

  • (bluefox) discovery for v6

0.1.1

  • (foxthefox) switch lamp on with full brightness -> checkbox in admin for v5

0.1.0

  • (foxthefox) tested with bridge version 4 and protocol version v5
  • (bluefox)v6 implementation
  • (foxthefox) node-milight-promise 0.0.9
  • (foxthefox) jqui widget RGBW lamp

0.0.1

  • (foxthefox) initial setup

License

The MIT License (MIT)

Copyright (c) 2018-2026 foxthefox foxthefox@wysiwis.net