ESP RGBWW Wifi Led Controller - Firmware vbs

Begonnen von vbs, 18 April 2017, 09:26:13

Vorheriges Thema - Nächstes Thema

tunguskar

Ich würde gern auf tasmota wechseln. Hat das jemand von euch schon ausprobiert?

balli1187

Hallo,

ich habe einen der Controller im Einsatz und habe aktuell ein bisschen Probleme mit meinem WLAN. Es fällt regelmäßig für einige Sekunden/Minuten aus und erscheint dann wieder - liegt am Access Point.

Der Controller verbindet sich nach Rückkehr des WLANs wieder ordnungsgemäß damit, ist aber dann grundsätzlich eingeschaltet, sprich die LEDs leuchten in der jeweils letzten Konfiguration. Lässt sich das irgendwie umgehen?
Es ist zwar ein guter Indikator um zu sehen wann mein WLAN spinnt aber die Beleuchtung muss auch nicht die ganze Nacht an sein, im ungünstigsten Fall.
FHEM auf QNAP im docker, nanoCUL per ser2net an VU+, 2x Echo Dot, 3x HM-ES-PMSw1-Pl, 3x HM-LC-Bl1PBU-FM, 6x Sonoff Basic, div. "Shelly Eigenbauten" von Papa Romeo, ESPRGBWW-Controller, ...
Projekte: Smart Mirror in Spiegelschrank auf RPi Zero


balli1187

Zitat von: vbs am 20 Juni 2022, 13:11:33
Ich würde erstmal auf die Doku verweisen:
https://github.com/verybadsoldier/esp_rgbww_firmware/wiki/Startup-Color
Sorry kannte ich nicht.

Leider macht es aber nicht so ganz das, was ich mir wünschen würde.
Nach dem Setzen dieser Config auf 0,0,0 schaltet sich der Controller ab, wenn er zwischendurch das WLAN verliert.
Eigentlich sollte die Einstellung 'last' schon passen, denn so wie ich es verstehe, soll er dann den letzten Zustand beibehalten - also wenn an, dann an bleiben und wenn aus, dann aus bleiben.
Es scheint aber so zu sein, dass er nur den letzten Wert vom 'an' speichert, nicht aber 0,0,0 wenn der Controller aus war.

Kann man das ändern oder ist das so gewollt?
FHEM auf QNAP im docker, nanoCUL per ser2net an VU+, 2x Echo Dot, 3x HM-ES-PMSw1-Pl, 3x HM-LC-Bl1PBU-FM, 6x Sonoff Basic, div. "Shelly Eigenbauten" von Papa Romeo, ESPRGBWW-Controller, ...
Projekte: Smart Mirror in Spiegelschrank auf RPi Zero

vbs

Das ist eigentlich nicht so gewollt und verhält sich mW normalerweise auch nicht so. Zumindest nicht bei einem normalen Power-On. Ich vermute, dass der Controller bei dem WLAN-Verlust nicht regulär neu bootet und damit dieser Mechanismus nicht in der Form greift. Ich kann leider nicht genau sagen, was stattdessen passiert. Offenbar... irgendwas anderes...

Skusi

Hallo vbs,

ich habe sporadisch immer mal wider soetwas in meinem Logfile:

2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $red in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $green in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $blue in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $warmWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $colorTemp in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $red in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $green in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $blue in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $warmWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $coldWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.04 06:54:55 1: PERL WARNING: Use of uninitialized value $coldWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.


Ich habe 4 von diesen Controllern laufen, und alles funktioniert seit langer Zeit auch recht gut.

Trotzdem würde mich mal interessieren warum diese Warnungen auftretet und ob ich da helfen kann.

Außerdem noch eine Frage zur Firmwareversion:
Ich steige nicht so richtig durch. Ist das auf dem Foto der Aktuelle Stand den man haben kann ???
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

vbs

#1326
Also die Warnings können eigentlich nur auftreten, wenn du einen Raw-Befehl ausführst. Kannst du sagen, welchen Befehl/e du benutzt? Ist vermutlich eine schlechte Parameterbehandlung im Code, die ich dann gern korrigiere.

Ja vbs35 ist die aktuellste.

EDIT:
Ach, ich glaube, ich seh schon und ich kann es auch selbst reproduzieren, danke.

Skusi

Also, ja ich verwende auch RAW Befehle, aber zu dem Zeitpunkt der Logeinträge waren das sicher keine.
Ich kann nicht genau nachvolziehen welcher Controller zu der Zeit bedient wurde.

Hier mal ein paar Zeilen die ich in verschiedensten DOIF´s an die Controller schicke:

set LED_Schlafzimmer dim 20 600
set LED_Schlafzimmer off

(set LED_Ankleide hsv 0,100,1 5),
(set LED_Ankleide hsv 40,100,100 600 q),
(set LED_Ankleide hsv 80,100,100 1800 q))

((set LED_Kueche hsv 40,100,{(100 - ([LUX] * 10))} 10))

(set LED_Kino raw 1023,652,0,1023,1023 10),
(set LED_Kino raw 1023,299,0,, 600 q)

((set LED_Kino raw ,,,,1023 4),
(set LED_Kino raw ,,,200, 4 q),
(set LED_Kino raw 1023,652,0,, 4 q)


Aus den verschiedenen DOIF´s in loser Folge kopiert.

Vielleicht hilfts...
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

vbs

Zitat von: Skusi am 05 Januar 2023, 14:50:45
Also, ja ich verwende auch RAW Befehle, aber zu dem Zeitpunkt der Logeinträge waren das sicher keine.
Hm, bisschen komisch dann... also laut Code passiert das nur bei einem Raw-Set-Befehl...

Aber probier mal die Version im Anhang. Ansonsten hab ich erstmal keine Idee...

Skusi

Ok, Danke.

Hab das Modul ausgetauscht und per reload aktiviert.

Im Log gabs dann das:

2023.01.06 15:26:36 1: PERL WARNING: Prototype mismatch: sub main::encode_json ($;$) vs ($) at /usr/share/perl/5.28/Exporter.pm line 66.
2023.01.06 15:26:36 1: PERL WARNING: Prototype mismatch: sub main::decode_json ($;$$) vs ($) at /usr/share/perl/5.28/Exporter.pm line 66.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Initialize redefined at ./FHEM/32_EspLedController.pm line 23.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Connect redefined at ./FHEM/32_EspLedController.pm line 42.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Define redefined at ./FHEM/32_EspLedController.pm line 47.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Undef redefined at ./FHEM/32_EspLedController.pm line 79.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_OnInit redefined at ./FHEM/32_EspLedController.pm line 86.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_OnConnect redefined at ./FHEM/32_EspLedController.pm line 99.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_RemoveTimerCheck redefined at ./FHEM/32_EspLedController.pm line 107.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_QueueIntervalUpdate redefined at ./FHEM/32_EspLedController.pm line 112.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Check redefined at ./FHEM/32_EspLedController.pm line 122.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_CheckConnection redefined at ./FHEM/32_EspLedController.pm line 132.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Ready redefined at ./FHEM/32_EspLedController.pm line 155.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Read redefined at ./FHEM/32_EspLedController.pm line 166.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseMsg redefined at ./FHEM/32_EspLedController.pm line 242.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Get redefined at ./FHEM/32_EspLedController.pm line 275.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ColorRangeCheck redefined at ./FHEM/32_EspLedController.pm line 298.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Set redefined at ./FHEM/32_EspLedController.pm line 317.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SendConfig redefined at ./FHEM/32_EspLedController.pm line 608.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SendSystemCommand redefined at ./FHEM/32_EspLedController.pm line 650.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Cleanup redefined at ./FHEM/32_EspLedController.pm line 664.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_GetConfig redefined at ./FHEM/32_EspLedController.pm line 670.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SetChannelCommand redefined at ./FHEM/32_EspLedController.pm line 678.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Attr redefined at ./FHEM/32_EspLedController.pm line 697.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_Notify redefined at ./FHEM/32_EspLedController.pm line 720.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_GetInfo redefined at ./FHEM/32_EspLedController.pm line 727.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_IterateConfigHash redefined at ./FHEM/32_EspLedController.pm line 738.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseConfig redefined at ./FHEM/32_EspLedController.pm line 751.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseInfo redefined at ./FHEM/32_EspLedController.pm line 784.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_FwUpdate_GetVersion redefined at ./FHEM/32_EspLedController.pm line 834.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_QueueFwUpdateProgressCheck redefined at ./FHEM/32_EspLedController.pm line 853.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_FwUpdateProgressCheck redefined at ./FHEM/32_EspLedController.pm line 868.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseFwVersionResult redefined at ./FHEM/32_EspLedController.pm line 876.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseFwUpdateProgress redefined at ./FHEM/32_EspLedController.pm line 927.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_GetHttpParams redefined at ./FHEM/32_EspLedController.pm line 978.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_GetCurrentColor redefined at ./FHEM/32_EspLedController.pm line 993.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseColor redefined at ./FHEM/32_EspLedController.pm line 1004.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_fixHueCircular redefined at ./FHEM/32_EspLedController.pm line 1029.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_GetQueuePolicyFlags redefined at ./FHEM/32_EspLedController.pm line 1039.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SetHSVColor_Slaves redefined at ./FHEM/32_EspLedController.pm line 1047.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_EncodeJson redefined at ./FHEM/32_EspLedController.pm line 1085.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SetHSVColor redefined at ./FHEM/32_EspLedController.pm line 1096.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_UpdateReadingsHsv redefined at ./FHEM/32_EspLedController.pm line 1156.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_UpdateReadingsRaw redefined at ./FHEM/32_EspLedController.pm line 1184.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_SetRAWColor redefined at ./FHEM/32_EspLedController.pm line 1198.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ParseBoolResult redefined at ./FHEM/32_EspLedController.pm line 1227.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_addCall redefined at ./FHEM/32_EspLedController.pm line 1257.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_doCall redefined at ./FHEM/32_EspLedController.pm line 1281.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_callback redefined at ./FHEM/32_EspLedController.pm line 1299.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_RGB2HSV redefined at ./FHEM/32_EspLedController.pm line 1329.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_HSV2RGB redefined at ./FHEM/32_EspLedController.pm line 1365.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_ArgsHelper redefined at ./FHEM/32_EspLedController.pm line 1406.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_isNumeric redefined at ./FHEM/32_EspLedController.pm line 1451.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_isNumericRelative redefined at ./FHEM/32_EspLedController.pm line 1455.
2023.01.06 15:26:36 1: PERL WARNING: Subroutine EspLedController_rangeCheck redefined at ./FHEM/32_EspLedController.pm line 1459.


Ich denke das hat mir dem Reload zutun und ist normal.

Dabei ist mir noch folgendes im Log aufgefallen:

2023.01.05 18:52:08 1: PERL WARNING: Use of uninitialized value $colorTemp in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 18:52:08 1: PERL WARNING: Use of uninitialized value $warmWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 18:52:08 1: PERL WARNING: Use of uninitialized value $coldWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 18:52:08 1: PERL WARNING: Use of uninitialized value $warmWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.05 18:52:08 1: PERL WARNING: Use of uninitialized value $coldWhite in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.05 18:52:08 1: PERL WARNING: Argument "Unknown argument brightness, choose one of " isn't numeric in numeric lt (<) at FHEM/Color.pm line 508.
2023.01.05 18:54:16 2: set_BA_Kino: set Gigablue_Kino on: wake-up command sent to MAC 00:00:de:ad:be:ef
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $red in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $green in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $blue in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1206.
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $red in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $green in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.
2023.01.05 19:10:18 1: PERL WARNING: Use of uninitialized value $blue in concatenation (.) or string at ./FHEM/32_EspLedController.pm line 1232.


Das gab es wohl gestern als ich mein Heimkino benutzt habe. Funktionierte aber alles einwandfrei. Nur zur weiteren Info...

Gruß Skusi
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

vbs

Das ist ja immer noch die gleiche Codezeile in der Warning. Bist du sicher, dass du das Modul korrekt neu geladen hast ("reload 32_EspLedController")? Im Zweifel mal FHEM neu starten.

Skusi

Ähh, hast Du gesehen das die beiden Logfile Auszüge zeitlich falsch in meinem Post stehen ?
Also das untere ist vor dem oeren Block gewesen. Also vor dem reload.

Gestern Abend hab ich übrigens die "Kino" Routine wieder benutzt, und heute finde ich nix verwerfliches im Logfile.

Ich beobachte weiter.

Ist denn die Version die ich nun von Dir habe nicht im Update ? Also bei nächstem update per Fhem wieder weg ?
Werden Deine Änderungen eingecheckt ?
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

vbs

Zitat von: Skusi am 07 Januar 2023, 13:40:53
Ähh, hast Du gesehen das die beiden Logfile Auszüge zeitlich falsch in meinem Post stehen ?
Also das untere ist vor dem oeren Block gewesen. Also vor dem reload.
Nein, ich hatte nicht damit gerechnet, dass du den gleichen Fehler nochmal reportest  ;D

Zitat von: Skusi am 07 Januar 2023, 13:40:53
Ist denn die Version die ich nun von Dir habe nicht im Update ? Also bei nächstem update per Fhem wieder weg ?
Werden Deine Änderungen eingecheckt ?
Nein, ist noch nicht im Update. Kommt aber, wenn du sagst, dass es jetzt ok ist. Kannst du bis dahin auf ignore im Update setzen wenn du möchtest.

Skusi

ZitatNein, ist noch nicht im Update. Kommt aber, wenn du sagst, dass es jetzt ok ist. Kannst du bis dahin auf ignore im Update setzen wenn du möchtest.

Kurzes Update: Bis jetzt mit der geänderten Version alles in Ordnung !
RPI3B, SIGNALduino, NanoCul868 (a-culfw), JeeLink Clone (LaCrosse), Firmata  für FB Heizung,Wasser+Gas+Klingel+Lux, Somfy Rolladen, Pollin Steckd.,TX29DTH,ESPEasy an S0 Stromz., MAX Fensterkontakte, IButton, SonOff Tasmota, ESP LED Controler

vbs

Ok, danke für die Rückmeldung. Ist jetzt im Update.