Dyskusja ogólna [bramka Zigbee]

Moderator: vajera

User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

[email protected] wrote: Tue Jan 14, 2025 7:21 am [...]

@Zibi_007 podrzucisz zipa z kodem, może jeszcze ja cos namieszałem ekstra
W załączniku plik .zip z całym kodem. Specjalnie teraz skompilowałem i wgrałem na N4. Działa. Dla tego przykładu definicję parametrów sieci mam w pliku priv_auth_data.h (z wiadomych względów nie dołączam). Partycja CustomZB i ZigbeeMode ZCZR. Zresztą, aby było dla potomnych wszystkie parametry dla płytki załączam poniżej:
Zrzut ekranu 2025-01-14 141447.png
Kompiluje się bez jakichkolwiek błędów i po resecie normalnie loguje się do clouda.
You do not have the required permissions to view the files attached to this post.
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
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

vajera wrote: Tue Jan 14, 2025 11:27 am @Zibi_007 - dodałem w ZigbeeHandlers.cpp raportowanie wszystkich pól z wiadomości IAS_zone - możliwe, że te czujniki wysyłają więcej danych niż tylko 0/1.
Dla nowego ZigbeeHandlers.cpp nie kompiluje się skaner. Wyrzuca błąd:

Code: Select all

In file included from C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\Z2S_control\Z2S_virtual_relay.cpp:18:
C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\Z2S_control\Z2S_virtual_relay.h:24:10: fatal error: supla/control/relay.h: No such file or directory
   24 | #include <supla/control/relay.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1
Zresztą Gateway też nie:

Code: Select all

In file included from C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\ZigbeeCore.cpp:7:
C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\ZigbeeHandlers.cpp: In function 'esp_err_t zb_cmd_ias_zone_status_change_handler(const esp_zb_zcl_ias_zone_status_change_notification_message_t*)':
C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\ZigbeeHandlers.cpp:171:3: error: expected primary-expression before ')' token
  171 |   );
      |   ^
C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\ZigbeeHandlers.cpp: In function 'esp_err_t zb_cmd_ias_zone_status_change_handler(const esp_zb_zcl_ias_zone_status_change_notification_message_t*)':
C:\Users\BBC1\AppData\Local\Arduino15\libraries\Z2S_Library-main\src\ZigbeeHandlers.cpp:171:3: error: expected primary-expression before ')' token
  171 |   );
      |   ^

exit status 1

Compilation error: exit status 1
EDIT: sprawdź może na początek linię 170 i 171 w ZigbeeHandlers.cpp - masz tam chyba za dużo ");"
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
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@Zibi_007 - skaner - tu jest taki problem, że Arduino upiera się kompilować wszystkie pliki w katalogu biblioteki a ponieważ jest tam ten wirtualny przekaźnik to jego też chce skompilować a w nagłówku skanera nie ma <include SuplaDevice.h> - natomiast jak go dodać to skaner kompiluje się z 10 minut albo i więcej bo musi przemielić wszystkie biblioteki połączone z Supla, więc albo ta opcja albo na czas kompilacji skanera muszą zniknąć te pliki Z2S_virtual... - próbowałem sztuczki z podkatalogiem, ale nie wyszło.

EDIT - dzięki, ZigbeeHandlers.cpp poprawione.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

Dziękuję, sprawdzę wieczorem. 😁
Chciałem też pomoc, lecz nie dałem rady 😉.
Słowa uznania dla was obydwu 👍
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

vajera wrote: Tue Jan 14, 2025 3:20 pm @Zibi_007 - skaner - tu jest taki problem, że Arduino upiera się kompilować wszystkie pliki w katalogu biblioteki a ponieważ jest tam ten wirtualny przekaźnik to jego też chce skompilować a w nagłówku skanera nie ma <include SuplaDevice.h> - natomiast jak go dodać to skaner kompiluje się z 10 minut albo i więcej bo musi przemielić wszystkie biblioteki połączone z Supla, więc albo ta opcja albo na czas kompilacji skanera muszą zniknąć te pliki Z2S_virtual... - próbowałem sztuczki z podkatalogiem, ale nie wyszło.

EDIT - dzięki, ZigbeeHandlers.cpp poprawione.
Też już na to wpadłem :-) poprawiłem handlers i skompilowałem. Poszło szybko i bez problemów. Później sprawdzę, czy wypluwa coś nowego...
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
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

vajera wrote: Tue Jan 14, 2025 11:27 am @Zibi_007 - dodałem w ZigbeeHandlers.cpp raportowanie wszystkich pól z wiadomości IAS_zone - możliwe, że te czujniki wysyłają więcej danych niż tylko 0/1.
No to sprawdźmy jeszcze raz ten czujnik dymu z nowym handlersem:

Parowanie:

Code: Select all

17:05:55.419> ============ After Setup End =============
17:06:15.128> [ 31085][V][ZigbeeCore.cpp:343] esp_zb_app_signal_handler(): ZDO signal: NWK Device Associated (0x12), status: ESP_OK
17:06:15.128> 
17:06:15.128> [ 31087][V][ZigbeeCore.cpp:343] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Update (0x30), status: ESP_OK
17:06:15.128> 
17:06:15.670> [ 31627][I][ZigbeeCore.cpp:299] esp_zb_app_signal_handler(): New device commissioned or rejoined (short: 0x2943)
17:06:15.671> 
17:06:15.671> [ 31627][V][ZigbeeCore.cpp:303] esp_zb_app_signal_handler(): Device capabilities: 0x80
17:06:15.671> 
17:06:15.784> [ 31726][D][ZigbeeGateway.cpp:128] find_Cb(): Sensor found: short address(0x2943), endpoint(1)
17:06:15.784> 
17:06:15.784> [ 31744][I][ZigbeeGateway.cpp:271] printJoinedDevices(): joined devices:
17:06:15.784> 
17:06:15.784> [ 31744][I][ZigbeeGateway.cpp:274] printJoinedDevices(): Device on endpoint 1, short address: 0x2943
17:06:15.784> 
17:06:15.951> [ 31837][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1000) callback
17:06:15.951> 
17:06:15.951> [ 31837][V][ZigbeeHandlers.cpp:94] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x2943) src endpoint(1) 
17:06:15.951> to dst endpoint(1) cluster(0x0)
17:06:15.951> 
17:06:15.951> [ 31838][V][ZigbeeHandlers.cpp:103] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0
17:06:15.951> x4), type(0x42), value(16)
17:06:15.951> 
17:06:15.951> [ 31839][I][ZigbeeEP.cpp:223] zbReadBasicCluster(): Peer Manufacturer is "_TZ3210_up3pngle"
17:06:15.951> 
17:06:15.951> [ 31745][I][Z2S_Device_Scanner.ino:88] loop(): manufacturer _TZ3210_up3pngle 
17:06:15.951> 
17:06:16.297> [ 31941][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1000) callback
17:06:16.297> 
17:06:16.297> [ 31942][V][ZigbeeHandlers.cpp:94] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0x2943) src endpoint(1) 
17:06:16.297> to dst endpoint(1) cluster(0x0)
17:06:16.297> 
17:06:16.297> [ 31942][V][ZigbeeHandlers.cpp:103] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0
17:06:16.297> x5), type(0x42), value(6)
17:06:16.297> 
17:06:16.297> [ 31943][I][ZigbeeEP.cpp:232] zbReadBasicCluster(): Peer Model is "TS0205"
17:06:16.297> 
17:06:16.297> [ 31840][I][Z2S_Device_Scanner.ino:89] loop(): model TS0205 
17:06:16.297> 
17:06:16.297> [ 31944][I][ZigbeeGateway.cpp:207] zbPrintDeviceDiscovery(): short_addr_req 10563
17:06:16.297> 
17:06:16.297> [ 32035][I][ZigbeeGateway.cpp:141] Z2S_active_ep_req_cb(): Z2S active_ep_req: device address 10563, endpoints count 1
17:06:16.297> 
17:06:16.297> [ 32035][I][ZigbeeGateway.cpp:144] Z2S_active_ep_req_cb(): Endpont # 1, id 1 
17:06:16.297> 
17:06:16.297> [ 32138][I][ZigbeeGateway.cpp:160] Z2S_simple_desc_req_cb(): Z2S simple_desc_req: device address 10563, endpoint # 1
17:06:16.297> 
17:06:16.297> [ 32139][I][ZigbeeGateway.cpp:161] Z2S_simple_desc_req_cb(): Z2S simple_desc_req: in clusters # 5, out clusters # 6
17:06:16.297> 
17:06:16.297> [ 32140][I][ZigbeeGateway.cpp:165] Z2S_simple_desc_req_cb(): In cluster # 1, id 0 
17:06:16.297> 
17:06:16.297> [ 32140][I][ZigbeeGateway.cpp:165] Z2S_simple_desc_req_cb(): In cluster # 2, id 4 
17:06:16.297> 
17:06:16.297> [ 32141][I][ZigbeeGateway.cpp:165] Z2S_simple_desc_req_cb(): In cluster # 3, id 5 
17:06:16.297> 
17:06:16.297> [ 32141][I][ZigbeeGateway.cpp:165] Z2S_simple_desc_req_cb(): In cluster # 4, id 1 
17:06:16.297> 
17:06:16.297> [ 32141][I][ZigbeeGateway.cpp:165] Z2S_simple_desc_req_cb(): In cluster # 5, id 1280 
17:06:16.297> 
17:06:16.297> [ 32142][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 1, id 3 
17:06:16.297> 
17:06:16.297> [ 32142][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 2, id 4 
17:06:16.297> 
17:06:16.297> [ 32143][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 3, id 6 
17:06:16.297> 
17:06:16.297> [ 32143][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 4, id 4096 
17:06:16.297> 
17:06:16.297> [ 32144][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 5, id 10 
17:06:16.297> 
17:06:16.297> [ 32144][I][ZigbeeGateway.cpp:180] Z2S_simple_desc_req_cb(): Out cluster # 6, id 25 
17:06:16.297> 
17:06:17.922> [ 32263][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.922> 
17:06:17.922> [ 32263][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x0), data type (0x20)
17:06:17.922> 
17:06:17.922> [ 32264][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x1), data type (0x20)
17:06:17.922> 
17:06:17.922> [ 32265][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x2), data type (0x20)
17:06:17.922> 
17:06:17.922> [ 32266][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x3), data type (0x20)
17:06:17.922> 
17:06:17.922> [ 32267][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x4), data type (0x42)
17:06:17.922> 
17:06:17.922> [ 32268][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x5), data type (0x42)
17:06:17.922> 
17:06:17.922> [ 32268][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x6), data type (0x42)
17:06:17.922> 
17:06:17.922> [ 32269][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0x7), data type (0x30)
17:06:17.922> 
17:06:17.922> [ 32270][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xffc0), data type (0x42)
17:06:17.922> 
17:06:17.922> [ 32271][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xffcf), data type (0x21)
17:06:17.922> 
17:06:17.922> [ 32272][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xffde), data type (0x20)
17:06:17.922> 
17:06:17.922> [ 32273][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xfffd), data type (0x21)
17:06:17.922> 
17:06:17.922> [ 32274][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xfffe), data type (0x30)
17:06:17.922> 
17:06:17.922> [ 32275][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xffe0), data type (0x48)
17:06:17.922> 
17:06:17.922> [ 32275][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.922>  (0x1), source cluster (0x0), attribute id (0xffe1), data type (0x48)
17:06:17.922> 
17:06:17.922> [ 32276][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x0), attribute id (0xffe2), data type (0x20)
17:06:17.923> 
17:06:17.923> [ 32277][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x0), attribute id (0xffe3), data type (0x42)
17:06:17.923> 
17:06:17.923> [ 32289][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.923> 
17:06:17.923> [ 32289][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x4), attribute id (0x0), data type (0x18)
17:06:17.923> 
17:06:17.923> [ 32290][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x4), attribute id (0xfffd), data type (0x21)
17:06:17.923> 
17:06:17.923> [ 32334][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.923> 
17:06:17.923> [ 32335][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0x0), data type (0x20)
17:06:17.923> 
17:06:17.923> [ 32336][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0x1), data type (0x20)
17:06:17.923> 
17:06:17.923> [ 32336][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0x2), data type (0x21)
17:06:17.923> 
17:06:17.923> [ 32337][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0x3), data type (0x10)
17:06:17.923> 
17:06:17.923> [ 32338][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0x4), data type (0x18)
17:06:17.923> 
17:06:17.923> [ 32339][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x5), attribute id (0xfffd), data type (0x21)
17:06:17.923> 
17:06:17.923> [ 32361][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.923> 
17:06:17.923> [ 32362][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x1), attribute id (0x0), data type (0x21)
17:06:17.923> 
17:06:17.923> [ 32362][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x1), attribute id (0x20), data type (0x20)
17:06:17.923> 
17:06:17.923> [ 32363][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.923>  (0x1), source cluster (0x1), attribute id (0x21), data type (0x20)
17:06:17.923> 
17:06:17.924> [ 32364][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x1), attribute id (0xfffd), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32408][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.924> 
17:06:17.924> [ 32408][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0x0), data type (0x30)
17:06:17.924> 
17:06:17.924> [ 32409][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0x1), data type (0x31)
17:06:17.924> 
17:06:17.924> [ 32410][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0x2), data type (0x19)
17:06:17.924> 
17:06:17.924> [ 32411][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0x10), data type (0xf0)
17:06:17.924> 
17:06:17.924> [ 32412][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0x11), data type (0x20)
17:06:17.924> 
17:06:17.924> [ 32413][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x500), attribute id (0xfffd), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32434][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.924> 
17:06:17.924> [ 32435][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x3), attribute id (0xfffd), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32494][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.924> 
17:06:17.924> [ 32495][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x6), attribute id (0xfffd), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32521][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1004) callback
17:06:17.924> 
17:06:17.924> [ 32521][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x0), data type (0xf0)
17:06:17.924> 
17:06:17.924> [ 32522][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x1), data type (0x23)
17:06:17.924> 
17:06:17.924> [ 32523][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x2), data type (0x23)
17:06:17.924> 
17:06:17.924> [ 32524][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x3), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32525][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x4), data type (0x23)
17:06:17.924> 
17:06:17.924> [ 32526][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.924>  (0x1), source cluster (0x19), attribute id (0x5), data type (0x21)
17:06:17.924> 
17:06:17.924> [ 32526][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.925>  (0x1), source cluster (0x19), attribute id (0x6), data type (0x30)
17:06:17.925> 
17:06:17.925> [ 32527][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.925>  (0x1), source cluster (0x19), attribute id (0x7), data type (0x21)
17:06:17.925> 
17:06:17.925> [ 32528][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.925>  (0x1), source cluster (0x19), attribute id (0x8), data type (0x21)
17:06:17.925> 
17:06:17.925> [ 32529][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.925>  (0x1), source cluster (0x19), attribute id (0x9), data type (0x21)
17:06:17.925> 
17:06:17.925> [ 32530][I][ZigbeeGateway.cpp:357] zbCmdDiscAttrResponse(): Attribute Discovery Message - device address (0x2943), source endpoint
17:06:17.925>  (0x1), source cluster (0x19), attribute id (0xfffd), data type (0x21)
17:06:17.925> 
17:06:17.925> [ 33046][V][ZigbeeCore.cpp:343] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Authorized (0x2f), status: ESP_OK
17:06:17.925> 
17:06:17.925> [ 33157][I][ZigbeeCore.cpp:330] esp_zb_app_signal_handler(): Network(0xb8a4) is open for 180 seconds
17:06:17.925> 
Przycik testujący:

Code: Select all

[17:08:59.879> [195838][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1031) callback
17:08:59.879> 
17:08:59.879> [195839][V][ZigbeeHandlers.cpp:167] zb_cmd_ias_zone_status_change_handler(): IAS Zone Status Notification: from address(0x2943) sr
17:08:59.879> c endpoint(1) to dst endpoint(1) cluster(0x500), zone status (0x1), extended status (0x0), zone id (0x6), delay (0x0)
17:08:59.879> 
17:09:03.442> [199387][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1031) callback
17:09:03.442> 
17:09:03.442> [199387][V][ZigbeeHandlers.cpp:167] zb_cmd_ias_zone_status_change_handler(): IAS Zone Status Notification: from address(0x2943) sr
17:09:03.442> c endpoint(1) to dst endpoint(1) cluster(0x500), zone status (0x0), extended status (0x0), zone id (0x6), delay (0x0)
17:09:03.442> 

Pożar (dym):

Code: Select all

17:13:28.505> [464462][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1031) callback
17:13:28.505> 
17:13:28.505> [464463][V][ZigbeeHandlers.cpp:167] zb_cmd_ias_zone_status_change_handler(): IAS Zone Status Notification: from address(0x2943) sr
17:13:28.505> c endpoint(1) to dst endpoint(1) cluster(0x500), zone status (0x5), extended status (0x0), zone id (0x6), delay (0x0)
17:13:28.505> 
EDIT 17:10 - jeszcze raz, bo nie to się wkleiło co miało...
Last edited by Zibi_007 on Tue Jan 14, 2025 4:14 pm, edited 2 times in total.
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
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@Zibi_007 Na moje oko zmienia się tyllko zone status - a to nie ma tak być, że przycisk testujący działa jak pożar? Jak Ty w ogóle wywołujesz efekt pożaru - zapalniczką? :lol:
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

vajera wrote: Tue Jan 14, 2025 4:13 pm @Zibi_007 Na moje oko zmienia się tyllko zone status - a to nie ma tak być, że przycisk testujący działa jak pożar? Jak Ty w ogóle wywołujesz efekt pożaru - zapalniczką? :lol:
No to tak. Wkleiłem nowy kod, bo poprzednio skompilowałem jednak ze starą wersją handlers.
Co do przycisku - to SmartLive odróżnia pożar od testu (komunikat "pożar" i "powodzenie", ale jak to robi, to nie wiem). W sumie, dla tego projektu to nie ma najmniejszego znaczenia. Ważne aby reagował na dym.
Co do efektu pożaru, to zapalniczka nic nie da. To jest czujnik dymu, nie ognia (cytując klasyka). Po prostu w kontrolowanych warunkach wytwarzam pewną ilość dymu (wbrew pozorom nie małą, bo inaczej nie reaguje), umieszczam tam czujnik i czekam na reakcję. Wszyscy w domu zadowoleni i co pewien czas stają na równe nogi, jak zaczyna się drzeć ;-)
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
LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

Zibi_007 wrote: Tue Jan 14, 2025 12:57 pm
lukasz06 wrote: Tue Jan 14, 2025 10:03 am O podrzucisz z webinterface też ? 😉
W załączniku plik .bin z webinterfeace.
Po wgraniu do C6 (od adresu 0x0) zgłosi się sieć "ZIGBEE-TO-SUPLA-TE-XXXXXXXXXX".
Łączymy się z nią i pod 192.168.4.1 mamy normalny webinterface.
Zrzut ekranu 2025-01-14 041137.png
Udało się wgrać bin i dział 😁, ( niestety przez arduino się nie udało - za mała wiedza 😉) .
A więc tak patrząc od lewej to czujnik otwarcia dział bez problemu dodał się to supli.
Czujnik ruchu sparował się z bramką w putty cos pokazuje w supli nic,
Przycisk to samo
Czujnik zalania nie sparował się z bramką
Termometr z wgranym oprogramowaniem zigbee też się nie paruje -Jednak się sparował :D :D oto dowód :

Code: Select all

[1096968][D][Z2S_Gateway_web.ino:546] loop(): Unknown model LYWSD03MMC-z, no binding is possible
[1098562][V][ZigbeeCore.cpp:371] esp_zb_app_signal_handler(): ZDO signal: ZDO Device Update (0x30), status: ESP_OK
[1098575][I][ZigbeeCore.cpp:324] esp_zb_app_signal_handler(): New device commissioned or rejoined (short: 0x0eba)
[1098576][V][ZigbeeCore.cpp:328] esp_zb_app_signal_handler(): Device capabilities: 0x80
[1099100][D][ZigbeeGateway.cpp:128] find_Cb(): Sensor found: short address(0xeba), endpoint(1)
[1099182][I][ZigbeeGateway.cpp:271] printJoinedDevices(): joined devices:
[1099183][I][ZigbeeGateway.cpp:274] printJoinedDevices(): Device on endpoint 1, short address: 0xeba
[1099629][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1000) callback
[1099629][V][ZigbeeHandlers.cpp:94] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0xeba) src endpoint(1) to dst endpoint(1) cluster(0x0)
[1099630][V][ZigbeeHandlers.cpp:103] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x4), type(0x42), value(6)
[1099630][I][ZigbeeEP.cpp:223] zbReadBasicCluster(): Peer Manufacturer is "Xiaomi"
[1099184][I][Z2S_Gateway_web.ino:499] loop(): manufacturer Xiaomi
[1100163][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1000) callback
[1100163][V][ZigbeeHandlers.cpp:94] zb_cmd_read_attr_resp_handler(): Read attribute response: from address(0xeba) src endpoint(1) to dst endpoint(1) cluster(0x0)
[1100164][V][ZigbeeHandlers.cpp:103] zb_cmd_read_attr_resp_handler(): Read attribute response: status(0), cluster(0x0), attribute(0x5), type(0x42), value(12)
[1100165][I][ZigbeeEP.cpp:232] zbReadBasicCluster(): Peer Model is "LYWSD03MMC-z"
[1100166][I][Z2S_Gateway_web.ino:501] loop(): model LYWSD03MMC-z
[1100166][D][Z2S_Gateway_web.ino:546] loop(): Unknown model LYWSD03MMC-z, no binding is possible
[1103259][I][ZigbeeHandlers.cpp:21] zb_action_handler(): Receive Zigbee action(0x1031) callback
[1103260][V][ZigbeeHandlers.cpp:167] zb_cmd_ias_zone_status_change_handler(): IAS Zone Status Notification: from address(0xacd0) src endpoint(1) to dst endpoint(1) cluster(0x500)
[1103260][I][Z2S_Gateway_web.ino:110] Z2S_findChannelNumberSlot(): Z2S_findChannelNumber 164:193:56:183:193:248:219:35, endopint 0x1

Cóż powiedzieć Rewelacja 😁👍
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: Tue Jan 14, 2025 4:23 pm
Udało się wgrać bin i dział 😁, ( niestety przez arduino się nie udało - za mała wiedza 😉) .
A więc tak patrząc od lewej to czujnik otwarcia dział bez problemu dodał się to supli.
Czujnik ruchu sparował się z bramką w putty cos pokazuje w supli nic,
Przycisk to samo
Czujnik zalania nie sparował się z bramką
Termometr z wgranym oprogramowaniem zigbee też się nie paruje -Jednak się sparował :D :D oto dowód :

[...]

Cóż powiedzieć Rewelacja 😁👍
OK. Odpowiem tutaj kilku osobom, które pisały do mnie PW.
Bardzo się cieszę, że Wam działa bramka po wgraniu pliku .bin.
Wersja z webinterface powstała na prośbę kilku osób, które do mnie pisały, a nie chciały zawracać głowy Koledze @vajera.
Proszę tylko pamiętać, że to jest jeszcze wczesna wersja aplikacji i nie wszystko musi działać.

@LukiSpajder i inni - nie wszystko Wam się doda, bo jest jeszcze dużo urządzeń nie uwzględnionych w sofcie. Z czasem będzie coraz więcej i lepiej. Dlatego zachęcam do podzielenia się skanami z parowania i działania urządzeń pod skanerem. I znowu w odpowiedzi na prośby, przesyłam w załączniku najnowszą (z dzisiejszego popołudnia) wersję skanera w postaci gotowej do wgrania. Jak zwykle czymkolwiek, co Wam działa od adresu 0x0. Skanujcie i publikujcie :)
You do not have the required permissions to view the files attached to this post.
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

Return to “Bramka ZigBee”