Dyskusja ogólna [bramka Zigbee]

Moderator: vajera

User avatar
vajera
Posts: 7290
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 289 times
Been thanked: 161 times

Post

@LukiSpajder Wielkie dzięki za logi. Część bindingów zwraca kod błędu 0x8C = TX_BUSY czyli urządzenie końcowe nie wyrabia z transmisją - postaram się to obejść.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
endrju_88
Posts: 448
Joined: Tue Apr 25, 2023 1:02 pm
Has thanked: 3 times
Been thanked: 4 times

Post

endrju_88 wrote: Sun Jan 19, 2025 12:09 pm
Zibi_007 wrote: Sun Jan 19, 2025 10:36 am
endrju_88 wrote: Sun Jan 19, 2025 9:51 am Witam
Mam pytanie , jak to jest możliwe ,że w pierwszej wersji pliku .bin z webinterface od @Zibi_007 dodałem czujnik temp & wilg. i działał jak należy ,problem był z czujnikami okiennymi (kontaktrony), ,że nie reagowały na zmianę stanu , to teraz wgrałem najnowszego .bina i kontaktrony dodają się perfekcyjnie i działają a czujnik ten sam temp&wilg nie chcę mi się dodać do Clouda Supli. Wyłączałem moduł ,resetowałem i nadal nie chce. Widać ,że czujnik reaguje w trakcie parowania z bramką , bo dioda dość szybko przestaje migać ,czyli ESP32 C6 go wyłapuje.
Drugie pytanko odnośnie skanera. Wgrałem plik .bin do modułu , po tym wprowadzam kontaktrony lub czujnik temp w tryb parowania ,diody migają cały czas tak jakby nie chciały się sparować z modułem. Na serialu w Arduino mam tylko coś takiego . Co robię źle ?

Code: Select all

10:27:19.342 -> ESP-ROM:esp32c6-20220919
10:27:19.342 -> Build:Sep 19 2022
10:27:19.342 -> rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
10:27:19.342 -> Saved PC:0x4001975a
10:27:19.342 -> SPIWP:0xee
10:27:19.342 -> mode:DIO, clock div:2
10:27:19.342 -> load:0x4086c410,len:0xcf8
10:27:19.342 -> load:0x4086e610,len:0x2e30
10:27:19.342 -> load:0x40875728,len:0x113c
10:27:19.342 -> entry 0x4086c410
10:27:19.623 -> [   304][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42006eca
10:27:19.623 -> [   316][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42006e8e
10:27:19.670 -> [   327][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42006e52
10:27:19.670 -> [   338][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42006e16
10:27:19.670 -> [   350][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42006eca
10:27:19.670 -> [   361][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42006e8e
10:27:19.716 -> [   372][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42006e52
10:27:19.716 -> [   384][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42006e16
10:27:19.716 -> [   395][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420036c8
10:27:19.716 -> [   406][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420036c8
10:27:19.763 -> [   418][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
10:27:19.763 -> [   427][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080e554
10:27:19.763 -> [   438][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080e554
10:27:19.763 -> [   449][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40810588
10:27:19.763 -> [   460][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40810588
10:27:25.107 -> ESP-ROM:esp32c6-20220919
10:27:25.107 -> Build:Sep 19 2022
10:27:25.107 -> rst:0xc (SW_CPU),boot:0xc (SPI_FAST_FLASH_BOOT)
10:27:25.107 -> Saved PC:0x4001975a
10:27:25.107 -> SPIWP:0xee
10:27:25.107 -> mode:DIO, clock div:2
10:27:25.107 -> load:0x4086c410,len:0xcf8
10:27:25.107 -> load:0x4086e610,len:0x2e30
10:27:25.107 -> load:0x40875728,len:0x113c
10:27:25.107 -> entry 0x4086c410
10:27:25.388 -> [   304][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42006eca
10:27:25.435 -> [   316][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42006e8e
10:27:25.435 -> [   327][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42006e52
10:27:25.435 -> [   338][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42006e16
10:27:25.435 -> [   350][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x42006eca
10:27:25.482 -> [   361][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x42006e8e
10:27:25.482 -> [   372][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x42006e52
10:27:25.482 -> [   384][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x42006e16
10:27:25.482 -> [   395][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DM (38) successfully set to 0x420036c8
10:27:25.482 -> [   406][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type USB_DP (39) successfully set to 0x420036c8
10:27:25.529 -> [   418][V][ZigbeeEP.cpp:21] ZigbeeEP(): Endpoint: 1
10:27:25.529 -> [   427][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 17 successfully set to type UART_RX (2) with bus 0x4080e554
10:27:25.529 -> [   438][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 16 successfully set to type UART_TX (3) with bus 0x4080e554
10:27:25.529 -> [   449][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 12 successfully set to type USB_DM (38) with bus 0x40810588
10:27:25.576 -> [   460][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 13 successfully set to type USB_DP (39) with bus 0x40810588
Przełącz się na USB i skanuj na nim. Obstawiam, że podłączyłeś pod UART,
Miałeś rację @Zibi_007 , przełączyłem na USB i w końcu skanuje :) . Dzięki Tego czujnika temp&wilg. nadal nie dodaje do Clouda , może trzeba dodać go ? Poniżej numery czujnika wyciągnięte z seriala:
czujnik temp&wilg.
TZ3000_v1w2k9dd : TS0201

kontaktron:
TZ3000_0hkmcrza : TS0203
Cześć Wam

Wgrałem najnowszego .bina od @Zibi_007 i nadal nie mogę dodać czujnika temp&wilg. do clouda. Niby jest dodany do listy czujników. Zastanawia mnie dlaczego wyrzuca taki komunikat na serialu.
( Unknown model _TZ3000_v1w2k9dd::TS0201, no binding is possible ) Logi z skanera od tego czujnika :

Code: Select all

15:42:12.885 -> [ 35956][V][ZigbeeCore.cpp:303] esp_zb_app_signal_handler(): Device capabilities: 0x80
15:42:13.401 -> [ 36461][I][ZigbeeGateway.cpp:86] find_Cb(): Found sensor
15:42:13.401 -> [ 36461][D][ZigbeeGateway.cpp:95] find_Cb(): Sensor found: short address(0x10e7), endpoint(1)
15:42:13.401 -> [ 36479][I][ZigbeeGateway.cpp:158] printJoinedDevices(): joined devices:
15:42:13.401 -> [ 36480][I][ZigbeeGateway.cpp:161] printJoinedDevices(): Device on endpoint 1, short address: 0x10e7
15:42:13.401 -> [ 36480][D][Zigbee_Gateway_2.ino:161] loop(): getJoinedDEvices 1 0 357913941 before
15:42:13.401 -> [ 36481][D][Zigbee_Gateway_2.ino:164] loop(): getJoinedDEvices 1 0 357913941 after
15:42:13.401 -> [ 36481][I][ZigbeeGateway.cpp:158] printJoinedDevices(): joined devices:
15:42:13.917 -> [ 36963][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
15:42:13.917 -> [ 36964][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x0)
15:42:13.917 -> [ 36964][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x4), type(0x42), value(16)
15:42:13.917 -> [ 36965][I][ZigbeeEP.cpp:223] zbReadBasicCluster(): Peer Manufacturer is "_TZ3000_v1w2k9dd"
15:42:13.917 -> [ 36482][I][Zigbee_Gateway_2.ino:167] loop(): manufacturer _TZ3000_v1w2k9dd 
15:42:14.385 -> [ 37475][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x1000) callback
15:42:14.385 -> [ 37475][V][ZigbeeHandlers.cpp:87] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x0)
15:42:14.385 -> [ 37476][V][ZigbeeHandlers.cpp:96] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x5), type(0x42), value(6)
15:42:14.432 -> [ 37477][I][ZigbeeEP.cpp:232] zbReadBasicCluster(): Peer Model is "TS0201"
15:42:14.432 -> [ 37479][I][Zigbee_Gateway_2.ino:169] loop(): model TS0201 
15:42:14.432 -> [ 37479][D][Zigbee_Gateway_2.ino:180] loop(): Unknown model TS0201, no binding is possible
15:42:14.901 -> [ 37969][V][ZigbeeCore.cpp:340] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Authorized (0x2f), status: ESP_OK
15:42:15.463 -> [ 38535][I][ZigbeeCore.cpp:327] esp_zb_app_signal_handler(): Network(0x514e) is open for 180 seconds
15:42:16.120 -> [ 39185][I][ZigbeeGateway.cpp:149] printGatewayDevices(): gateway devices:
15:42:16.120 -> [ 39186][I][ZigbeeGateway.cpp:158] printJoinedDevices(): joined devices:
15:42:20.573 -> [ 43660][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
15:42:20.573 -> [ 43661][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x402)
15:42:20.573 -> [ 43661][I][ZigbeeGateway.cpp:169] zbAttributeRead(): cluster_id 1026 
15:42:20.573 -> [ 43662][I][ZigbeeGateway.cpp:170] zbAttributeRead(): attribute->id 0 
15:42:21.135 -> [ 44180][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
15:42:21.135 -> [ 44180][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x405)
15:42:21.135 -> [ 44181][I][ZigbeeGateway.cpp:169] zbAttributeRead(): cluster_id 1029 
15:42:21.135 -> [ 44181][I][ZigbeeGateway.cpp:170] zbAttributeRead(): attribute->id 0 
15:42:21.135 -> [ 44200][I][ZigbeeGateway.cpp:149] printGatewayDevices(): gateway devices:
15:42:21.135 -> [ 44201][I][ZigbeeGateway.cpp:158] printJoinedDevices(): joined devices:
15:42:21.604 -> [ 44687][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
15:42:21.604 -> [ 44688][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x1)
15:42:21.604 -> [ 44688][I][ZigbeeGateway.cpp:169] zbAttributeRead(): cluster_id 1 
15:42:21.604 -> [ 44689][I][ZigbeeGateway.cpp:170] zbAttributeRead(): attribute->id 32 
15:42:22.120 -> [ 45195][I][ZigbeeHandlers.cpp:20] zb_action_handler(): Receive Zigbee action(0x2000) callback
15:42:22.120 -> [ 45196][V][ZigbeeHandlers.cpp:67] zb_attribute_reporting_handler(): Received report from address(0x10e7) src endpoint(1) to dst endpoint(1) cluster(0x1)
15:42:22.120 -> [ 45197][I][ZigbeeGateway.cpp:169] zbAttributeRead(): cluster_id 1 
15:42:22.120 -> [ 45197][I][ZigbeeGateway.cpp:170] zbAttributeRead(): attribute->id 33 
LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

Nie wiem czy to ważne na tym etapie prac . Ale jeśli dodamy czujniki np. zalania to dział prawidłowo . Ale po restarcie bramki ustawia się jako załączony - w przyszłości może to powodować wysyłanie powiadomień ze względu na stan po restarcie bramki .
Może by się dało żeby pamiętał ostatni stany czy czytał stan po restarcie - głośno myślę 😁
You do not have the required permissions to view the files attached to this post.
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

LukiSpajder wrote: Mon Jan 20, 2025 4:20 pm Nie wiem czy to ważne na tym etapie prac . Ale jeśli dodamy czujniki np. zalania to dział prawidłowo . Ale po restarcie bramki ustawia się jako załączony - w przyszłości może to powodować wysyłanie powiadomień ze względu na stan po restarcie bramki .
Może by się dało żeby pamiętał ostatni stany czy czytał stan po restarcie - głośno myślę 😁
Wiem, że tak jest. Tymczasowe obejście, to "odwrócona logika". I tak jeszcze nie mamy czujników zalania, ruchu itp. dodanych do Supli. Czekamy na zakończenie etapu prac dodawania tego, co mamy i będzie się to zgłaszać w Issue.
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036
andras
Posts: 636
Joined: Fri Dec 30, 2016 5:51 pm
Has thanked: 2 times
Been thanked: 4 times

Post

vajera wrote: Mon Jan 20, 2025 11:17 am Uaktualniłem kod (20.01.2025, 12:08):

1. zmieniłem mechanizm bindingu w oparciu o semafor - teraz z bindingiem kolejnego klastra czekamy na zakończenie poprzedniego.
Zauważyłem, że wcześniej mój czujnik temperatury i wilgotności Tuya generował błąd bindowania na klastrze 0x0405 (wilgotność) teraz wydaje się łączyć. Ten czujnik i tak wysyłał raporty o temperaturze i wilgotności, ale już w przypadku, np. takiego Xiaomi to może mieć znaczenie - czekam na logi z parowania.

2. Dodałem 3 prywatne klastry Tuya (0xE000, 0xE001, 0xEF00) - póki co do profilu ON_OFF (te przyciski 4x i smart buttony) - przydałyby się logi z parowania i naciskania przycisków bo moje dojadą dopiero w przyszłym tygodniu ;)

EDIT: w katalogu bin jest dostępny plik bin z aktualnej kompilacji, ale nie sprawdzałem czy działa.
Chciałbym trochę odciążyć kolegę @Zibi_007 żeby miał więcej czasu na testy bo Jego wsparcie jest kluczowe dla projektu.
Gdzie jest dostępny bin o którym piszesz ?
kris.gie
Posts: 472
Joined: Thu Apr 28, 2016 4:24 pm
Location: Katowice
Has thanked: 1 time

Post

andras wrote: Mon Jan 20, 2025 4:39 pm Gdzie jest dostępny bin o którym piszesz ?
Tutaj:
https://github.com/lsroka76/Z2S_Library
User avatar
wojtas567
Posts: 2334
Joined: Sun Apr 03, 2016 7:16 pm
Location: Olsztyn

Post

Cześć z włącznika ikea https://www.ikea.lt/en/products/lightin ... t-60488366 taki żeby było łatwiej :, reaguje na przyciski góra pierwsze dwie linie i dół na boczne nie reaguje. W supli pojawił się tylko jeden włącznik

Code: Select all

Send: [53 55 50 4C 41 17 1B 00 00 00 28 00 00 00 10 00 00 00 E5 00 00 00 00 00 00 00 A2 17 0D 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 16 00 00 00 32 00 00 00 10 00 00 00 4F 81 8E 67 00 00 00 00 4F 2A 04 00 00 00 00 00 53 55 50 4C 41 ]
[240480][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x0) callback
[240481][V][ZigbeeHandlers.cpp:45] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data size(1)
[242813][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x0) callback
[242813][V][ZigbeeHandlers.cpp:45] zb_attribute_set_handler(): Received message: endpoint(1), cluster(0x6), attribute(0x0), data size(1)
NLME Status Indication, status: 0x6
Send: [53 55 50 4C 41 17 1C 00 00 00 28 00 00 00 10 00 00 00 FE 00 00 00 00 00 00 00 78 28 0E 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Pozdrawiam
Wojtek
User avatar
wojtas567
Posts: 2334
Joined: Sun Apr 03, 2016 7:16 pm
Location: Olsztyn

Post

drugi jest taki: https://zigbee.blakadder.com/Ikea_E1744.html widać, że został dodany

Code: Select all

[ 56019][I][Z2S_Gateway.ino:259] loop(): LIST checking IKEA of Sweden::Remote Control N2, entry # 30
[ 56020][D][Z2S_Gateway.ino:261] loop(): Unknown model IKEA of Sweden::SYMFONISK Sound Controller, no binding is possible
ale w supli nic nie dodał i nie reaguje ani na klik ani na obrót.
Pozdrawiam
Wojtek
local
Posts: 545
Joined: Mon Jan 27, 2020 11:33 am

Post

Drugi nie jest dodany.
4xShelly 1, Shelly 1L, 2xShelly 2.5, Sonoff T3, 2xSonoff Basic R2, 4xNeo 16A
User avatar
vajera
Posts: 7290
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 289 times
Been thanked: 161 times

Post

wojtas567 wrote: Mon Jan 20, 2025 5:17 pm drugi jest taki: https://zigbee.blakadder.com/Ikea_E1744.html widać, że został dodany

Code: Select all

[ 56019][I][Z2S_Gateway.ino:259] loop(): LIST checking IKEA of Sweden::Remote Control N2, entry # 30
[ 56020][D][Z2S_Gateway.ino:261] loop(): Unknown model IKEA of Sweden::SYMFONISK Sound Controller, no binding is possible
ale w supli nic nie dodał i nie reaguje ani na klik ani na obrót.
Tego jeszcze nie dodawałem

Code: Select all

Unknown model IKEA of Sweden::SYMFONISK Sound Controller, no binding is possible
Pytanie, jakie on ma funkcje?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277

Return to “Bramka ZigBee”