ESP RGBWW Wifi Led Controller - Firmware vbs

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

Vorheriges Thema - Nächstes Thema

Der_Tom

Zitat von: vbs am 31 August 2020, 17:52:55
Denke auch, dass das gut in ein UserReading passt.

hab's mir fast gedacht, trotzdem danke.

gruss thomas

Pythonf

Hey,

Ich beschäftige mich zur Zeit etwas mit MQTT und wollte an dieser Stelle fragen, wie ich den Controller über MQTT an/aus/toggle schalten kann.
Über /home/led1/command {"jsonrpc":"2.0","method":"color","params":{"hsv":{"h":"0.00","s":0.00,"v":0,"ct":2700},"cmd":"fade","t":700}} beispielsweise, kann ich die Farbe ja einfach wechseln, aber wie verhält sich das bei toggle?

Beste Grüße
Fabian

vbs

Verschiedene Ideen, um sowas abzugreifen:
- den Verbose-Mode des Moduls aktivieren. Dann siehst du die JSON-Nachrichten, die das Modul per HTTP an den Controller schickt. Die gleichen Nachrichten kannst du auch per MQTT versenden.
- du aktivierst im Controller den cmdMaster-Modus. Dann schickt der Controller alle Befehle, die er erhält, per MQTT weiter. Wenn du dann per FHEM ein toggle auslöst, wird er z.B. das toggle per MQTT schicken und du kannst es sehen (https://github.com/verybadsoldier/esp_rgbww_firmware/wiki/Device-Synchronization#command-synchronization)

lewej

Hallo Zusammen,

ich benutzt die Controller noch mit dem fhem led controller Modul, würde gerne aber auf MQTT umsteigen. Es gibt ja zahlreiche shelly mqtt templates.
Hat jemand eins für den esp controller?

Gruß und Danke.

gelbwichtel

Hallo, irgendwie hab ich Probleme auf die neuste FW, die im Git beschrieben ist heben. Ich hänge immer noch auf einer Version 0.3.1. Müsste es nicht lt. GIT die 4.3.1-rc1 sein ?

Auszug Logfile beim Update


2020.12.03 20:39:13 1: Downloading https://raw.githubusercontent.com/verybadsoldier/esp_rgbww_fhemmodule/master/controls_espledcontroller.txt
2020.12.03 20:39:13 1: nothing to do...
2020.12.03 20:42:06 3: RGBWohnzimmer: Updating firmware now. Current firmware: vbs35 New firmare: 0.3.1-vbs35
2020.12.03 20:42:07 3: RGBWohnzimmer: EspLedController_ParseFwUpdateProgress. status: 1
...
2020.12.03 20:42:19 3: RGBWohnzimmer: EspLedController_ParseFwUpdateProgress. status: 2
2020.12.03 20:42:19 3: RGBWohnzimmer: EspLedController_ParseFwUpdateProgress - Update successful - Restarting device...


Meine 32_EspLedController.pm ist aktuell.

Als OTA Url ist "https://rgbww.dronezone.de/release/version.json" eingetragen.


info-firmware                     vbs35                    2020-12-03 20:43:34
info-heap_free                   22256                    2020-12-03 20:43:34
info-sming_version             3.5.1                     2020-12-03 20:43:34
info-uptime                        60                         2020-12-03 20:43:34
info-webapp_version           0.3.3-shojo7


Hab ich vielleicht irgendwas in den 85 Thread-Seiten überlesen ?
Oder funktioniert das OTA hier nicht korrekt und ich muss direkt Flashen ?
Falls jemand helfen kann schon mal vielen Dank vorab.

cu
gelbwichtel

vbs

Guck mal im ersten Post direkt unter "Firmware". Da ist die URL für die testing-Variante angegeben.

gelbwichtel

Danke, das war's. Tomaten auf den Augen gehabt, bzw. wahrscheinlich nicht angenommen, dass 3 Jahre nach dem Post das noch immer im Test ist.
Und da man nie genug loben kann: Gute Arbeit von Dir und natürlich vielen Dank an die anderen, die das Projekt ständig erweitern.
cu
cu
gelbwichtel

dmq

#1267
Vielleicht kann jemand helfen - ich war langezeit nicht mehr an meiner EspLedController Installation dran, heute waren aber auf einmal die Farben verstellt und ich merkte, dass die WebApp nicht mehr zugänglich ist. Ich kann über FHEM noch Parameter ändern, ich komme auch an das System mit den Parametern $URL/config? etc., aber eben nicht an die Webapp.

GET /webapp HTTP/1.1
Host: 172.23.21.195
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: de-DE,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1


HTTP/1.1 404 Not Found
Content-Length: 0
Connection: keep-alive
Server: HttpServer/Sming


Ist ggf. die Partition / SPIFFS mit den Webseiten beschädigt?

Ich brauche das Webinterface im Endeffekt gar nicht - ich will nur ein kaltweiß mit dim auf 23 einstellen - dafür bin ich aber scheinbar zu blöd, oder es stimmt etwas nicht.

Welche Einstellungen müsste ich hsv seitig einsetzen?

Ich würde nur ungerne wieder neu flashen :)


vbs

Ach - mach doch mal. Einmal neu flashen sollte helfen  8)
set led fw_update 1

dmq

#1269
Danke.

Das habe ich gestern schon gemacht / machen (normal und testing) wollen. Mit flashen meinte ich esptool ;-)

set TYPE=EspLedController config config-ota-url http://rgbww.dronezone.de/release/version.json


Im Log erscheint nun leider folgendes:

2021.01.06 08:25:41 3: mqtt.light.espled: Updating firmware now. Current firmware: vbs35 New firmare: 0.3.1-vbs35
2021.01.06 08:25:42 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:43 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:44 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:45 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:46 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:47 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:48 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:49 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:50 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:51 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:52 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1
2021.01.06 08:25:53 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 1


durchgehend.

Nach einer Zeit kommt dann:

mqtt.light.espled: EspLedController_ParseFwUpdateProgress error: http://172.23.21.195/update?: empty answer received

und es befindet sich in einer Schleife.

vbs

Kannst sonst noch mal die testing-FW ausprobieren.

Wenn das weiterhin besteht, dann bitte mal ein komplettes Log und Devicelisting.

Das "empty answer" hat möglicherweise mit schlechtem WLAN-Empfang zu tun.

dmq

Habe testing gesetzt.

Pakete gehen raus:

> 185.199.111.153.80: Flags [P.], seq 1:172, ack 1, win 229, options [nop,nop,TS val 259913825 ecr 880356342], length 171: HTTP: GET /testing/version.json HTTP/1.0
0x0000:  4500 00df 0021 4000 3f06 12a3 5de2 a112  E....!@.?...]...
0x0010:  b9c7 6f99 9b34 0050 1d96 f7c2 9a44 6274  ..o..4.P.....Dbt
0x0020:  8018 00e5 d6d7 0000 0101 080a 0f7d f861  .............}.a
0x0030:  3479 2bf6 4745 5420 2f74 6573 7469 6e67  4y+.GET./testing
0x0040:  2f76 6572 7369 6f6e 2e6a 736f 6e20 4854  /version.json.HT
0x0050:  5450 2f31 2e30 0d0a 486f 7374 3a20 7267  TP/1.0..Host:.rg
0x0060:  6277 772e 6472 6f6e 657a 6f6e 652e 6465  bww.dronezone.de
0x0070:  0d0a 4163 6365 7074 2d45 6e63 6f64 696e  ..Accept-Encodin
0x0080:  673a 2067 7a69 702c 6465 666c 6174 650d  g:.gzip,deflate.
0x0090:  0a55 7365 722d 4167 656e 743a 2066 6865  .User-Agent:.fhe
0x00a0:  6d0d 0a41 6363 6570 743a 2061 7070 6c69  m..Accept:.appli
0x00b0:  6361 7469 6f6e 2f6a 736f 6e0d 0a43 6f6e  cation/json..Con
0x00c0:  7465 6e74 2d54 7970 653a 2061 7070 6c69  tent-Type:.appli
0x00d0:  6361 7469 6f6e 2f6a 736f 6e0d 0a0d 0a    cation/json....


Im Log:

2021.01.06 12:14:11 3: mqtt.light.espled: Updating firmware now. Current firmware: vbs35 New firmare: 4.3.1-rc1
2021.01.06 12:14:13 2: mqtt.light.espled: EspLedController_ParseBoolResult error: http://172.23.21.195/update?: empty answer received
2021.01.06 12:14:13 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress. status: 4
2021.01.06 12:14:13 3: mqtt.light.espled: EspLedController_ParseFwUpdateProgress - Update failed!


Das WLAN Signal ist aber in Ordnung.


dmq

Hier das list

Internals:
   DEF        172.23.21.195
   DeviceName 172.23.21.195:9090
   FD         97
   IP         172.23.21.195
   LAST_RECV  1609932746.26542
   NAME       mqtt.light.espled
   NR         234
   NTFY_ORDER 50-mqtt.light.espled
   PARTIAL   
   PORT       9090
   STATE      opened
   STILLDONETIME 0
   TYPE       EspLedController
   OLDREADINGS:
   READINGS:
     2021-01-05 23:45:01   colorMode       hsv
     2021-01-06 12:13:45   config-color-brightness-blue 100
     2021-01-06 12:13:45   config-color-brightness-cw 100
     2021-01-06 12:13:45   config-color-brightness-green 100
     2021-01-06 12:13:45   config-color-brightness-red 100
     2021-01-06 12:13:45   config-color-brightness-ww 100
     2021-01-06 12:13:45   config-color-colortemp-cw 6000
     2021-01-06 12:13:45   config-color-colortemp-ww 2700
     2021-01-06 12:13:45   config-color-hsv-blue 0
     2021-01-06 12:13:45   config-color-hsv-cyan 0
     2021-01-06 12:13:45   config-color-hsv-green 0
     2021-01-06 12:13:45   config-color-hsv-magenta 0
     2021-01-06 12:13:45   config-color-hsv-model 0
     2021-01-06 12:13:45   config-color-hsv-red 0
     2021-01-06 12:13:45   config-color-hsv-yellow 0
     2021-01-06 12:13:45   config-color-outputmode 0
     2021-01-06 12:13:45   config-color-startup_color last
     2021-01-06 12:13:45   config-events-color_interval_ms 500
     2021-01-06 12:13:45   config-events-color_mininterval_ms 500
     2021-01-06 12:13:45   config-events-server_enabled true
     2021-01-06 12:13:45   config-events-transfin_interval_ms 1000
     2021-01-06 12:13:45   config-general-device_name mqtt.light.espled
     2021-01-06 12:13:45   config-general-pin_config 13,12,14,5,4
     2021-01-06 12:13:45   config-network-ap-password
     2021-01-06 12:13:45   config-network-ap-secured
     2021-01-06 12:13:45   config-network-ap-ssid
     2021-01-06 12:13:45   config-network-connection-dhcp true
     2021-01-06 12:13:45   config-network-connection-gateway 0.0.0.0
     2021-01-06 12:13:45   config-network-connection-ip 0.0.0.0
     2021-01-06 12:13:45   config-network-connection-netmask 0.0.0.0
     2021-01-06 12:13:45   config-network-mqtt-enabled false
     2021-01-06 12:13:45   config-network-mqtt-password
     2021-01-06 12:13:45   config-network-mqtt-port 1883
     2021-01-06 12:13:45   config-network-mqtt-server mqtt.local
     2021-01-06 12:13:45   config-network-mqtt-topic_base home/
     2021-01-06 12:13:45   config-network-mqtt-username
     2021-01-06 12:13:45   config-ota-url  http://rgbww.dronezone.de/testing/version.json
     2021-01-06 12:13:45   config-security-api_secured false
     2021-01-06 12:13:45   config-sync-clock_master_enabled false
     2021-01-06 12:13:45   config-sync-clock_master_interval 30
     2021-01-06 12:13:45   config-sync-clock_slave_enabled false
     2021-01-06 12:13:45   config-sync-clock_slave_topic home/led1/clock
     2021-01-06 12:13:45   config-sync-cmd_master_enabled false
     2021-01-06 12:13:45   config-sync-cmd_slave_enabled false
     2021-01-06 12:13:45   config-sync-cmd_slave_topic home/led1/command
     2021-01-06 12:13:45   config-sync-color_master_enabled false
     2021-01-06 12:13:45   config-sync-color_master_interval_ms 0
     2021-01-06 12:13:45   config-sync-color_slave_enabled false
     2021-01-06 12:13:45   config-sync-color_slave_topic home/led1/color
     2021-01-06 08:57:26   ct              2700
     2021-01-06 08:57:26   hsv             221.99,46.04,0
     2021-01-06 08:57:26   hue             221.99
     2021-01-06 08:57:25   info-connection-dhcp true
     2021-01-06 08:57:25   info-connection-gateway 172.23.21.254
     2021-01-06 08:57:25   info-connection-ip_address 172.23.21.195
     2021-01-06 08:57:25   info-connection-mac a020a605f743
     2021-01-06 08:57:25   info-connection-netmask 255.255.255.0
     2021-01-06 08:57:25   info-connection-ssid
     2021-01-06 08:57:25   info-current_rom_slot 1
     2021-01-06 08:57:25   info-deviceid   390979
     2021-01-06 08:57:25   info-event_num_clients 1
     2021-01-06 08:57:25   info-firmware   vbs35
     2021-01-06 08:57:25   info-heap_free  22408
     2021-01-06 08:57:25   info-sming_version 3.5.1
     2021-01-06 08:57:25   info-uptime     0
     2021-01-06 08:57:25   info-webapp_version 0.3.3-shojo7
     2021-01-06 12:14:13   lastFwUpdate    Update failed!
     2021-01-06 08:57:26   pct             0
     2021-01-06 08:57:26   raw_blue        0
     2021-01-06 08:57:26   raw_cw          0
     2021-01-06 08:57:26   raw_green       0
     2021-01-06 08:57:26   raw_red         0
     2021-01-06 08:57:26   raw_ww          0
     2021-01-06 08:57:26   rgb             000000
     2021-01-06 08:57:26   sat             46.04
     2021-01-06 08:57:24   state           opened
     2021-01-06 08:57:26   stateLight      off
     2021-01-06 08:57:26   val             0
   helper:
     fwUpdateForce 1
     isBusy     0
     oldVal     22.97
     cmdQueue:
     lastCall:
       NAME       
       addr       http://172.23.21.195:80
       auth       0
       buf       
       code       200
       compress   1
       conn       
       displayurl http://172.23.21.195/update?
       header     User-Agent: fhem
Accept: application/json
Content-Type: application/json
       host       172.23.21.195
       httpheader HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 12
Connection: keep-alive
Server: HttpServer/Sming
       hu_blocking 0
       hu_filecount 1
       hu_port    80
       hu_portSfx
       loglevel   4
       method     GET
       path       /update?
       protocol   http
       redirects  0
       timeout    30
       url        http://172.23.21.195/update?
       hash:
       sslargs:
Attributes:
   alias      espled
   devStateIcon {Color_devStateIcon(ReadingsVal($name,"rgb","000000"))}
   group      Stripes
   icon       light_light
   room       Licht

dmq

#1273
Was ist nicht verstehe ist, dass ich kein gewöhnliches weiß mehr einstellen kann (RGB, HSV) - sobald ich das mache kommt gar kein Licht. Rot, Blau, Grün funktioniert. Ich hatte das damals im Webinterface auch nur über einen anderen Modus umstellen können. Alles merkwürdig. Zur Not muss ich halt neu per esptool flashen.

edit: die Einstellung auf weißes Licht hat mittlerweile wieder gegriffen.

Thomas03

Hallo Zusammen,

ich probiere einen RGBWWCW-Streifen mit dem Controller so einzurichten, dass beim Einschalten (bei mir 230-V-PowerOn auf dem Netzteil und somit dem Controller) alle Kanäle volle Leistung bringen (also set BA.Licht raw 1023,1023,1023,1023,1023). Manuelles Einstellen geht, aber nach PowerOff / PowerOn ist wieder ein anderer Wert (und somit ein anderes Licht) eingestellt.

Daten:

config-color-startup_color = last
config-ota-url = http://rgbww.dronezone.de/testing/version.json
info-firmware = 4.3.1-rc1
info-sming_version = 4.0.0
info-webapp_version = 0.3.3-shojo7
lastFwUpdate = Update successful - Restarting device...


Version vom FHEM-Modul bringt :
No Id found for 32_EspLedController.pm