Dyskusja ogólna [bramka Zigbee]

Moderator: vajera

LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

Tak na szybko bateria tylko przy 1 przycisku jest
You do not have the required permissions to view the files attached to this post.
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: Thu Jan 30, 2025 9:49 pm Tak na szybko bateria tylko przy 1 przycisku jest
No tak, bo tam są 4 endpointy a tylko 1 raportuje baterię. Zmiana tego wymaga w sumie sporych zmian w kodzie, pytanie czy będzie to nam do czegokolwiek potrzebne - w sumie zakładam, że większość poukrywa te przekaźniki w Supla i poprzypisuje do nich jakieś akcje?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
LukiSpajder
Posts: 1548
Joined: Tue Aug 18, 2020 2:22 pm
Has thanked: 25 times
Been thanked: 34 times

Post

Też tak myślę , stan baterii nawet przy tym jednym przycisku by wystarczył jak było wcześniej - moje zdanie 😁
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: Thu Jan 30, 2025 9:36 pm Wrzuciłem nowy kod + bin, a w nim:

1. dodane zostały zgłoszone urządzenia
2. obsługa tych przycisków smart - wprowadziłem 3 profile - 2 funkcyjny (press, double press), 3 funkcyjny (press, double press, hold) i 5 funkcyjny (press, double press, hold, rotate right, rotate left) - sam mam tylko ten z kółkiem (5F), więc proszę o feedback z tych pozostałych.

UWAGA - część z tych przycisków (np. ten mój 5F) wymaga przełączenia z trybu "sceny" na "przyciski" - w moim przypadku trzeba 3x nacisnąć przycisk - to jest opisane w instrukcji aczkolwiek nie zawsze zadziała od pierwszego strzału - trzeba patrzeć na diodę.
Podsumowując, jeżeli Wasz przycisk nie reaguje, to sprawdźcie w instrukcji czy nie jest konieczna zmiana trybu - w teorii można to zrobić programowo, ale w praktyce jeszcze mi się nie udało.

3. Ten switch 4x powinien mieć baterię przy każdym kanale (przekaźniku).
Jest prawie dobrze. Przycisk (5F) dodał się za pierwszym razem, pokazał 5 przełączników i... oczywiście potrzebne było przełączenie trybu (3x przycisk). I teraz tak: klik, dwuklik i długie działa normalnie, ale zamiast lewo i prawo włącza (wyłącza) odpowiednio dwuklik i klik. W logach widzę, że raportuje w lewo i w prawo, ale przełączniki nie reagują. Spróbuję jeszcze się pobawić (sparować powtórnie).
Poniżej logi.

Lewo:

Code: Select all

[249202][I][ZigbeeHandlers.cpp:51] zb_raw_cmd_handler(): cluster id: 0x6, command id: 252
[249203][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[249203][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[249204][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): manuf_specific 0x0
[249204][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): RAW bufid: 5 size: 1
[249205][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): 0x01 
[249205][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x5746, 0x5746, 0x0, 0x0
[249205][I][ZigbeeGateway.cpp:867] zbRawCmdHandler(): Button nr 1 was: rotated left
[249206][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfc, command data 0x1
[249206][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0x39:0x67:0x6e:0x58:0xd7, endpoint 0x1, channel type 0x2af8
[249207][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x1
[249208][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[249208][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
[249209][I][ZigbeeHandlers.cpp:73] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 49 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 ]
[254651][I][ZigbeeHandlers.cpp:51] zb_raw_cmd_handler(): cluster id: 0x6, command id: 252
[254652][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[254652][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[254653][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): manuf_specific 0x0
[254653][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): RAW bufid: 4 size: 1
[254653][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): 0x01 
[254654][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x5746, 0x5746, 0x0, 0x0
[254654][I][ZigbeeGateway.cpp:867] zbRawCmdHandler(): Button nr 1 was: rotated left
[254655][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfc, command data 0x1
[254655][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0x39:0x67:0x6e:0x58:0xd7, endpoint 0x1, channel type 0x2af8
[254656][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x1
[254657][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[254657][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
Relay[1] toggle (duration 0 ms)
Relay[1] turn OFF (duration 0 ms)
Channel(1) value changed to 0
[254658][I][ZigbeeHandlers.cpp:73] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 4A 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 ]
Send: [53 55 50 4C 41 17 4B 00 00 00 28 00 00 00 10 00 00 00 53 04 9C 67 00 00 00 00 C7 B6 09 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 27 00 00 00 32 00 00 00 10 00 00 00 46 F6 9B 67 00 00 00 00 95 49 06 00 00 00 00 00 53 55 50 4C 41 ]
Prawo:

Code: Select all

Send: [53 55 50 4C 41 17 5B 00 00 00 28 00 00 00 10 00 00 00 64 05 9C 67 00 00 00 00 37 3E 0B 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 32 00 00 00 32 00 00 00 10 00 00 00 55 F7 9B 67 00 00 00 00 DC B1 0B 00 00 00 00 00 53 55 50 4C 41 ]
[531666][I][ZigbeeHandlers.cpp:51] zb_raw_cmd_handler(): cluster id: 0x6, command id: 252
[531667][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[531667][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[531668][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): manuf_specific 0x0
[531668][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): RAW bufid: 2 size: 1
[531668][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): 0x00 
[531669][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x5746, 0x5746, 0x0, 0x0
[531669][I][ZigbeeGateway.cpp:867] zbRawCmdHandler(): Button nr 1 was: rotated right
[531670][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfc, command data 0x0
[531670][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0x39:0x67:0x6e:0x58:0xd7, endpoint 0x1, channel type 0x2af8
[531671][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0
[531672][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[531672][I][Z2S_Devices_Table.cpp:367] Z2S_onOnOffCustomCmdReceive(): trying to toggle
Relay[0] toggle (duration 0 ms)
Relay[0] turn OFF (duration 0 ms)
Channel(0) value changed to 0
[531673][I][ZigbeeHandlers.cpp:73] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 5C 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 ]
[536062][I][ZigbeeHandlers.cpp:51] zb_raw_cmd_handler(): cluster id: 0x6, command id: 252
[536062][I][ZigbeeHandlers.cpp:52] zb_raw_cmd_handler(): src endpoint (0x1, dst endpoint 0x1
[536063][I][ZigbeeHandlers.cpp:53] zb_raw_cmd_handler(): is common comand 0, disable_default_response 0, is_manuf_specific 0
[536063][I][ZigbeeHandlers.cpp:54] zb_raw_cmd_handler(): manuf_specific 0x0
[536064][I][ZigbeeHandlers.cpp:56] zb_raw_cmd_handler(): RAW bufid: 3 size: 1
[536064][I][ZigbeeHandlers.cpp:58] zb_raw_cmd_handler(): 0x00 
[536064][I][ZigbeeHandlers.cpp:63] zb_raw_cmd_handler(): ZigbeeHandlers rawCMD 0x5746, 0x5746, 0x0, 0x0
[536065][I][ZigbeeGateway.cpp:867] zbRawCmdHandler(): Button nr 1 was: rotated right
[536066][I][Z2S_Devices_Table.cpp:354] Z2S_onOnOffCustomCmdReceive(): Z2S_onOnOffCustomCmdReceive command id 0xfc, command data 0x0
[536066][I][Z2S_Devices_Table.cpp:53] Z2S_findChannelNumberSlot(): Z2S_findChannelNumberSlot 0xa4:0xc1:0x38:0x39:0x67:0x6e:0x58:0xd7, endpoint 0x1, channel type 0x2af8
[536067][I][Z2S_Devices_Table.cpp:362] Z2S_onOnOffCustomCmdReceive(): z2s_devices_table[channel_number_slot].Supla_channel 0x0
[536068][I][Z2S_Devices_Table.cpp:364] Z2S_onOnOffCustomCmdReceive(): element->getChannel()->getChannelType() 0xb54
[536068][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
[536069][I][ZigbeeHandlers.cpp:73] zb_raw_cmd_handler(): ----------------------------raw command proccessed---------------------------------------------------------------
Send: [53 55 50 4C 41 17 5D 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 ]
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
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

Czemu akcje przycisków są przekaźnikami? ;)
Wrzućcie to na Wyzwalacze Akcji
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

klew wrote: Thu Jan 30, 2025 10:07 pm Czemu akcje przycisków są przekaźnikami? ;)
Wrzućcie to na Wyzwalacze Akcji
W kodzie są już (częściowo) identyfikowane jako wyzwalacze akcji, ale chciałem sobie i innym pokazać jak to działa i trochę łatwiej debugować. Poza tym w aplikacji nie widać AT.
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
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@klew Czy dla ActionTrigger można zdefiniować własną listę akcji?
ON_PRESS, ON_DOUBLE_PRESS, ON_HELD, ON_ROTATE_RIGHT, ON_ROTATE_LEFT
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: Thu Jan 30, 2025 10:12 pm
klew wrote: Thu Jan 30, 2025 10:07 pm Czemu akcje przycisków są przekaźnikami? ;)
Wrzućcie to na Wyzwalacze Akcji
W kodzie są już (częściowo) identyfikowane jako wyzwalacze akcji, ale chciałem sobie i innym pokazać jak to działa i trochę łatwiej debugować. Poza tym w aplikacji nie widać AT.
Jakbyś chciał log z parowania tego przycisku 5F, to przesyłam Ci w PW.
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
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

Panowie mam pytanie, czy po aktualizacji do nowej SuplaDevice jest poprawa jeśli chodzi o czujniki binarne po zaniku zasilania?
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

lukasz06 wrote: Thu Jan 30, 2025 10:42 pm Panowie mam pytanie, czy po aktualizacji do nowej SuplaDevice jest poprawa jeśli chodzi o czujniki binarne po zaniku zasilania?
To pomoże na te restarty bramki, podczas których nie zmienił się realny stan czujnika, ale jeszcze nie zaktualizowałem biblioteki.
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”