Obsługa RGBW

jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

Witam,
ostatnio napotkałem dwa problemy związane z obsługą RGBW w GUI Genericu.
1. Jeśli moduł nie jest zarejestrowany w Supli, to - w przypadku taśmy RGBW - LED-y zapalają się na kolor biały. Po 3 sekundach od wyłączenia LED-ów przyciskiem, taśma sama się włącza. Po próbie zmiany jasności świecenia lampek (poprzez przytrzymanie przypisanego przycisku), LED-y się wyłączają, a po upływie 3 sekund włączają. Po zarejestrowaniu modułu opisane sytuacje nie występują.
Poniżej kopia wiadomości, jakie moduł wysyła po serialu:

Code: Select all

Channel(0) value changed to RGB(0, 255, 0), colBr(0), bright(0)		<-- kliknięcie przycisku
▒@*r▒▒P▒▒▒K▒t▒dr▒-@▒▒.▒Ѫ▒Ko8a ▒▒*▒T▒▒▒▒▒▒P▒/▒▒▒*▒▒▒▒nzAn )▒m~▒rZ!▒(P▒+t׬X@j|▒▒▒▒*▒▒▒r▒(▒8x▒vA,r▒8r▒(▒ڢ▒,▒▒lP /Ѣ▒[SETUP] WAIT 4...
                                                                                                                                 [SETUP] WAIT 3...
                                                                                                                                                  [SETUP] WAIT 2...
                                                                                                                                                                   [SETUP] WAIT 1...
                                                                                                                                                                                    File system (SPIFFS):
 Total KB: 51.72 KB
 Used KB: 3.68 KB
Size file: 3433
Size conf: 3433
Config read
Key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Key: 1 Value: y▒:▒]▒hr▒▒▒
Key: 2 Value:
Key: 3 Value:
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: GUI Generic
Key: 7 Value: svrX.supla.org
Key: 8 Value: [email protected]
Key: 9 Value:
Key: 10 Value: 1
Key: 11 Value:
Key: 12 Value:
Key: 13 Value:
Key: 14 Value:
Key: 15 Value:
Key: 16 Value:
Key: 17 Value:
Key: 18 Value:
Key: 19 Value:
Key: 20 Value:
Key: 21 Value:
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Key: 25 Value:
Key: 26 Value:
Key: 27 Value:
Key: 28 Value:
Key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 39 Value:
Key: 40 Value:
Key: 41 Value:
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value: 1
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value:
Key: 50 Value:
Key: 51 Value:
Key: 52 Value:
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value:
Key: 59 Value: 1
Key: 60 Value: 0
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value:
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Save key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Save key: 1 Value: y▒:▒]▒hr▒▒▒
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 10 Value: 1
Save key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Save key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 45 Value: 1
Save key: 59 Value: 1
Save key: 60 Value: 0
Config Mode started
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 7 0 0 0 0 0 ]
Section type: 3; size: 7
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [FF ]
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
Initializing network layer
WiFi: establishing connection with SSID: ""
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
AP started IP: 192.168.4.1
Current status: [8] No connection to network
Channel(0) value changed to RGB(0, 255, 0), colBr(5), bright(5)
Wrote 1 bytes to storage at 18
Wrote 1 bytes to storage at 19
Wrote 1 bytes to storage at 20
Wrote 1 bytes to storage at 21
Commit
Channel(0) value changed to RGB(0, 255, 0), colBr(65), bright(65)		<-- przytrzymanie przycisku
▒@*r▒▒P▒▒▒K▒t▒dr▒-@▒▒.▒Ѫ▒Ko8a ▒▒*▒T▒▒▒▒▒▒P▒/▒▒▒*▒▒▒▒nzAn )▒m~▒rZ!▒(P▒+t׬X@j|▒▒▒▒*▒▒▒r▒(▒8x▒vA,r▒8r▒(▒ڢ▒,▒▒lP /Ѣ▒[SETUP] WAIT 4...
                                                                                                                                 [SETUP] WAIT 3...
                                                                                                                                                  [SETUP] WAIT 2...
                                                                                                                                                                   [SETUP] WAIT 1...
                                                                                                                                                                                    File system (SPIFFS):
 Total KB: 51.72 KB
 Used KB: 3.68 KB
Size file: 3433
Size conf: 3433
Config read
Key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Key: 1 Value: y▒:▒]▒hr▒▒▒
Key: 2 Value:
Key: 3 Value:
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: GUI Generic
Key: 7 Value: svrX.supla.org
Key: 8 Value: [email protected]
Key: 9 Value:
Key: 10 Value: 1
Key: 11 Value:
Key: 12 Value:
Key: 13 Value:
Key: 14 Value:
Key: 15 Value:
Key: 16 Value:
Key: 17 Value:
Key: 18 Value:
Key: 19 Value:
Key: 20 Value:
Key: 21 Value:
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Key: 25 Value:
Key: 26 Value:
Key: 27 Value:
Key: 28 Value:
Key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 39 Value:
Key: 40 Value:
Key: 41 Value:
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value: 1
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value:
Key: 50 Value:
Key: 51 Value:
Key: 52 Value:
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value:
Key: 59 Value: 1
Key: 60 Value: 0
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value:
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Save key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Save key: 1 Value: y▒:▒]▒hr▒▒▒
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 10 Value: 1
Save key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Save key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 45 Value: 1
Save key: 59 Value: 1
Save key: 60 Value: 0
Config Mode started
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 7 0 0 0 0 0 ]
Section type: 3; size: 7
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [FF ]
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
Initializing network layer
WiFi: establishing connection with SSID: ""
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
AP started IP: 192.168.4.1
Current status: [8] No connection to network
Channel(0) value changed to RGB(0, 255, 0), colBr(35), bright(35)
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Druga sprawa to włączanie lampki przyciskiem. Załącza on zarówno LED-y kolorowe jak i białe, co nie wygląda estetycznie.

Czy byłaby możliwość wyboru czy przycisk ma włączać LED-y kolorowe zgodnie z ich ostatnim stanem czy LED-y białe?
Pozdrawiam
Jakub
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

A jak nie ustawisz przycisku to też tak masz? Jeżeli wtedy będzie dobrze to zmień ustawienia przycisku na odwrotne.
https://gui-generic-builder.supla.io/
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

krycha88 wrote: Wed Dec 22, 2021 7:39 pm A jak nie ustawisz przycisku to też tak masz? Jeżeli wtedy będzie dobrze to zmień ustawienia przycisku na odwrotne.
Jeśli nie ustawię przycisku, to problem się nie pojawia. Zgodnie z opisem powyżej problem zaczyna się pojawiać, gdy chcę wykonać jakąś akcję przyciskiem w module niezarejestrowanym w Cloudzie - po rejestracji wszystko działa bardzo dobrze. W związku z tym odwrócenie działania przycisku na odwrotne nie rozwiązuje problemu.

Większym problemem jest zmiana stanu zarówno LED-ów białych jak i kolorowych przez przycisk.
Pozdrawiam
Jakub
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

jaku2k wrote: Wed Dec 22, 2021 8:43 pm
krycha88 wrote: Wed Dec 22, 2021 7:39 pm A jak nie ustawisz przycisku to też tak masz? Jeżeli wtedy będzie dobrze to zmień ustawienia przycisku na odwrotne.
Jeśli nie ustawię przycisku, to problem się nie pojawia. Zgodnie z opisem powyżej problem zaczyna się pojawiać, gdy chcę wykonać jakąś akcję przyciskiem w module niezarejestrowanym w Cloudzie - po rejestracji wszystko działa bardzo dobrze. W związku z tym odwrócenie działania przycisku na odwrotne nie rozwiązuje problemu.

Większym problemem jest zmiana stanu zarówno LED-ów białych jak i kolorowych przez przycisk.
Nie próbowałem jeszcze tego powtórzyć ale czy to jest jakiś problem? Bo przeważnie moduł jest zarejestrowany.
https://gui-generic-builder.supla.io/
jaku2k
Posts: 920
Joined: Sun May 24, 2020 8:40 pm
Has thanked: 1 time

Post

krycha88 wrote: Thu Dec 23, 2021 7:58 pm
jaku2k wrote: Wed Dec 22, 2021 8:43 pm
krycha88 wrote: Wed Dec 22, 2021 7:39 pm A jak nie ustawisz przycisku to też tak masz? Jeżeli wtedy będzie dobrze to zmień ustawienia przycisku na odwrotne.
Jeśli nie ustawię przycisku, to problem się nie pojawia. Zgodnie z opisem powyżej problem zaczyna się pojawiać, gdy chcę wykonać jakąś akcję przyciskiem w module niezarejestrowanym w Cloudzie - po rejestracji wszystko działa bardzo dobrze. W związku z tym odwrócenie działania przycisku na odwrotne nie rozwiązuje problemu.

Większym problemem jest zmiana stanu zarówno LED-ów białych jak i kolorowych przez przycisk.
Nie próbowałem jeszcze tego powtórzyć ale czy to jest jakiś problem? Bo przeważnie moduł jest zarejestrowany.
To pierwsze nie jest wcale dużym problemem (choć może przerażać zaraz po uruchomieniu urządzenia :lol: ).

Natomiast to drugie:
Większym problemem jest zmiana stanu zarówno LED-ów białych jak i kolorowych przez przycisk.
jest zdecydowanie bardziej uciążliwe.
Pozdrawiam
Jakub
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Prawdopodobnie taki efekt można uzyskać tylko w trybie konfiguracyjnym. Przycisk konfiguracyjny masz ustawiony na 10 wciśnięć?
https://gui-generic-builder.supla.io/

Return to “GUI Generic”