supla-device 23.07 ze wsparciem dla "countdown timer"

myszektbg
Posts: 207
Joined: Sat Jun 17, 2023 3:42 pm

Post

:D, 'klew' popracuje nad tym pod koniec tygodnia :D, ale może nasze wypociny w czymś mu pomogą :D
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

Konflikt kanałów to raczej kwestia samego GG.
Nie robicie update i downgrade, bo mimo że timer zostanie to nie będzie działał prawidłowo.
Osobiście nie aktualizowałbym też niczego na esp8266, bo możecie mieć urządzenie które się stale resetuje.
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

Nie potrafię zreprodukować u siebie problemu z niedziałającym przyciskiem.
Co prawda robię to bez GG, ale jak dodaję Relay + Button, to wszystko działa ok.

Sprawdzałem tylko na ESP32, bo z ESP8266 mam teraz jakiś problem, że wcale w Wi-Fi się nie chce połączyć. Natomiast w stanie "bez połączenia z Wi-Fi" - przycisk działa ok.

Także jeśli ktoś mógłby:
1. Sprawdzić to na jakimś ESP8266/ESP32 z wgranym GG z ustawionym Przekaźnik+Przycisk - jeśli nie działa, to zebrać logi
2. Ewentualnie doprecyzować jaki ESP jest tam, gdzie to nie działa. Jaka jest ustawiona funkcja?
Najlepsze suple dla Twojego domu :mrgreen:
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Czy uruchomiłeś chociaż raz timera z aplikacji?
https://gui-generic-builder.supla.io/
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

krycha88 wrote: Mon Jul 17, 2023 6:17 pm Czy uruchomiłeś chociaż raz timera z aplikacji?
Tak
Najlepsze suple dla Twojego domu :mrgreen:
Patryk
Posts: 2944
Joined: Mon Jan 07, 2019 7:51 pm
Location: Rybnik

Post

GG+SP111+SuplaDevice (17.07.2023).

Dalej występuje ten problem z przyciskiem lokalnym.
Prawidłowo działa tylko jeden przypadek.

Jeżeli jest wybrana Akcja "ZAŁĄCZ" to można załączyć przekaźnik z przycisku gniazdka ( zdjęcie poniżej ).

Jeżeli jest wybrana Akcja "WYŁĄCZ" to można tylko załączyć przekaźnik z przycisku gniazdka ;)

Jeżeli jest wybrana Akcja "Przełącz" to można tylko wyłączyć przekaźnik ( jeżeli jest załączony ) z przycisku gniazdka.

Czyli obecnie:
Załącz działa prawidłowo;
Wyłącz działa jak załącz;
Przełącz działa jak wyłącz.
You do not have the required permissions to view the files attached to this post.
local
Posts: 545
Joined: Mon Jan 27, 2020 11:33 am

Post

Wygląda jak by coś było z funkcją przełączania stanu przekaźnika.
Przy ustawionym AT przełączanie działa normalnie.
4xShelly 1, Shelly 1L, 2xShelly 2.5, Sonoff T3, 2xSonoff Basic R2, 4xNeo 16A
Patryk
Posts: 2944
Joined: Mon Jan 07, 2019 7:51 pm
Location: Rybnik

Post

@klew masz może jakieś "przypyszczenia", co może być przyczyną problemów z tym lokalnym przyciskiem ?
SP111 nie umią doczekać się Timer-ów :lol: .
Już im tak niewiele brakuje do pełni szczęścia.
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 135 times
Been thanked: 137 times

Post

Patryk wrote: Tue Jul 18, 2023 2:43 pm @klew masz może jakieś "przypyszczenia", co może być przyczyną problemów z tym lokalnym przyciskiem ?
SP111 nie umią doczekać się Timer-ów :lol: .
Już im tak niewiele brakuje do pełni szczęścia.
Miałem problem z uruchomieniem jakiegokolwiek esp8266 i nie mogłem znaleźć przyczyny.
Moduł po prostu nie łączył się z Wi-Fi.
Ale znalazłem już przyczynę - gdy hostname ustawia się na 31 lub 32 znaki, to przestaje działać wifi (esp8266 na Arduino).
Jutro sprawdzę czy u mnie przyciski działają.

Cały czas też czekam na logi od kogoś kto ma ten problem. Oczywiście nie należy ich zbierać pod napięciem 230 V.
Najlepsze suple dla Twojego domu :mrgreen:
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Code: Select all

Button[0]::setMulticlickTime: 500
Button[0]::setHoldTime: 3000
Button[1]::setMulticlickTime: 800
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 5 0 24 0 24 0 ]
Section type: 3; size: 5
CRC1 36, CRC2 36, CRC calc 36
Config storage not configured
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 4; Read: [0 0 0 0 ]
readStorage: 1; Read: [0 ]
Relay[0]: restored relay state: OFF
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Pin 0, pullUp 1, invertLogic 1, state 1
Channel[1] setting func list: 1024
Channel[1] setting func list: 3072
Channel[1] setting func list: 7168
Channel[1] setting func list: 15360
Channel[1] setting func list: 31744
Channel[1] setting func list: 64512
Pin 0, pullUp 1, invertLogic 1, state 1
Device name: GUI Generic
Device software version: GG v7.2.0
Initializing network layer
Network AP/hostname: GUI-GENERIC-C8C9A35C79A4
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "Gargulec"
Connected BSSID: F8:1A:67:2E:FE:3D
local IP: 192.168.1.179
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -64 dBm
Establishing NOT encrypted connection with: svr19.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Send: [53 55 50 4C 41 10 01 00 00 00 45 00 00 00 7A 02 00 00 6B 72 79 73 74 69 61 6E 2E 66 72 61 6E 69 65 63 7A 65 6B 40 67 6D 61 69 6C 2E 63 6F 6D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FC 23 EF 3F 4C 34 96 98 48 CF 1D 23 C8 F4 64 0E 61 6A D3 72 C1 2B B9 9E FC 6B 89 4E 96 86 C7 2A 47 55 49 20 47 65 6E 65 72 69 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 01 00 00 00 46 00 00 00 07 00 00 00 03 00 00 00 78 14 01 53 55 50 4C 41 ]
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Send: [53 55 50 4C 41 10 02 00 00 00 D2 00 00 00 01 00 00 00 1E ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 03 00 00 00 A8 02 00 00 06 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 04 00 00 00 A8 02 00 00 06 00 00 00 01 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 02 00 00 00 DC 00 00 00 03 00 00 00 1E 0A F0 53 55 50 4C 41 ]
Activity timeout set to 30 s
Recv: [53 55 50 4C 41 10 03 00 00 00 B2 02 00 00 08 00 00 00 00 82 00 00 00 00 00 00 53 55 50 4C 41 53 55 50 4C 41 10 04 00 00 00 B2 02 00 00 0C 00 00 00 01 BC 02 00 00 00 04 00 00 00 00 00 53 55 50 4C 41 ]
Relay::handleChannelConfig, func 130, configtype 0, configsize 0
AT[1] received config with active actions: 0x0
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Recv: [53 55 50 4C 41 10 05 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn ON (duration 0 ms)
 **** Digital write[0], gpio: 2; value 0
Channel(0) value changed to 1
Send: [53 55 50 4C 41 10 05 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 06 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Wrote 1 bytes to storage at 19
Wrote 7 bytes to storage at 8
Commit
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Channel(0) value changed to 0
Send: [53 55 50 4C 41 10 07 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Wrote 1 bytes to storage at 19
Wrote 7 bytes to storage at 8
Commit
Recv: [53 55 50 4C 41 10 06 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn ON (duration 0 ms)
 **** Digital write[0], gpio: 2; value 0
Channel(0) value changed to 1
Send: [53 55 50 4C 41 10 08 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 09 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Channel(0) value changed to 0
Send: [53 55 50 4C 41 10 0A 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Recv: [53 55 50 4C 41 10 07 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Send: [53 55 50 4C 41 10 0B 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Recv: [53 55 50 4C 41 10 08 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn ON (duration 0 ms)
 **** Digital write[0], gpio: 2; value 0
Channel(0) value changed to 1
Send: [53 55 50 4C 41 10 0C 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 0D 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Channel(0) value changed to 0
Send: [53 55 50 4C 41 10 0E 00 00 00 67 00 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Recv: [53 55 50 4C 41 10 09 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Send: [53 55 50 4C 41 10 0F 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Recv: [53 55 50 4C 41 10 0A 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Send: [53 55 50 4C 41 10 10 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 0B 00 00 00 6E 00 00 00 11 00 00 00 6C 18 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Send: [53 55 50 4C 41 10 11 00 00 00 78 00 00 00 06 00 00 00 00 6C 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Relay[0] turn OFF (duration 0 ms)
 **** Digital write[0], gpio: 2; value 1
Send: [53 55 50 4C 41 10 12 00 00 00 28 00 00 00 10 00 00 00 45 00 00 00 00 00 00 00 4E F7 0D 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 0C 00 00 00 32 00 00 00 10 00 00 00 E3 E3 B6 64 00 00 00 00 9D 4C 0B 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 13 00 00 00 28 00 00 00 10 00 00 00 5E 00 00 00 00 00 00 00 00 1E 0E 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 0D 00 00 00 32 00 00 00 10 00 00 00 FC E3 B6 64 00 00 00 00 8B 27 0C 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 14 00 00 00 28 00 00 00 10 00 00 00 77 00 00 00 00 00 00 00 03 5C 0E 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 0E 00 00 00 32 00 00 00 10 00 00 00 15 E4 B6 64 00 00 00 00 52 70 0C 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 10 15 00 00 00 28 00 00 00 10 00 00 00 90 00 00 00 00 00 00 00 FE 7F 0E 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 10 0F 00 00 00 32 00 00 00 10 00 00 00 2E E4 B6 64 00 00 00 00 89 8F 0C 00 00 00 00 00 53 55 50 4C 41 ]
Wgrałem wszystko ponownie i wszystko działało poprawnie. Ale jak zmieniłem Event dla przycisku to po restarcie urządzenia problem powrócił i z guzika można tylko wyłączać przekaźnik.
https://gui-generic-builder.supla.io/

Return to “supla-dev”