Dyskusja ogólna [bramka Zigbee]

User avatar
Zibi_007
Posts: 579
Joined: Tue Oct 31, 2023 10:06 pm

Post

rafalekkalwak@wp.pl 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.
Zachęcam do dodawania urządzeń Zigbee do bramki Z2S, zgłoszenia tutaj: https://forum.supla.org/viewtopic.php?t=16638

Nec Hercules contra plures!
lukasz06
Posts: 1176
Joined: Sun Jul 17, 2022 6:53 pm

Post

Zibi_007 wrote: Tue Jan 14, 2025 9:51 am
rafalekkalwak@wp.pl 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: 579
Joined: Tue Oct 31, 2023 10:06 pm

Post

lukasz06 wrote: Tue Jan 14, 2025 10:03 am
Zibi_007 wrote: Tue Jan 14, 2025 9:51 am
rafalekkalwak@wp.pl 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.
Zachęcam do dodawania urządzeń Zigbee do bramki Z2S, zgłoszenia tutaj: https://forum.supla.org/viewtopic.php?t=16638

Nec Hercules contra plures!
vajera
Posts: 725
Joined: Wed Oct 31, 2018 7:58 am

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? ;)
vajera
Posts: 725
Joined: Wed Oct 31, 2018 7:58 am

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.
rafalekkalwak@wp.pl
Posts: 824
Joined: Mon Feb 06, 2023 8:56 am

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
vajera
Posts: 725
Joined: Wed Oct 31, 2018 7:58 am

Post

rafalekkalwak@wp.pl 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.
vajera
Posts: 725
Joined: Wed Oct 31, 2018 7:58 am

Post

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

tutaj potrzebny będzie klaster sceny - notatka dla samego siebie
User avatar
Zibi_007
Posts: 579
Joined: Tue Oct 31, 2023 10:06 pm

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.
Zachęcam do dodawania urządzeń Zigbee do bramki Z2S, zgłoszenia tutaj: https://forum.supla.org/viewtopic.php?t=16638

Nec Hercules contra plures!
vajera
Posts: 725
Joined: Wed Oct 31, 2018 7:58 am

Post

@Zibi007 Chcę Ci podziękować za te wszystkie słowa wsparcia a przede wszystkim za tak aktywne współuczestniczenie w tym wyzwaniu/projekcie.

Return to “Bramka ZigBee”