Eigentlich wollte ich nur die Milight Bridges durch einen ESP8266 ersetzen......

Begonnen von schka17, 09 Oktober 2016, 16:33:55

Vorheriges Thema - Nächstes Thema

Daniel_D

Danke,

das ist ja Easy.
Teste ich nachher mal!

EDIT: Hat auch keine Änderung gebracht  :-\

FHEM auf Raspberry PI
5x HM-CC-RT-DN
1x HM-CFG-LAN
8x HM-Sec-SCo
1x myJeeLink

schka17

Also dann weiss ich jetzt auch nicht mehr weiter, das einzige was man noch schauen könnte wäre was denn die originale Bridge im HF Bereich sendet, du könntest den openmili sketch flashen und dann mal genau die Sequenz aus dem Log durchspielen und aufzeichnen.


Sent from my iPad using Tapatalk
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

Daniel_D

Das mach ich die Tage vielleicht mal.

Danke und noch ein schönes Rest Wochenende
FHEM auf Raspberry PI
5x HM-CC-RT-DN
1x HM-CFG-LAN
8x HM-Sec-SCo
1x myJeeLink

Bapt. Reverend Magersuppe

Yeah!

Ich habs geschafft eine Birne zu pairen. Allerdings ganz klassisch als Milight-Bridge über fhem. Wie geht das ganze über mqtt?
Also wie bekomme ich die Fernbedienungskommandos zur Birne mit rein?
--
If I was born in 1453, Leonardo da Vinci would be jealous of me.
Reverend Paul Egon Magersuppe
Aus versicherungstechnischen Gründen sind sämtliche Beiträge von mir rein spekulativer und theoretischer Natur und sollten nicht in die Tat umgesetzt werden!
Bin hier selten DRIN. AUS GRÜNDEN!

schka17

Zitat von: Bapt. Reverend Magersuppe am 11 Dezember 2016, 15:46:25
Yeah!

Ich habs geschafft eine Birne zu pairen. Allerdings ganz klassisch als Milight-Bridge über fhem. Wie geht das ganze über mqtt?
Also wie bekomme ich die Fernbedienungskommandos zur Birne mit rein?
Das Senden per MQTT ist in meiner Bridge nicht implementiert, es gibt ja auch dafür keine Modulunterstützung, zumindest bis jetzt. MQTT ist nur mal als "machbarkeit" für die Rückmeldung an FHEM implementiert, wenn man über eine Fernbedienung schaltet.


Sent from my iPad using Tapatalk
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

pula

Hmm.... klingt sehr interessant....
Hab mich hier mal ein wenig eingelesen, verstehe aber noch nicht alles.
Würde den Sketch evtl für Ethernet-Shield anstatt WLAN portieren.
Aber bevor ich mich an die Arbeit mache, hätt ich noch ein paar Fragen:

1) Versteh ich das richtig, daß hier eine Emulation von bis zu vier Milight-Bridges möglich ist?
2) Mit der gleichen Hardware wie für mysensors?
3) Die einzelnen Bridges können dann per wifilight-modul aus fhem her angesteuert werden?
4) WIe ist denn die Reichweite? So wie bei mysensors oder so wie bei milight? Habe auch mysensors im Einsatz und hier ist die Reichweite nicht so berauschend. Die von milight ist besser....

Da ich vier milight-bridges im Einsatz habe und die nicht wirklich stabil sind, wäre das der Wahnsinn.

Cheers,

Pula
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

schka17

Zu 1.) mit dem geposteten sketch ja, kann man aber ausbauen
2, ja
3, nein, beim Wifilight kann man nur eine bridge, bzw. Nur ein Port definieren. Allerdings, wenn ich das so schreibe, möglicherweise kann man mehrere Devices mit derselben Ip-Adresse aber unterschiedliche Ports definieren. Habe ich noch nicht ausprobiert, ich verwende das Milight Modul, da funktioniert es.
4., da kann ich nicht viel negatives sagen, ich habe weder mit milight noch mit mysensors ein Reichweitenproblem, meine milights sind aber auch nur im umkreis von ca. 60m2 und geht auch durch die Decke, ich verwende aber auch das +Modul mit der externen Antenne.

Und zum letzten Punkt, ausser beim ausfall des AP's(also die Idee mit Ethernet ist nicht so schlecht) hatte ich seither keine Ausfälle mehr.


Sent from my iPad using Tapatalk
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

pula

Klingt mal gut :-)
Und zum testen sollte mit der app ein pairing möglich sein?

Cheers,

Pula
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

pula

Hi,

hab das jetzt mal mit einem rumliegenden UNO und Ethernet-Shield soweit ans laufen gebracht...

Serial-Out zb:
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 2E


Aber jetzt hänge ich. Hab eine milight-bridge in fhem angelegt:

define milightbridge1 MilightBridge 192.168.1.177:8899
attr milightbridge1 checkInterval 10
attr milightbridge1 event-on-change-reading state
attr milightbridge1 protocol udp
attr milightbridge1 room Beleuchtung
attr milightbridge1 sendInterval 100


und ein entsprechendes device:

define testlampe MilightDevice RGBW milightbridge1 5
attr testlampe IODev milightbridge1
attr testlampe devStateIcon {(MilightDevice_devStateIcon($name),"toggle")}
attr testlampe event-on-change-reading state,transitionInProgress
attr testlampe lightSceneParamsToSave hsv
attr testlampe restoreAtStart 1
attr testlampe room Beleuchtung
attr testlampe webCmd on:off:dim:hue:night:rgb ffffff:rgb ff0000:rgb 00ff00:rgb 0000ff:rgb ffff00


Aber irgendwie wird das mit dem pairen nichts. Habe der Lampe Strom gegeben und sofort ein set testlampe rgb ffffff geschickt, keine Reaktion der Lampe. Auch diverse andere Schaltversuche aus fhem entlocken der Lampe keine Reaktion.
Für eine kleine Hilfestellung wäre ich dankbar. Ach ja. Obwohl 8899 ja eigentlich der Standard-Port einer V3/V4 Bridge sein soll, sehe ich das Ding nicht in der Android-App. Gehört das so?

Cheers,

Pula

fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

schka17

Die app wird nicht unterstützt, also die kommunikation mit der app ist nicht implementiert.
Hast du probiert einfach nach dem Strom geben nur ein set on zu schicken?
Für weitere Diagnose würde ich dann den Output auf dem seriellen Port benötigen.


Sent from my iPad using Tapatalk
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

pula

Hi,

interessant, ich bekomme etliche Woops, die ich nicht wirklich deuten kann:
Booting openmili2
Ethernet connected
# OpenMiLight Receiver/Transmitter starting
Wooops!
Write : B0 63 D2 0 0 BE 1
Wooops!
Write : B0 63 D2 0 0 BE 2
...Wooops!
Write : B0 63 D2 0 0 BE 3
Wooops!
Write : B0 63 D2 0 0 BE 4
...Wooops!
Write : B0 63 D2 0 0 BE 5
Wooops!
Write : B0 63 D2 0 0 BE 6
...Wooops!
Write : B0 63 D2 0 0 BE 7
Wooops!
Write : B0 63 D2 0 0 BE 8
...Wooops!
Write : B0 63 D2 0 0 BE 9
Wooops!
Write : B0 63 D2 0 0 BE A
....Wooops!
Write : B0 63 D2 0 0 BE B
Wooops!
Write : B0 63 D2 0 0 BE C
................Wooops!
Write : B0 63 D2 0 0 BE D
Wooops!


Der Sketch sieht so aus (kein Hexenwerk gegenüber Deinem - und ich hab noch diverse debut-prints drin....):


#include <SPI.h>
#include "nRF24L01.h"
//#include <RF24.h>
#include <MySensor.h>
#include "PL1167_nRF24.h"
#include "MiLightRadio.h"

//#include <ESP8266_Basic.h>
//#include <ESP8266WiFi.h>
//#include <WiFiUdp.h>
#include <Ethernet.h>

//#include <printf.h>
byte mac[] = {
  0xD0, 0xAD, 0xCE, 0xFF, 0xFE, 0xED
};

IPAddress ip(192, 168, 1, 177);

EthernetUDP udp1;
EthernetUDP udp2;
EthernetUDP udp3;
EthernetUDP udp4;

uint8_t udp1Id[] = {0x63, 0xD2};
uint8_t udp2Id[] = {0x63, 0xD3};
uint8_t udp3Id[] = {0x63, 0xD0};
uint8_t udp4Id[] = {0x63, 0xC2};

char packetBuffer[255];


/*
* nRF24L01+  ESP8266 NodeMCU
* VCC        VCC     VCC
* CE         GPIO4   D2         
* CSN/CS     GPIO15  D8
* SCK        GPIO14  D5
* MISO       GPIO12  D6
* MOSI       GPIO13  D7
* GND        GND     GND
*/


#define CE_PIN 4 //
#define CSN_PIN 15 //

RF24 radio(CE_PIN, CSN_PIN);
PL1167_nRF24 prf(radio);
MiLightRadio mlr(prf);

//Thanks to Henryk and Erantimus for providing details and checksum code.
//Calculate Checksum - Returns 2 bytes.
uint16_t calc_crc(uint8_t data[], uint8_t data_length = 0x08) {
  uint16_t state = 0;
  for (uint8_t i = 0; i < data_length; i++) {
    uint8_t byte = data[i];
    for (int j = 0; j < 8; j++) {
      if ((byte ^ state) & 0x01) {
        state = (state >> 1) ^ 0x8408;
      } else {
        state = state >> 1;
      }
      byte = byte >> 1;
    }
  }
  return state;
}

uint8_t resendCounter = 0;
uint8_t lastOnGroup = 0;
long unsigned int lastMicros = 0;



void setup()
{
  Serial.begin(115200);
  delay(10);


  Serial.println();
  Serial.println();
//  Serial.print("Connecting to ");
//  Serial.println(ssid);

  Ethernet.begin(mac, ip);
  //Ethernet.begin(mac, ip, myDns, gateway, subnet); 
  Serial.println("");
  Serial.println("Booting openmili2");
  Serial.println("Ethernet connected");
  //Serial.println("IP address: ");
  //Serial.println(WiFi.localIP());

  udp1.begin(8899);
  udp2.begin(8898);
  udp3.begin(8897);
  udp4.begin(8896);

/*entfernt schka17 20161006     
*
  printf_begin();  */
  delay(1000);
  Serial.println("# OpenMiLight Receiver/Transmitter starting");
  mlr.begin();

}


static int dupesPrinted = 0;
static bool receiving = false;
static bool escaped = false;
static uint8_t outgoingPacket[7];
static uint8_t outgoingPacketUDP[7];
static uint8_t outgoingPacketPos = 0;
static uint8_t nibble;
static enum {
  IDLE,
  HAVE_NIBBLE,
  COMPLETE,
} state;

static uint8_t reverse_bits(uint8_t data) {
  uint8_t result = 0;
  for (int i = 0; i < 8; i++) {
    result <<= 1;
    result |= data & 1;
    data >>= 1;
  }
  return result;
}

void udpLoop(EthernetUDP Udp, uint8_t id1, uint8_t id2) {
  int packetSize = Udp.parsePacket();
  //Serial.println("UdpLoop ");
  if (packetSize)
  {
    outgoingPacketUDP[0] = 0xB0; // B0 - White | B8 - RGBW
    outgoingPacketUDP[1] = id1; // Remote ID
    outgoingPacketUDP[2] = id2; // Remote ID
    //Serial.println("UdpLoop 1");
    if (packetBuffer[0] == 0x40) {  // Color
      //Serial.println("UdpLoop 2");
      outgoingPacketUDP[3] = ((uint8_t)0xFF - packetBuffer[1]) + 0xC0;
      outgoingPacketUDP[4] = lastOnGroup; // Use last ON group
      outgoingPacketUDP[5] = 0x0F; // Button
      //Serial.println("UdpLoop 3");

    } else if (packetBuffer[0] == 0x4E) { // Brightness
      //Serial.println("UdpLoop 4");
      // 2 to 1B (2-27)
      // (0x90-0x00 and 0xF8-0xB0) increments of 8
      // 0x90-0x00 = 1 to 18
      // 0xB0-F8 = 19 to 27
      /*
       * x - 98
       * x - 90
       * x - 88
       * 2 - 80*
       * 3 - 78
       * 4 - 70
       * 5 - 68
       * 6 - 60
       * 7 - 58
       * 8 -50
       * 9 - 48
       * 10 - 40
       * 11 - 38
       * 12 - 30
       * 13 - 28
       * 14 - 20
       * 15 - 18
       * 16 - 10
       * 17 - 8
       * 18 - 0
       * 19 - F8
       * 20 - F0
       * 21 - E8
       * 22 - E0
       * 23 - D8
       * 24 - D0
       * 25 - C8
       * 26 - C0
       * 27 - B8*
       * xx - B0
       * xx - A8
       */

      if (packetBuffer[1] <= 18) {
        outgoingPacketUDP[4] = (18 - packetBuffer[1]) * 0x08;
      } else {
        outgoingPacketUDP[4] = 0xB8 + (27 - packetBuffer[1]) * 0x08;
      }
      outgoingPacketUDP[4] += lastOnGroup; // add group number
      outgoingPacketUDP[5] = 0x0E; // Button

    } else if ((packetBuffer[0] & 0xF0) == 0xC0) {
      outgoingPacketUDP[5] = packetBuffer[0] - 0xB2; // Full White

    } else if (packetBuffer[0] == 0x41) {   // Button RGBW COLOR LED ALL OFF
      outgoingPacketUDP[5] = 0x02;
    } else if (packetBuffer[0] == 0x42) {   // Button RGBW COLOR LED ALL ON
      outgoingPacketUDP[5] = 0x01;
      lastOnGroup = 0;
    } else if (packetBuffer[0] == 0x45) {   // Group 1 ON
      outgoingPacketUDP[5] = 0x03;
      lastOnGroup = 1;
    } else if (packetBuffer[0] == 0x46) {   // Group 1 OFF
      outgoingPacketUDP[5] = 0x04;
    } else if (packetBuffer[0] == 0x47) {   // Group 2 ON
      outgoingPacketUDP[5] = 0x05;
      lastOnGroup = 2;
    } else if (packetBuffer[0] == 0x48) {   // Group 2 OFF
      outgoingPacketUDP[5] = 0x06;
    } else if (packetBuffer[0] == 0x49) {   // Group 3 ON
      outgoingPacketUDP[5] = 0x07;
      lastOnGroup = 3;
    } else if (packetBuffer[0] == 0x4A) {   // Group 3 OFF
      outgoingPacketUDP[5] = 0x08;
    } else if (packetBuffer[0] == 0x4B) {   // Group 4 ON
      outgoingPacketUDP[5] = 0x09;
      lastOnGroup = 4;
    } else if (packetBuffer[0] == 0x4C) {   // Group 5 OFF
      outgoingPacketUDP[5] = 0x0A;

    } else {
      Serial.println("Wooops!");
      outgoingPacketUDP[5] = packetBuffer[0] - 0x42; // Button
    }
    //Serial.println("UdpLoop 5");
    outgoingPacketUDP[6]++; // Counter
    //Serial.println("UdpLoop 6");
    Serial.print("Write : ");
    for (int j = 0; j < sizeof(outgoingPacketUDP); j++) {
      Serial.print(outgoingPacketUDP[j], HEX);
      Serial.print(" ");
    }
    Serial.println();
    //Serial.println("UdpLoop 7");
    mlr.write(outgoingPacketUDP, sizeof(outgoingPacketUDP));
    resendCounter = 16;
    lastMicros = micros();
    //Serial.println("UdpLoop 8");
  }
  delay(0);

  if (resendCounter > 0) {
    if (micros() - 350 > lastMicros) {
      mlr.resend();
      resendCounter--;
      Serial.print(".");
      lastMicros = micros();
    }
  }
   //Serial.println("UdpLoop end");
}

void loop()
{

  udpLoop(udp1, udp1Id[0], udp1Id[1]);
  udpLoop(udp2, udp2Id[0], udp2Id[1]);
  udpLoop(udp3, udp3Id[0], udp3Id[1]);
  udpLoop(udp4, udp4Id[0], udp4Id[1]);
  if (receiving) {
    if (mlr.available()) {
      printf("\n");
      //Serial.println();
      uint8_t packet[7];
      size_t packet_length = sizeof(packet);
      mlr.read(packet, packet_length);

      for (int i = 0; i < packet_length; i++) {
        Serial.print(packet[i], HEX);
        Serial.print(" ");
        printf("%02X ", packet[i]);
      }
    }

    int dupesReceived = mlr.dupesReceived();
    for (; dupesPrinted < dupesReceived; dupesPrinted++) {
      printf(".");
      Serial.print(".");
    }
  }

  while (Serial.available()) {
    yield();
    char inChar = (char)Serial.read();
    uint8_t val = 0;
    bool have_val = true;

    if (inChar >= '0' && inChar <= '9') {
      val = inChar - '0';
    } else if (inChar >= 'a' && inChar <= 'f') {
      val = inChar - 'a' + 10;
    } else if (inChar >= 'A' && inChar <= 'F') {
      val = inChar - 'A' + 10;
    } else {
      have_val = false;
    }

    if (!escaped) {
      if (have_val) {
        switch (state) {
          case IDLE:
            nibble = val;
            state = HAVE_NIBBLE;
            break;
          case HAVE_NIBBLE:
            if (outgoingPacketPos < sizeof(outgoingPacket)) {
              outgoingPacket[outgoingPacketPos++] = (nibble << 4) | (val);
            } else {
              Serial.println("# Error: outgoing packet buffer full/packet too long");
            }
            if (outgoingPacketPos >= sizeof(outgoingPacket)) {
              state = COMPLETE;
            } else {
              state = IDLE;
            }
            break;
          case COMPLETE:
            Serial.println("# Error: outgoing packet complete. Press enter to send.");
            break;
        }
      } else {
        switch (inChar) {
          case ' ':
          case '\n':
          case '\r':
          case '.':
            if (state == COMPLETE) {
              Serial.print("Write : ");
              for (int j = 0; j < sizeof(outgoingPacket); j++) {
                Serial.print(outgoingPacket[j], HEX);
                Serial.print(" ");
              }
              Serial.print(" - Size : ");
              Serial.print(sizeof(outgoingPacket), DEC);
              Serial.println();
              mlr.write(outgoingPacket, sizeof(outgoingPacket));
              Serial.println("Write End");
            }
            if (inChar != ' ') {
              outgoingPacketPos = 0;
              state = IDLE;
            }
            if (inChar == '.') {
              mlr.resend();
              delay(1);
            }
            break;
          case 'x':
            Serial.println("# Escaped to extended commands: r - Toggle receiver; Press enter to return to normal mode.");
            escaped = true;
            break;
        }
      }
    } else {
      switch (inChar) {
        case '\n':
        case '\r':
          outgoingPacketPos = 0;
          state = IDLE;
          escaped = false;
          break;
        case 'r':
          receiving = !receiving;
          if (receiving) {
            Serial.println("# Now receiving");
          } else {
            Serial.println("# Now not receiving");
          }
          break;
      }
    }
  }
}
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

schka17

Ich fürchte den sketch zu analysieren übersteigt meine Kenntnisse und Möglichkeiten (testequipment), aber es sieht für mich so aus als würden die empfangenen Pakete nicht richtig ausgelesen werden, vielleicht ist die Datenstruktur der ethernet library unterschiedlich? Lass dir mal den inhalt von packetbuffer auf die serial ausgeben


Sent from my iPad using Tapatalk
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

pula

Ok, ich werde mir das mal über die feiertage anschauen...
melde mich, falls ich den sketch dann fertig habe....

Cheers und schöne Weihnachten!

Pula
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

pula

Arghh... ich honk hatte versehentlich den Teil im Sketch gelöscht, in dem der Packetbuffer eingelesen wird...
Keine errors mehr im serial-out, aber gehen tut es trotzdem noch nicht... mal schauen, vielleicht werde ich über die Feiertage schlauer....
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram

pula

Hmm...
vom code und der serial-ausgabe her sieht eigentlich alles gut aus. aber ich bekomm kein pairing mit dem ethernet-sketch...

ich hab mal folgendes in fhem angelegt:
Internals:
   CFGFN
   CHANGED
   Clients    :MilightDevice:
   DEF        192.168.1.177:8899
   HOST       192.168.1.177
   INTERVAL   100
   NAME       milightbridge1
   NR         105823
   NTFY_ORDER 50-milightbridge1
   PORT       8899
   SENDFAIL   0
   STATE      ok
   TYPE       MilightBridge
   cmdLastSent 1482783739.07269
   cmdQueueLock 0
   0:
   1:
   2:
   3:
   4:
   5:
     NAME       testlampe
   6:
   7:
   8:
   Matchlist:
     1:MilightDevice .*
   Readings:
     2016-12-26 21:23:54   sendFail        0
     2016-12-26 21:21:20   slot0
     2016-12-26 21:21:20   slot1
     2016-12-26 21:21:20   slot2
     2016-12-26 21:21:20   slot3
     2016-12-26 21:21:20   slot4
     2016-12-26 21:21:20   slot5           testlampe
     2016-12-26 21:21:20   slot6
     2016-12-26 21:21:20   slot7
     2016-12-26 21:21:20   slot8
     2016-12-26 21:23:54   state           ok
   cmdQueue:
   Helper:
Attributes:
   checkInterval 10
   event-on-change-reading state
   protocol   udp
   room       Beleuchtung
   sendInterval 100


und die lampe:
Internals:
   CFGFN
   DEF        RGBW milightbridge1 5
   INIT       1
   IODev      milightbridge1
   LEDTYPE    RGBW
   NAME       testlampe
   NR         105825
   NTFY_ORDER 50-testlampe
   SLOT       5
   SLOTID     5
   STATE      on 36
   TYPE       MilightDevice
   Readings:
     2016-12-26 21:22:18   brightness      36
     2016-12-26 21:22:16   brightness_on   36
     2016-12-26 21:22:18   discoMode       0
     2016-12-26 21:22:18   discoSpeed      0
     2016-12-26 21:22:18   hsv             0,0,36
     2016-12-26 21:22:18   hue             0
     2016-12-26 21:22:18   previousState   0,0,0
     2016-12-26 21:22:18   rgb             5B5B5B
     2016-12-26 21:22:18   saturation      0
     2016-12-26 21:22:18   state           on 36
     2016-12-26 21:22:18   transitionInProgress 0
   Helper:
     COMMANDSET on off toggle dimup dimdown discoModeUp:noArg discoSpeedUp:noArg discoSpeedDown:noArg night:noArg white:noArg toggleWhite:noArg pair unpair restorePreviousState:noArg saveState:noArg restoreState:noArg hsv rgb:colorpicker,RGB hue:colorpicker,HUE,0,1,360 saturation:slider,0,100,100 preset dim:slider,0,4,100 brightness:slider,0,4,100
     colorLevel 0
     colorValue 176
     targetHue  0
     targetSat  0
     targetTime 1482783738.56069
     targetVal  36
     whiteLevel 10
     COLORMAP:
       176
       175
       175
       174
       174
       173
       173
       172
       172
       171
       171
       170
       170
       169
       169
       168
       167
       167
       166
       166
       165
       165
       164
       164
       163
       163
       162
       162
       161
       161
       160
       159
       159
       158
       158
       157
       157
       156
       156
       155
       155
       154
       154
       153
       153
       152
       151
       151
       150
       150
       149
       149
       148
       148
       147
       147
       146
       146
       145
       145
       144
       143
       142
       142
       141
       140
       139
       138
       138
       137
       136
       135
       134
       134
       133
       132
       131
       130
       130
       129
       128
       127
       126
       126
       125
       124
       123
       122
       122
       121
       120
       119
       118
       118
       117
       116
       115
       114
       114
       113
       112
       111
       110
       110
       109
       108
       107
       106
       106
       105
       104
       103
       102
       102
       101
       100
       99
       98
       98
       97
       96
       95
       95
       94
       93
       93
       92
       91
       91
       90
       89
       89
       88
       87
       87
       86
       85
       85
       84
       83
       83
       82
       81
       81
       80
       79
       79
       78
       77
       77
       76
       75
       75
       74
       73
       73
       72
       71
       71
       70
       69
       69
       68
       67
       67
       66
       65
       65
       64
       63
       63
       62
       61
       61
       60
       59
       59
       58
       57
       57
       56
       55
       55
       54
       53
       53
       52
       51
       51
       50
       49
       49
       48
       47
       47
       46
       45
       45
       44
       43
       43
       42
       41
       41
       40
       39
       39
       38
       37
       37
       36
       35
       35
       34
       33
       33
       32
       31
       31
       30
       29
       29
       28
       27
       27
       26
       25
       25
       24
       23
       23
       22
       21
       21
       20
       19
       19
       18
       17
       17
       17
       16
       15
       15
       14
       13
       12
       11
       11
       10
       9
       8
       7
       7
       6
       5
       4
       3
       3
       2
       1
       0
       254
       254
       253
       252
       251
       250
       250
       249
       248
       247
       246
       246
       245
       244
       243
       242
       242
       241
       240
       239
       238
       238
       237
       236
       235
       234
       234
       233
       232
       231
       230
       230
       229
       228
       227
       226
       226
       225
       224
       223
       222
       222
       221
       220
       219
       218
       218
       217
       216
       215
       214
       214
       213
       212
       211
       210
       210
       209
       208
       207
       206
       206
       205
       204
       203
       202
       202
       201
       200
       199
       198
       198
       197
       196
       195
       194
       194
       193
       192
       191
       190
       190
       189
       188
       187
       186
       186
       185
       184
       183
       182
       182
       181
       180
       179
       178
       178
       177
     GAMMAMAP:
       0
       4
       4
       4
       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
     cmdQueue:
Attributes:
   IODev      milightbridge1
   devStateIcon {(MilightDevice_devStateIcon($name),"toggle")}
   event-on-change-reading state,transitionInProgress
   lightSceneParamsToSave hsv
   restoreAtStart 1
   room       Beleuchtung
   webCmd     on:off:dim:hue:night:rgb ffffff:rgb ff0000:rgb 00ff00:rgb 0000ff:rgb ffff00


wenn ich ein paar mal bei der lampe on und off hintereinander mache, bekomme ich in der serial-out:

Booting openmili2
Ethernet connected
# OpenMiLight Receiver/Transmitter starting

Contents: 45 0 55
Write : B0 63 D2 0 0 3 1
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 0 13 2
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 3
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 4
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 5
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 6
................
Contents: 45 0 55
Write : B0 63 D2 0 41 3 7
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 8
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 9
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 A
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 B
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E C
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 D
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 E
................
Contents: 45 0 55
Write : B0 63 D2 0 81 3 F
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 10
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 11
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 12
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 13
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 14
................
Contents: 45 0 55
Write : B0 63 D2 0 41 3 15
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 16
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 17
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 18
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 19
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 1A
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 1B
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 1C
................
Contents: 45 0 55
Write : B0 63 D2 0 81 3 1D
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 1E
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 1F
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 20
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 21
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 22
................
Contents: 45 0 55
Write : B0 63 D2 0 41 3 23
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 24
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 25
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 26
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 27
................
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 28
.....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 29
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 2A
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 2B
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 2C
................
Contents: 4E A 55
Write : B0 63 D2 0 41 E 2D
.....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 2E
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 2F
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 30
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 31
.............
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 32
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 33
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 34
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 35
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 36
......
Contents: 46 0 55
Write : B0 63 D2 0 81 4 37
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 38
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 39
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 3A
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 3B
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 3C
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 3D
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 3E
................
Contents: 45 0 55
Write : B0 63 D2 0 41 3 3F
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 40
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 41
....
Contents: 45 0 55
Write : B0 63 D2 0 81 3 42
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 43
....
Contents: 4E 2 55
Write : B0 63 D2 0 81 E 44
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 45
....
Contents: 46 0 55
Write : B0 63 D2 0 81 4 46
................
Contents: 45 0 55
Write : B0 63 D2 0 81 3 47
.....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 81 13 48
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 49
....
Contents: 45 0 55
Write : B0 63 D2 0 41 3 4A
....
Contents: FFFFFFC5 0 55
Write : B0 63 D2 0 41 13 4B
....
Contents: 4E A 55
Write : B0 63 D2 0 41 E 4C
................


Kann mir mal jemand einen serial-out einer funktionierenden Installation schicken bitte? Vielleicht ist da im Ethernet-Sketch noch ein bug? Hab leider keinen esp zum vergleichen....

Cheers,

Pula
fhem (debian auf proxmox), HM-LAN und wired, MySensors, FritzBoxes, Kodi, vdr, Onkyo, squeezeplayers, nanoCUL, wifilight (Ethernet-Bridge), Heizungssteuerung (python/vncdotool), doorpi, ESP/Arduinos/MQTT, Alexa, HomeConnect, Sonoff/Tasmota, espRGBWW, esphome, Telegram