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

vajera wrote: Fri Jan 31, 2025 2:54 pm
bokk wrote: Fri Jan 31, 2025 2:47 pm
vajera wrote: Fri Jan 31, 2025 2:35 pm @bokk, @Yepestis - działają Wam te smart buttony zgodnie ze specyfikacją?
Tak. W cloud zgłasza się jako button i button double. Po przypisaniu do każdego 2 reakcji na włącz i wyłącz działa bardzo dobrze.
Dzięki! Może powinniśmy dopisywać w komentarzach jakieś oceny dla tych czujników?

@Zibi_007 Masz rację, potwierdzam. Ten konkretny przycisk zepsuł mi tyle krwi, że szkoda gadać. On ma ewidentnie zrypany soft, nie czyści RAMu i stąd te cyrki.
Ale i tak jesteś GENIALNY! Jak Te logi czytasz, to nie wiem. Trzy razy przeleciałem i nie widziałem nic podejrzanego :( W każdym razie wszystko poprawiłem, działa teraz za każdym razem, poza tym, że po każdym parowaniu trzeba przełączyć w tryb przycisku (a uwierz mi, nie każdy czyta instrukcje jak Ty i wie co trzeba zrobić ;-)). W każdym razie ogłaszam sukces. Działa!

To co teraz? Głowice? :lol:
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

To jest bardzo dobre pytanie :D

Mam taki pomysł na mapę drogową:

- dokończyć kwestię pomiarów elektrycznych w gniazdkach,
- dokończyć kwestię czujników IAS z dodatkowymi funkcjami (alarm2, tamper alarm),
.........
i zrobić kolejny porządek z kodem, ale taki spory - bez tego za chwilę ja się będę gubił a nikt inny nie będzie miał ochoty w to wchodzić...

Głowice to jest jeszcze inny temat - przygotuję oddzielny program do ich testowania żeby nie mieszać w głównym kodzie bramki - będzie bez SuplaDevice, więc szybsza kompilacja i łatwiejsze śledzenie.
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: Fri Jan 31, 2025 3:19 pm To jest bardzo dobre pytanie :D

Mam taki pomysł na mapę drogową:

- dokończyć kwestię pomiarów elektrycznych w gniazdkach,
- dokończyć kwestię czujników IAS z dodatkowymi funkcjami (alarm2, tamper alarm),
.........
i zrobić kolejny porządek z kodem, ale taki spory - bez tego za chwilę ja się będę gubił a nikt inny nie będzie miał ochoty w to wchodzić...

Głowice to jest jeszcze inny temat - przygotuję oddzielny program do ich testowania żeby nie mieszać w głównym kodzie bramki - będzie bez SuplaDevice, więc szybsza kompilacja i łatwiejsze śledzenie.
Jasne, akceptuję w pełni i deklaruję dalszą współpracę. Gniazdka i czujniki są pod ręką, więc mogę działać :)

Swoją drogą z tym kodem nie jest tak źle (przynajmniej z .ino) ;-) Po dwóch dniach znowu się w nim nawet jakoś orientuję :lol:
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
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

@vajera jesteś świetnym programistą, chyle czoła ;) gratuluję, G....o ożyło :shock: - znaczy się ten włącznik scen 4x3 :lol:

Zaraz porobię porządne logi, włączanie przycisku działa, ale chyba by tam potrzeba było mieć jakiś debouncing pomiędzy akcjami.

Code: Select all

nr 1 pressed

21:07:16.257 > [ 78754][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
21:07:16.264 > [ 78763][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
21:07:16.275 > [ 78772][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
21:07:16.286 > [ 78784][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0
21:07:16.293 > [ 78792][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 2 size: 1
21:07:16.303 > [ 78800][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x00 
21:07:16.309 > [ 78806][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0
21:07:16.320 > [ 78817][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: pushed
21:07:16.325 > [ 78824][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x0
21:07:16.336 > [ 78837][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8
21:07:16.353 > [ 78853][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0
21:07:16.365 > [ 78865][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
21:07:16.376 > [ 78876][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
21:07:16.387 > Relay[0] toggle (duration 0 ms)
21:07:16.387 > Relay[0] turn ON (duration 0 ms)
21:07:16.392 > Channel(0) value changed to 1
21:07:16.392 > [ 78885][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------



double pressed

21:07:46.791 > [109287][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
21:07:46.796 > [109296][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
21:07:46.808 > [109305][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
21:07:46.819 > [109317][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0
21:07:46.824 > [109325][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 8 size: 1
21:07:46.835 > [109333][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x01
21:07:46.841 > [109339][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0
21:07:46.852 > [109349][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: double tapped
21:07:46.857 > [109358][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x1
21:07:46.869 > [109370][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8
21:07:46.886 > [109386][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x1
21:07:46.896 > [109398][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
21:07:46.907 > [109410][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
21:07:46.920 > Relay[1] toggle (duration 0 ms)
21:07:46.920 > Relay[1] turn ON (duration 0 ms)
21:07:46.925 > Channel(1) value changed to 1
21:07:46.925 > [109419][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------


held 

21:08:13.608 > [136104][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
21:08:13.615 > [136113][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
21:08:13.625 > [136122][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
21:08:13.636 > [136134][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0
21:08:13.642 > [136142][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 14 size: 1
21:08:13.653 > [136150][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x02
21:08:13.659 > [136157][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0
21:08:13.670 > [136167][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: held
21:08:13.675 > [136175][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x2
21:08:13.687 > [136187][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8
21:08:13.704 > [136203][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x2
21:08:13.715 > [136215][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
21:08:13.726 > [136226][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
21:08:13.736 > Relay[2] toggle (duration 0 ms)
21:08:13.736 > Relay[2] turn ON (duration 0 ms)
21:08:13.742 > Channel(2) value changed to 1
21:08:13.742 > [136236][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------


push again 1 - duplicate


21:08:13.765 > Send: [53 55 50 4C 41 17 30 00 00 00 67 00 00 00 0E 00 00 00 02 00 00 00 00 00 01 00 00 00 00 00 00 00 ]

21:08:13.770 > Send: [53 55 50 4C 41 ]

21:08:33.297 > [0;32m[155794][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253[0m

21:08:33.304 > [0;32m[155803][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1[0m

21:08:33.315 > [0;32m[155812][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0[0m

21:08:33.327 > [0;32m[155824][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0[0m

21:08:33.332 > [0;32m[155832][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 20 size: 1[0m

21:08:33.343 > [0;32m[155840][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x00 [0m

21:08:33.349 > [0;32m[155847][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0[0m

21:08:33.360 > [0;32m[155857][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: pushed[0m

21:08:33.365 > [0;32m[155865][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x0[0m

21:08:33.377 > [0;32m[155877][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8[0m

21:08:33.393 > [0;32m[155893][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0[0m

21:08:33.405 > [0;32m[155905][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54[0m

21:08:33.415 > [0;32m[155917][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle[0m

21:08:33.427 > Relay[0] toggle (duration 0 ms)

21:08:33.427 > Relay[0] turn OFF (duration 0 ms)

21:08:33.432 > Channel(0) value changed to 0

21:08:33.432 > [0;32m[155926][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------[0m

21:08:33.455 > Send: [53 55 50 4C 41 17 31 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 ]

21:08:33.461 > Send: [53 55 50 4C 41 ]

21:08:34.289 > [0;32m[156787][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253[0m

21:08:34.297 > [0;32m[156796][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1[0m

21:08:34.308 > [0;32m[156805][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0[0m

21:08:34.318 > [0;32m[156817][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0[0m

21:08:34.324 > [0;32m[156824][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 26 size: 1[0m

21:08:34.335 > [0;32m[156832][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x00 [0m

21:08:34.340 > [0;32m[156839][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0[0m

21:08:34.352 > [0;32m[156849][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: pushed[0m

21:08:34.358 > [0;32m[156857][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x0[0m

21:08:34.368 > [0;32m[156870][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8[0m

21:08:34.385 > [0;32m[156885][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0[0m

21:08:34.397 > [0;32m[156898][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54[0m

21:08:34.408 > [0;32m[156909][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle[0m

21:08:34.418 > Relay[0] toggle (duration 0 ms)

21:08:34.418 > Relay[0] turn ON (duration 0 ms)

21:08:34.425 > Channel(0) value changed to 1

21:08:34.425 > [0;32m[156918][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------[0m

held to turn off - duplicate


21:12:17.846 > Recv: [53 55 50 4C 41 17 37 00 00 00 32 00 00 00 10 00 00 00 A2 2E 9D 67 00 00 00 00 59 D6 0B 00 00 00 00 00 53 55 50 4C 41 ]

21:12:25.742 > [0;32m[388240][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253[0m

21:12:25.750 > [0;32m[388249][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1[0m

21:12:25.760 > [0;32m[388258][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0[0m

21:12:25.771 > [0;32m[388270][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0[0m

21:12:25.776 > [0;32m[388278][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 14 size: 1[0m

21:12:25.786 > [0;32m[388286][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x02 [0m

21:12:25.793 > [0;32m[388292][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0[0m

21:12:25.805 > [0;32m[388302][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: held[0m

21:12:25.810 > [0;32m[388310][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x2[0m

21:12:25.822 > [0;32m[388323][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8[0m

21:12:25.838 > [0;32m[388339][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x2[0m

21:12:25.849 > [0;32m[388351][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54[0m

21:12:25.860 > [0;32m[388362][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle[0m

21:12:25.872 > Relay[2] toggle (duration 0 ms)

21:12:25.872 > Relay[2] turn OFF (duration 0 ms)

21:12:25.876 > Channel(2) value changed to 0

21:12:25.876 > [0;32m[388371][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------[0m

21:12:25.901 > Send: [53 55 50 4C 41 17 3F 00 00 00 67 00 00 00 0E 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 ]

21:12:25.906 > Send: [53 55 50 4C 41 ]

21:12:26.738 > [0;32m[389235][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253[0m

21:12:26.744 > [0;32m[389244][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1[0m

21:12:26.755 > [0;32m[389253][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0[0m

21:12:26.766 > [0;32m[389265][I][ZigbeeHandlers.cpp:55] zb_raw_cmd_handler(): manuf_specific 0x0[0m

21:12:26.771 > [0;32m[389273][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): RAW bufid: 17 size: 1[0m

21:12:26.783 > [0;32m[389281][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): 0x02 [0m

21:12:26.788 > [0;32m[389287][I][ZigbeeHandlers.cpp:64] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x1a0b, 0x1a0b, 0x0, 0x0[0m

21:12:26.800 > [0;32m[389298][I][ZigbeeGateway.cpp:858] zbRawCmdHandler(): Button nr 1 was: held[0m

21:12:26.806 > [0;32m[389305][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x2[0m

21:12:26.816 > [0;32m[389318][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0x8c:0x65:0xa3:0xff:0xfe:0xc0:0xb6:0x48, endpoint 0x1, channel type 0x2af8[0m

21:12:26.833 > [0;32m[389334][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x2[0m

21:12:26.844 > [0;32m[389346][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54[0m

21:12:26.856 > [0;32m[389357][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle[0m

21:12:26.866 > Relay[2] toggle (duration 0 ms)

21:12:26.866 > Relay[2] turn ON (duration 0 ms)

21:12:26.873 > Channel(2) value changed to 1

21:12:26.873 > [0;32m[389366][I][ZigbeeHandlers.cpp:74] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------[0m
Yepestis
Posts: 890
Joined: Mon Sep 24, 2018 6:08 pm
Location: Wrocław
Has thanked: 19 times
Been thanked: 3 times

Post

vajera wrote: Fri Jan 31, 2025 2:35 pm @bokk, @Yepestis - działają Wam te smart buttony zgodnie ze specyfikacją?
U mnie działa, dzięki wielkie
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

Wrzuciłem update - kod + bin a w nim:

1. przebudowałem obsługę procedur sendAttributeRead i sendAttributeWrite dzięki czemu udało mi się z sukcesem automatycznie przestawić ten guzik 5F z kółkiem w tryb rozkazów - nie trzeba już klikać 3x - potwierdzone kilkoma próbami parowania. ;)
2. dodałem zgłoszony sprzęt (poza głowicami).
3. wykorzystując procedury z pkt. 1 dodałem odczyt zone_type przy parowaniu czujników IAS (szczegóły w tabelce) - w teorii można by to wykorzystać do ustawiania domyślnej funkcji czujnika w Supla, jak już @klew doda nowe opcje ;)
You do not have the required permissions to view the files attached to this post.
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: Fri Jan 31, 2025 9:48 pm Wrzuciłem update - kod + bin a w nim:

1. przebudowałem obsługę procedur sendAttributeRead i sendAttributeWrite dzięki czemu udało mi się z sukcesem automatycznie przestawić ten guzik 5F z kółkiem w tryb rozkazów - nie trzeba już klikać 3x - potwierdzone kilkoma próbami parowania. ;)
2. dodałem zgłoszony sprzęt (poza głowicami).
3. wykorzystując procedury z pkt. 1 dodałem odczyt zone_type przy parowaniu czujników IAS (szczegóły w tabelce) - w teorii można by to wykorzystać do ustawiania domyślnej funkcji czujnika w Supla, jak już @klew doda nowe opcje ;)
Wszystko działa. Dodaje się automatycznie.
Guzik 5F rzeczywiście sam się przestawia w tryb "przycisku" - ciekawe, czy Tuya wie, że tak można? :lol:
Sprawdziłem też kilka losowych urządzeń. Z żadnym nie miałem problemów.
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

No cóż kolejne urządzenie zostało przez Ciebie rozgryzione - przycisk działa dodał się bez problemu pojawiły się trzy przekaźniki :D
Przy restarcie bramki,włączone kanały zostają wyłączone - tylko stwierdzenie

Logi

Code: Select all

[146390][I][ZigbeeHandlers.cpp:78] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 33 00 00 00 67 00 00 00 0E 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
NLME Status Indication, status: 0x12
[158176][V][ZigbeeCore.cpp:226] openNetwork(): Opening network for joining for 180 seconds
[158643][I][ZigbeeCore.cpp:356] esp_zb_app_signal_handler(): Network(0x5fe5) is open for 180 seconds
[169032][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
[169032][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[169033][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[169034][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): manuf_specific 0x0
[169034][I][ZigbeeHandlers.cpp:61] zb_raw_cmd_handler(): RAW bufid: 20 size: 1
[169034][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): 0x00
[169035][I][ZigbeeHandlers.cpp:68] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0xd445, 0xd445, 0x0, 0x0
[169035][I][ZigbeeGateway.cpp:873] zbRawCmdHandler(): Button nr 1 was: pushed
[169036][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x0
[169036][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0xd3:0xde:0x68:0x49:0x84, endpoint 0x1, channel type 0x2af8
[169037][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0
[169038][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[169038][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
Relay[0] toggle (duration 0 ms)
Relay[0] turn ON (duration 0 ms)
Channel(0) value changed to 1
[169039][I][ZigbeeHandlers.cpp:78] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 34 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 ]
Send: [53 55 50 4C 41 17 35 00 00 00 28 00 00 00 10 00 00 00 DD 5B 9D 67 00 00 00 00 FA 6E 09 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 1B 00 00 00 32 00 00 00 10 00 00 00 CE 4D 9D 67 00 00 00 00 AF 10 0E 00 00 00 00 00 53 55 50 4C 41 ]
[172494][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
[172494][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[172495][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[172495][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): manuf_specific 0x0
[172496][I][ZigbeeHandlers.cpp:61] zb_raw_cmd_handler(): RAW bufid: 8 size: 1
[172496][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): 0x01
[172496][I][ZigbeeHandlers.cpp:68] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0xd445, 0xd445, 0x0, 0x0
[172497][I][ZigbeeGateway.cpp:873] zbRawCmdHandler(): Button nr 1 was: double tapped
[172497][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x1
[172498][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0xd3:0xde:0x68:0x49:0x84, endpoint 0x1, channel type 0x2af8
[172499][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x1
[172499][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[172500][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
Relay[1] toggle (duration 0 ms)
Relay[1] turn ON (duration 0 ms)
Channel(1) value changed to 1
[172500][I][ZigbeeHandlers.cpp:78] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 36 00 00 00 67 00 00 00 0E 00 00 00 01 00 00 00 00 00 01 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
[177512][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): cluster id: 0x6, command id: 253
[177512][I][ZigbeeHandlers.cpp:57] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[177512][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[177513][I][ZigbeeHandlers.cpp:59] zb_raw_cmd_handler(): manuf_specific 0x0
[177514][I][ZigbeeHandlers.cpp:61] zb_raw_cmd_handler(): RAW bufid: 11 size: 1
[177514][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): 0x02
[177514][I][ZigbeeHandlers.cpp:68] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0xd445, 0xd445, 0x0, 0x0
[177515][I][ZigbeeGateway.cpp:873] zbRawCmdHandler(): Button nr 1 was: held
[177515][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfd, command data 0x2
[177516][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0xd3:0xde:0x68:0x49:0x84, endpoint 0x1, channel type 0x2af8
[177516][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x2
[177517][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[177518][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
Relay[2] toggle (duration 0 ms)
Relay[2] turn OFF (duration 0 ms)
You do not have the required permissions to view the files attached to this post.
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

Wgrałem bin, mam na razie tylko 2 urządzenia, czujnik okna i termometr Xiaomi po zigbee i fajnie to wygląda :)
Szybko się dodaje do Clouda, pomiar temp i wilgotności jest po 30s, przedtem trzeba było dłużej czekać.
Stan baterii w Xiaomi pokazuje się po naciśnięciu "i", natomiast w czujniku okna go pod "i" nie ma, dziwne może czujnik nie wystawia takiej informacji. Co tu dużo pisać jest coraz lepiej :)
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

LukiSpajder wrote: Fri Jan 31, 2025 10:31 pm No cóż kolejne urządzenie zostało przez Ciebie rozgryzione - przycisk działa dodał się bez problemu pojawiły się trzy przekaźniki :D
Przy restarcie bramki,włączone kanały zostają wyłączone
To wynika z logiki tych urządzeń - one pełnią funkcję wyzwalaczy akcji a nie przekaźników per se - może zamiast toggle() lepiej dać tam turnOn(500)?
Wtedy wskaźnik załączy się na 0,5 sekundy, wygeneruje akcję i się wyłączy - co o tym myślicie?
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”