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
Wrzucę wieczorem ten, co mi działa na 100%. Teraz mam trochę namieszane, bo dodałem u siebie webinterface i inne takie ;-). Nawet z nimi bez problemu wszedł na N4.
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
lukasz06
Posts: 2543
Joined: Sun Jul 17, 2022 6:53 pm
Has thanked: 46 times
Been thanked: 21 times

Post

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

@Zibi_007 podrzucisz zipa z kodem, może jeszcze ja cos namieszałem ekstra
Wrzucę wieczorem ten, co mi działa na 100%. Teraz mam trochę namieszane, bo dodałem u siebie webinterface i inne takie ;-). Nawet z nimi bez problemu wszedł na N4.
O podrzucisz z webinterface też ? 😉
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

lukasz06 wrote: Tue Jan 14, 2025 10:03 am
Zibi_007 wrote: Tue Jan 14, 2025 9:51 am
[email protected] wrote: Tue Jan 14, 2025 7:21 am [...]

@Zibi_007 podrzucisz zipa z kodem, może jeszcze ja cos namieszałem ekstra
Wrzucę wieczorem ten, co mi działa na 100%. Teraz mam trochę namieszane, bo dodałem u siebie webinterface i inne takie ;-). Nawet z nimi bez problemu wszedł na N4.
O podrzucisz z webinterface też ? 😉
Jak poczyszczę z głupot (dodawałem różne czujniki, przyciski, diody itp.) to tak.
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

Mam pytanie, gniazdko raportuje następujące dane:

Code: Select all

 ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSVOLTAGE_ID                                = 0x0505,     /*!< Represents the most recent RMS voltage reading in @e Volts (V). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSCURRENT_ID                                = 0x0508,     /*!< Represents the most recent RMS current reading in @e Amps (A). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACTIVE_POWER_ID                              = 0x050B,     /*!< Represents the single phase or Phase A, current demand of active power delivered or received at the premises, in @e Watts (W). */

  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_MULTIPLIER_ID                      = 0x0600,     /*!< Provides a value to be multiplied against the @e InstantaneousVoltage and RMSVoltage attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_DIVISOR_ID                         = 0x0601,     /*!< Provides a value to be divided against the @e InstantaneousVoltage */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_MULTIPLIER_ID                      = 0x0602,     /*!< Provides a value to be multiplied against the @e InstantaneousCurrent and @e RMSCurrent attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_DIVISOR_ID                         = 0x0603,     /*!< Provides a value to be divided against the @e ACCurrent, @e InstantaneousCurrent and @e RMSCurrent attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_MULTIPLIER_ID                        = 0x0604,     /*!< Provides a value to be multiplied against the @e InstantaneousPower and @e ActivePower attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_DIVISOR_ID                           = 0x0605
  
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_VOLTAGE_OVERLOAD_ID                       = 0x0801,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output voltage supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_CURRENT_OVERLOAD_ID                       = 0x0802,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output current supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_ACTIVE_POWER_OVERLOAD_ID                  = 0x0803,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output active power supported by device. */
  
Nie mam żadnego doświadczenia z ElectricityMeter - może ktoś podpowie jak je tam upchnąć i czy to wystarczający zestaw?

@Klew? ;)
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

@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.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

vajera wrote: Tue Jan 14, 2025 11:23 am Mam pytanie, gniazdko raportuje następujące dane:

Code: Select all

 ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSVOLTAGE_ID                                = 0x0505,     /*!< Represents the most recent RMS voltage reading in @e Volts (V). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSCURRENT_ID                                = 0x0508,     /*!< Represents the most recent RMS current reading in @e Amps (A). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACTIVE_POWER_ID                              = 0x050B,     /*!< Represents the single phase or Phase A, current demand of active power delivered or received at the premises, in @e Watts (W). */

  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_MULTIPLIER_ID                      = 0x0600,     /*!< Provides a value to be multiplied against the @e InstantaneousVoltage and RMSVoltage attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_DIVISOR_ID                         = 0x0601,     /*!< Provides a value to be divided against the @e InstantaneousVoltage */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_MULTIPLIER_ID                      = 0x0602,     /*!< Provides a value to be multiplied against the @e InstantaneousCurrent and @e RMSCurrent attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_DIVISOR_ID                         = 0x0603,     /*!< Provides a value to be divided against the @e ACCurrent, @e InstantaneousCurrent and @e RMSCurrent attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_MULTIPLIER_ID                        = 0x0604,     /*!< Provides a value to be multiplied against the @e InstantaneousPower and @e ActivePower attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_DIVISOR_ID                           = 0x0605
  
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_VOLTAGE_OVERLOAD_ID                       = 0x0801,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output voltage supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_CURRENT_OVERLOAD_ID                       = 0x0802,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output current supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_ACTIVE_POWER_OVERLOAD_ID                  = 0x0803,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output active power supported by device. */
  
Nie mam żadnego doświadczenia z ElectricityMeter - może ktoś podpowie jak je tam upchnąć i czy to wystarczający zestaw?

@Klew? ;)
https://github.com/krycha88/GUI-Generic ... /INA_219.h

https://github.com/krycha88/GUI-Generic ... ty_meter.h

https://github.com/krycha88/GUI-Generic ... e_PzemV3.h
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

[email protected] wrote: Tue Jan 14, 2025 11:37 am
vajera wrote: Tue Jan 14, 2025 11:23 am Mam pytanie, gniazdko raportuje następujące dane:

Code: Select all

 ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSVOLTAGE_ID                                = 0x0505,     /*!< Represents the most recent RMS voltage reading in @e Volts (V). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_RMSCURRENT_ID                                = 0x0508,     /*!< Represents the most recent RMS current reading in @e Amps (A). */

ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACTIVE_POWER_ID                              = 0x050B,     /*!< Represents the single phase or Phase A, current demand of active power delivered or received at the premises, in @e Watts (W). */

  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_MULTIPLIER_ID                      = 0x0600,     /*!< Provides a value to be multiplied against the @e InstantaneousVoltage and RMSVoltage attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACVOLTAGE_DIVISOR_ID                         = 0x0601,     /*!< Provides a value to be divided against the @e InstantaneousVoltage */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_MULTIPLIER_ID                      = 0x0602,     /*!< Provides a value to be multiplied against the @e InstantaneousCurrent and @e RMSCurrent attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACCURRENT_DIVISOR_ID                         = 0x0603,     /*!< Provides a value to be divided against the @e ACCurrent, @e InstantaneousCurrent and @e RMSCurrent attributes. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_MULTIPLIER_ID                        = 0x0604,     /*!< Provides a value to be multiplied against the @e InstantaneousPower and @e ActivePower attributes */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_ACPOWER_DIVISOR_ID                           = 0x0605
  
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_VOLTAGE_OVERLOAD_ID                       = 0x0801,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output voltage supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_CURRENT_OVERLOAD_ID                       = 0x0802,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output current supported by device. */
  ESP_ZB_ZCL_ATTR_ELECTRICAL_MEASUREMENT_AC_ACTIVE_POWER_OVERLOAD_ID                  = 0x0803,     /*!< Specifies the alarm threshold, set by the manufacturer, for the maximum output active power supported by device. */
  
Nie mam żadnego doświadczenia z ElectricityMeter - może ktoś podpowie jak je tam upchnąć i czy to wystarczający zestaw?

@Klew? ;)
https://github.com/krycha88/GUI-Generic ... /INA_219.h

https://github.com/krycha88/GUI-Generic ... ty_meter.h

https://github.com/krycha88/GUI-Generic ... e_PzemV3.h
Thx, chyba ten przykład z INA będzie najlepszy na początek.
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

https://pl.aliexpress.com/item/1005005407281311.html

tutaj potrzebny będzie klaster sceny - notatka dla samego siebie
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

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
Wpisujemy swoje dane i moduł normalnie loguje się nam do cloud.
Zrzut ekranu 2025-01-14 131542.png
Nie ma dodanych jeszcze żadnych urządzeń, więc reszta procedury, jak była do tej pory.
Parujemy urządzenie (jeśli nie widzi to naciskamy krótko raz boot i powinno się sparować).
I teraz uwaga. Jeśli nie dodało się w cloud automatycznie, to resetujemy moduł (albo krótko na reset, albo odłączamy na chwilę od zasilania).
Powinno się dodane urządzenie pokazać w cloud.
Zrzut ekranu 2025-01-14 131732.png
Na zrzucie w przykładzie czujnik binarny zdefiniowany jako otwarcie okna.

Uwaga! Kod jest autorstwa Kolegi @vajera. Ja tylko dodałem mozliwość wpisania danych do logowania z interfejsu www i skompilowałem. Cała reszta to jego zasługa. Powinno się wgrać do każdego C6 (osobiście testowałem na N4, N8 i N16, nie testowałem na mini).
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
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

@Zibi007 Chcę Ci podziękować za te wszystkie słowa wsparcia a przede wszystkim za tak aktywne współuczestniczenie w tym wyzwaniu/projekcie.
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”