Gniazdka, rolety, włączniki, mierniki elektryczne - zgłoszenia, uwagi, pomysły [bramka ZigBee]

Moderator: vajera

lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Wed Aug 13, 2025 4:41 pm
lukasz06 wrote: Wed Aug 13, 2025 2:17 pm Sorry działałem w pośpiechu 😉
Wrócę z pracy to sprawdzę
Teraz tak patrzę wstecz to tak pisałeś o tym Energy Today. Czy ja już się gubię?...
To jeszcze raz ;)
  • Wejdź w zakładkę Zigbee devices i wybierz to urządzenie.
  • Z listy klastrów wybierz Sonoff Custom (0xFC11).
  • Z listy atrybutów wybierz ENERGY (TODAY) - ustaw min_interval 60, max_interval 3600, delta 50.
  • Naciśnij przycisk Configure reporting (a nie Write Attribute).
  • Sprawdź czy raport się zapisał za pomocą przycisku Read report config.
  • Powtórz te czynności dla ENERGY (MONTH), ENERGY (YESTERDAY)
Dodatkowo sprawdź proszę, za pomocą przycisku, Read Attribute wszystkie poniższe atrybuty w klastrze SONOFF CUSTOM:
  • AC CURRENT
  • AC VOLTAGE
  • AC ACTIVE POWER
  • ENERGY(TODAY)
  • ENERGY(MONTH)
  • ENERGY(YESTERDAY)
Potrzebne będą odpowiedzi na odczyt każdego z tych atrybutów.

Code: Select all

Configure reporting successful! 
Attribute id is 0x7009, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x7009
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)

Configure reporting successful! 
Attribute id is 0x700A, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x700A
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)

Configure reporting successful! 
Attribute id is 0x700B, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x700B
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)

AC CURRENT - Reading attribute successful!
Data value is 176(0xB0)
Data type is U32(0x23)
Data size is 0x4

AC VOLTAGE - Reading attribute successful!
Data value is 230097(0x382D1)
Data type is U32(0x23)
Data size is 0x4

AC ACTIVE POWER - Reading attribute successful!
Data value is 40624(0x9EB0)
Data type is U32(0x23)
Data size is 0x4

ENERGY (TODAY) - Reading attribute successful!
Data value is 70(0x46)
Data type is U32(0x23)
Data size is 0x4

ENERGY(MONTH) - Reading attribute successful!
Data value is 70(0x46)
Data type is U32(0x23)
Data size is 0x4

ENERGY (YESTERDAY) - Reading attribute successful!
Data value is 0(0x0)
Data type is U32(0x23)
Data size is 0x4
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: Wed Aug 13, 2025 9:17 pm

Code: Select all

Configure reporting successful! 
Attribute id is 0x7009, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x7009
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)

Configure reporting successful! 
Attribute id is 0x700A, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x700A
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)

Configure reporting successful! 
Attribute id is 0x700B, data type is U32(0x23)
Min interval is 60(0x3c), max interval is 3600(0xE10)
Delta is 50(0x32)

Reading attribute config report successful! 
Attribute id is 0x700B
Data type is U32(0x23)
Min interval is 60(0x3c)
Max interval is 3600(0xE10)
Delta is 50(0x32)
Super! Czyli właśnie udało Ci się ustawić raportowanie tych 3 parametrów - nie częściej niż co 60 sekund, najpóźniej co 1 godzinę lub w przypadku zmiany o 0,05 kWh.

Code: Select all

AC CURRENT - Reading attribute successful!
Data value is 176(0xB0)
Data type is U32(0x23)
Data size is 0x4

AC VOLTAGE - Reading attribute successful!
Data value is 230097(0x382D1)
Data type is U32(0x23)
Data size is 0x4

AC ACTIVE POWER - Reading attribute successful!
Data value is 40624(0x9EB0)
Data type is U32(0x23)
Data size is 0x4

ENERGY (TODAY) - Reading attribute successful!
Data value is 70(0x46)
Data type is U32(0x23)
Data size is 0x4

ENERGY(MONTH) - Reading attribute successful!
Data value is 70(0x46)
Data type is U32(0x23)
Data size is 0x4

ENERGY (YESTERDAY) - Reading attribute successful!
Data value is 0(0x0)
Data type is U32(0x23)
Data size is 0x4
Patrząc na te wartości powinieneś mieć prawidłowe parametry V/A/W w wersji 0.8.90?

Te 3 wartości energii wymagają podzielenia przez 1000, zmieniłem to w 0.8.91-14/08/2025.

@klew - przy tej okazji pytanie do Ciebie - w pliku electricity_meter.h jest napisane, że metoda setCurrent przyjmuje wartości w mA (1 = 0,001 A), ale w takim razie to 176 powinno wyświetlać się w aplikacji jako 0,176 A a wyświetla się jako 1,76 A, więc musiałem dołożyć dzielenie przez 10. Czy w takim razie nie jest tak, że dla tej metody 1 = 0,01 A?
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

Wersja 0.8.91 Nadal pokazuje zle. Po zmianie w apce żeby pokazywało napięcie już nie można wrócić do wyboru wyświetlania mocy czynnej
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

lukasz06 wrote: Wed Aug 13, 2025 10:56 pm Wersja 0.8.91 Nadal pokazuje zle.
Dziwne, @poszukiwacz pisał, że ma prawidłowe parametry, a te wartości, które odczytałeś Read Attribute też pasowały (230 000 / 1000 = 230 V, wszystkie operacje na uint32_t, więc bez ryzyka overflow). Dałbyś radę zebrać trochę logów z pracy żarówki?
Po zmianie w apce żeby pokazywało napięcie już nie można wrócić do wyboru wyświetlania mocy czynnej
Na to chyba bramka nie ma wpływu.

A aktualizują się te KPOPy z ENERGY(...)?
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
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

vajera wrote: Wed Aug 13, 2025 10:20 pm @klew - przy tej okazji pytanie do Ciebie - w pliku electricity_meter.h jest napisane, że metoda setCurrent przyjmuje wartości w mA (1 = 0,001 A), ale w takim razie to 176 powinno wyświetlać się w aplikacji jako 0,176 A a wyświetla się jako 1,76 A, więc musiałem dołożyć dzielenie przez 10. Czy w takim razie nie jest tak, że dla tej metody 1 = 0,01 A?
Powinno być 0,176 A.
Jesteś pewien, że nie masz jakiegoś przelicznika ustawionego w tych parametrach w metodzie setCurrent2?
Ja bym na szybko wstawił jakiś log do metody setCurrent w electricity_meter.cpp i zobaczył, co tam faktycznie jest przekazywane.

btw. te metody setTimeoutSecs powinny mieć _timetou_ms / 1000 (obecnie jest * 1000, więc z ms robisz ns ;P )
Najlepsze suple dla Twojego domu :mrgreen:
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

vajera wrote: Thu Aug 14, 2025 7:47 am
Po zmianie w apce żeby pokazywało napięcie już nie można wrócić do wyboru wyświetlania mocy czynnej
Na to chyba bramka nie ma wpływu.
To chyba problem w apce. Sprawdzimy
Najlepsze suple dla Twojego domu :mrgreen:
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

vajera wrote: Thu Aug 14, 2025 7:47 am
lukasz06 wrote: Wed Aug 13, 2025 10:56 pm Wersja 0.8.91 Nadal pokazuje zle.
Dziwne, @poszukiwacz pisał, że ma prawidłowe parametry, a te wartości, które odczytałeś Read Attribute też pasowały (230 000 / 1000 = 230 V, wszystkie operacje na uint32_t, więc bez ryzyka overflow). Dałbyś radę zebrać trochę logów z pracy żarówki?
Po zmianie w apce żeby pokazywało napięcie już nie można wrócić do wyboru wyświetlania mocy czynnej
Na to chyba bramka nie ma wpływu.

A aktualizują się te KPOPy z ENERGY(...)?
Ogólnie wgrałem tą ostatnią wersję jeszcze raz, tylko, że "merged"
Sparowałem gniazdko od nowa, ale jest to samo
Powtórzyłem te kroki, o których pisałeś i te KPOPy pokazują narazie 0, przedtem były same kreski
Logi z pracy żarówki, jak za mało to mogę zrobić dłużej

Code: Select all

3 55 50 4C 41 17 90 05 00 00 28 00 00 00 10 00 00 00 6E B5 9D 68 00 00 00 00 F3                                                                                         3F 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 76 05 00 00 32 00 00 00 10 00 00 00 4E 99 9D 68 00 00 0                                                                                        0 00 E7 FA 06 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 91 05 00 00 28 00 00 00 10 00 00 00 87 B5 9D 68 00 00 00 00 9D 4B 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 77 05 00 00 32 00 00 00 10 00 00 00 67 99 9D 68 00 00 00 00 13 83 06 00 00 00 00 00 53 55 50 4C 41 ]
[34086916][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481289, new local time 808481289
[34086917][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481289, local time attribute 808481289
[34086918][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:08:09 2025
                                                          <b><i>Supla uptime:</i></b> 34086 s
[34097170][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0x6), rejoined(NO)
[34097171][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34097171][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 33942272, current millis 34097171
[34097172][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85640, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34097 s
[34097174][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0xfc11), rejoined(NO)
[34097174][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34097175][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 33942272, current millis 34097175
[34097176][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85640, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34097 s
Send: [53 55 50 4C 41 17 92 05 00 00 28 00 00 00 10 00 00 00 A0 B5 9D 68 00 00 00 00 B4 58 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 78 05 00 00 32 00 00 00 10 00 00 00 80 99 9D 68 00 00 00 00 17 3F 06 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 93 05 00 00 28 00 00 00 10 00 00 00 B9 B5 9D 68 00 00 00 00 9E 6C 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 79 05 00 00 32 00 00 00 10 00 00 00 99 99 9D 68 00 00 00 00 6B 24 07 00 00 00 00 00 53 55 50 4C 41 ]
[34146924][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481349, new local time 808481349
[34146925][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481349, local time attribute 808481349
[34146926][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:09:09 2025
                                                          <b><i>Supla uptime:</i></b> 34146 s
Recv: [53 55 50 4C 41 17 7A 05 00 00 6E 00 00 00 11 00 00 00 99 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)
[34149200][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x1005) callback
[34149200][V][ZigbeeHandlers.cpp:276] zb_cmd_default_resp_handler(): Received default response: from address(0x7c86), src_endpoint(1) to dst_endpoint(1), cluster(0x6) for command (0x1) with status 0x0
[34149201][V][ZigbeeHandlers.cpp:280] zb_cmd_default_resp_handler(): command id (11), direction (1), is common (1)
[34149202][I][ZigbeeGateway.cpp:1756] zbCmdDefaultResponse(): tsn = 18, _custom_cmd_last_tsn = 5, _custom_cmd_last_tsn_flag = 1
[34149202][I][ZigbeeGateway.cpp:1770] zbCmdDefaultResponse(): zbCustomCmd default response async, tsn = 18, _custom_cmd_last_tsn_flag = 1
[34149203][I][ZigbeeGateway.cpp:1772] zbCmdDefaultResponse(): custom cmd rssi -79
[34149298][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34149298][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0x6)
[34149299][I][ZigbeeGateway.cpp:738] zbAttributeReporting(): on/off report ON
[34149299][I][z2s_devices_table.cpp:1474] Z2S_onOnOffReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, state 0x1
[34149300][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0xb54
Channel(0) value changed to 1
Send: [53 55 50 4C 41 17 94 05 00 00 78 00 00 00 06 00 00 00 00 99 18 00 00 01 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 95 05 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 ]
[34150303][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34150304][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0xfc11)
[34150305][I][ZigbeeGateway.cpp:895] zbAttributeReporting(): SONOFF_CUSTOM_CLUSTER cluster (0xfc11), attribute id (0x7004), attribute data type (0x23)
[34150305][I][z2s_devices_table.cpp:1310] Z2S_onSonoffCustomClusterReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, attribute id 0x7004, size 4
[34150306][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0x1388
[34150307][I][z2s_device_electricity_meter.cpp:113] msgZ2SDeviceElectricityMeter(): selector 0x1, value 0
[34150309][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34150310][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0xfc11)
[34150310][I][ZigbeeGateway.cpp:895] zbAttributeReporting(): SONOFF_CUSTOM_CLUSTER cluster (0xfc11), attribute id (0x7006), attribute data type (0x23)
[34150311][I][z2s_devices_table.cpp:1310] Z2S_onSonoffCustomClusterReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, attribute id 0x7006, size 4
[34150312][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0x1388
[34150313][I][z2s_device_electricity_meter.cpp:113] msgZ2SDeviceElectricityMeter(): selector 0x2, value 0
[34150315][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34150315][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0xfc11)
[34150316][I][ZigbeeGateway.cpp:895] zbAttributeReporting(): SONOFF_CUSTOM_CLUSTER cluster (0xfc11), attribute id (0x7005), attribute data type (0x23)
[34150317][I][z2s_devices_table.cpp:1310] Z2S_onSonoffCustomClusterReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, attribute id 0x7005, size 4
[34150318][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0x1388
[34150318][I][z2s_device_electricity_meter.cpp:113] msgZ2SDeviceElectricityMeter(): selector 0x0, value 243407
Send: [53 55 50 4C 41 17 96 05 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 ]
Send: [53 55 50 4C 41 17 97 05 00 00 69 00 00 00 D4 00 00 00 01 0E CE 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 0E 00 00 00 05 00 00 00 01 00 00 00 00 00 CF B6 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 ]
Send: [53 55 50 4C 41 ]
[34151300][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34151301][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0xfc11)
[34151301][I][ZigbeeGateway.cpp:895] zbAttributeReporting(): SONOFF_CUSTOM_CLUSTER cluster (0xfc11), attribute id (0x7006), attribute data type (0x23)
[34151302][I][z2s_devices_table.cpp:1310] Z2S_onSonoffCustomClusterReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, attribute id 0x7006, size 4
[34151303][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0x1388
[34151303][I][z2s_device_electricity_meter.cpp:113] msgZ2SDeviceElectricityMeter(): selector 0x2, value 44330
[34152305][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34152306][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0xfc11)
[34152307][I][ZigbeeGateway.cpp:895] zbAttributeReporting(): SONOFF_CUSTOM_CLUSTER cluster (0xfc11), attribute id (0x7004), attribute data type (0x23)
[34152307][I][z2s_devices_table.cpp:1310] Z2S_onSonoffCustomClusterReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, attribute id 0x7004, size 4
[34152308][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0x1388
[34152309][I][z2s_device_electricity_meter.cpp:113] msgZ2SDeviceElectricityMeter(): selector 0x1, value 181
Send: [53 55 50 4C 41 17 98 05 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 ]
Send: [53 55 50 4C 41 17 99 05 00 00 69 00 00 00 D4 00 00 00 01 0E CE 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 06 00 10 00 05 00 00 00 01 00 00 00 00 00 CF B6 00 00 00 00 12 07 00 00 00 00 68 A4 43 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 ]
Send: [53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 9A 05 00 00 28 00 00 00 10 00 00 00 E0 B5 9D 68 00 00 00 00 33 B3 05 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 7B 05 00 00 32 00 00 00 10 00 00 00 C0 99 9D 68 00 00 00 00 C1 69 05 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 9B 05 00 00 28 00 00 00 10 00 00 00 F9 B5 9D 68 00 00 00 00 77 BE 05 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 7C 05 00 00 32 00 00 00 10 00 00 00 D9 99 9D 68 00 00 00 00 28 F3 04 00 00 00 00 00 53 55 50 4C 41 ]
NLME Status Indication, status: 0x12
[34206932][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481409, new local time 808481409
[34206933][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481409, local time attribute 808481409
[34206934][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:10:09 2025
                                                          <b><i>Supla uptime:</i></b> 34206 s
Send: [53 55 50 4C 41 17 9C 05 00 00 E0 01 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 7D 05 00 00 EA 01 00 00 1A 00 00 00 E9 07 08 0E 05 0A 0A 0C 0E 00 00 00 45 75 72 6F 70 65 2F 57 61 72 73 61 77 00 53 55 50 4C 41 ]
Clock: current time: 2025-08-14 10:10:12
[34217190][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0x6), rejoined(NO)
[34217191][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34217191][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 34152306, current millis 34217191
[34217192][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85648, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34217 s
[34217194][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0xfc11), rejoined(NO)
[34217195][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34217195][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 34152306, current millis 34217195
[34217196][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85648, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34217 s
Send: [53 55 50 4C 41 17 9D 05 00 00 28 00 00 00 10 00 00 00 1D B6 9D 68 00 00 00 00 F1 0C 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 7E 05 00 00 32 00 00 00 10 00 00 00 FD 99 9D 68 00 00 00 00 C3 DE 05 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 9E 05 00 00 28 00 00 00 10 00 00 00 36 B6 9D 68 00 00 00 00 8B 1E 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 7F 05 00 00 32 00 00 00 10 00 00 00 16 9A 9D 68 00 00 00 00 9D 5E 06 00 00 00 00 00 53 55 50 4C 41 ]
[34266940][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481469, new local time 808481469
[34266941][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481469, local time attribute 808481469
[34266942][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:11:09 2025
                                                          <b><i>Supla uptime:</i></b> 34266 s
Send: [53 55 50 4C 41 17 9F 05 00 00 28 00 00 00 10 00 00 00 4F B6 9D 68 00 00 00 00 A5 28 07 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 80 05 00 00 32 00 00 00 10 00 00 00 2F 9A 9D 68 00 00 00 00 CF 01 06 00 00 00 00 00 53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 81 05 00 00 F4 01 00 00 08 00 00 00 99 18 00 00 02 55 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 A0 05 00 00 FE 01 00 00 32 00 00 00 99 18 00 00 02 00 00 00 B3 01 00 00 00 00 00 00 C0 A8 44 72 58 8C 81 36 AF 44 00 00 AB 1E 00 00 F7 85 00 00 F3 85 00 00 00 00 00 00 00 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
[34318222][I][ZigbeeHandlers.cpp:37] zb_action_handler(): Receive Zigbee action(0x2000) callback
[34318223][V][ZigbeeHandlers.cpp:133] zb_attribute_reporting_handler(): Received report from address(0x7c86) src endpoint(1) to dst endpoint(1) cluster(0x6)
[34318224][I][ZigbeeGateway.cpp:738] zbAttributeReporting(): on/off report OFF
[34318224][I][z2s_devices_table.cpp:1474] Z2S_onOnOffReceive(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, state 0x0
[34318225][I][z2s_devices_table.cpp:123] Z2S_findChannelNumberSlot(): a4:c1:38:3:5:d8:ff:ff, endpoint 0x1, channel type 0xb54
Channel(0) value changed to 0
Send: [53 55 50 4C 41 17 A1 05 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 ]
Send: [53 55 50 4C 41 17 A2 05 00 00 28 00 00 00 10 00 00 00 72 B6 9D 68 00 00 00 00 4A 43 06 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 82 05 00 00 32 00 00 00 10 00 00 00 52 9A 9D 68 00 00 00 00 06 E5 05 00 00 00 00 00 53 55 50 4C 41 ]
[34326948][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481529, new local time 808481529
[34326949][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481529, local time attribute 808481529
[34326950][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:12:09 2025
                                                          <b><i>Supla uptime:</i></b> 34326 s
[34337210][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0x6), rejoined(NO)
[34337211][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34337211][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 34318224, current millis 34337211
[34337212][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85648, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34337 s
[34337214][I][Z2S_Gateway.ino:1587] loop(): Device on endpoint(0x1), short address(0x7c86), model id(0x4200), cluster id(0xfc11), rejoined(NO)
[34337215][I][Z2S_Gateway.ino:1589] loop(): Gateway version: 0.8.91-14/08/2025
[34337215][I][Z2S_Gateway.ino:1619] loop(): getZbgDeviceUnitLastSeenMs 34318224, current millis 34337215
[34337216][I][Z2S_Gateway.ino:1620] loop(): Memory information: Flash chip real size:8388608 B, Free Sketch Space:3407872 B, Free Heap:85648, Minimal Free Heap:30952 B, HeapSize:361068 B, MaxAllocHeap:63476 B, Supla uptime:34337 s
Send: [53 55 50 4C 41 17 A3 05 00 00 28 00 00 00 10 00 00 00 8B B6 9D 68 00 00 00 00 92 51 06 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 83 05 00 00 32 00 00 00 10 00 00 00 6B 9A 9D 68 00 00 00 00 2A 6E 05 00 00 00 00 00 53 55 50 4C 41 ]
Send: [53 55 50 4C 41 17 A4 05 00 00 28 00 00 00 10 00 00 00 A4 B6 9D 68 00 00 00 00 18 5F 06 00 00 00 00 00 ]
Send: [53 55 50 4C 41 ]
Recv: [53 55 50 4C 41 17 84 05 00 00 32 00 00 00 10 00 00 00 84 9A 9D 68 00 00 00 00 45 28 05 00 00 00 00 00 53 55 50 4C 41 ]
[34386956][I][Z2S_Gateway.ino:1520] loop(): New UTC time 808481589, new local time 808481589
[34386957][I][Z2S_Gateway.ino:1534] loop(): Local Time Cluster UTC time attribute 808481589, local time attribute 808481589
[34386958][I][z2s_web_gui.cpp:507] fillMemoryUptimeInformation(): Memory & uptime information <b><i>Flash chip real size:</b></i> 8388608 B <b>| <i>Free Sketch Space:</b></i> 3407872 B<br><b><i>Free Heap:</b></i> 85716 B <b>| <i>Minimal Free Heap:</b></i> 30952 B <b>| <i>HeapSize:</b></i> 361068 B <b>| <i>MaxAllocHeap:</b></i> 63476 B<br><br><b><i>Local time:</i></b> Thu Aug 14 10:13:09 2025
poszukiwacz
Posts: 43
Joined: Wed Jan 04, 2023 11:03 am

Post

vajera wrote: Thu Aug 14, 2025 7:47 am
lukasz06 wrote: Wed Aug 13, 2025 10:56 pm Wersja 0.8.91 Nadal pokazuje zle.
Dziwne, @poszukiwacz pisał, że ma prawidłowe parametry, a te wartości, które odczytałeś Read Attribute też pasowały (230 000 / 1000 = 230 V, wszystkie operacje na uint32_t, więc bez ryzyka overflow). Dałbyś radę zebrać trochę logów z pracy żarówki?
Po zmianie w apce żeby pokazywało napięcie już nie można wrócić do wyboru wyświetlania mocy czynnej
Na to chyba bramka nie ma wpływu.

A aktualizują się te KPOPy z ENERGY(...)?
u mnie na tej ostatniej wersji softu gniazdko poprawnie odczytuje napięcie, natęzenie i moc
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

@Vajera, coś da radę z tym pomiarem w tym gniazdku jeszcze?
Oraz czy ono może służyć także jako router?
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: Mon Aug 18, 2025 7:50 pm @Vajera, coś da radę z tym pomiarem w tym gniazdku jeszcze?
Oraz czy ono może służyć także jako router?
Jestem na urlopie z rodziną, do bramki wracam pewnie po 25.08 - sprawdzę te pomiary. Co do funkcji routera to powinieneś mieć to napisane w instrukcji urządzenia.
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”