Commit graph

96 commits

Author SHA1 Message Date
Me No Dev
2b3b4f05d5
Merge branch 'master' into release/v3.3.x 2025-07-23 01:45:13 +03:00
Jan Procházka
ae634a92e3
fix(zigbee): Fix RGB color calculation (#11624) 2025-07-23 01:44:36 +03:00
Me No Dev
4c51968acf
Merge branch 'master' into release/v3.3.x 2025-07-21 15:49:41 +03:00
Jan Procházka
995e603d3a
fix(zigbee): Replace assert with error log to solve immediate crash (#11614)
* fix(zigbee): Replace assert with error log to solve immediate crash

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-21 15:47:43 +03:00
Jan Procházka
cb3329be60
feat(zigbee): Add callback option for default response message (#11613)
* feat(zigbee): Add cb option for default response message

* fix(example): Add timeout and fix spelling

* feat(zigbee): Add global default response cb option

* fix(example): Use task for measure and sleep

* fix(zigbee): Remove debug logs

* ci(pre-commit): Apply automatic fixes

* fix(example): Add retry and fix typo

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-21 15:47:21 +03:00
me-no-dev
a69c71f6ad feat(core): Update core version to 3.3.0 2025-07-16 19:55:53 +03:00
Me No Dev
df3db3c9dc
Merge branch 'master' into release/v3.3.x 2025-07-08 17:59:48 +03:00
Jan Procházka
e2c7578fa8
feat(zigbee): Add Fan Control endpoint support (#11559)
* feat(zigbee): Add Fan Control endpoint support

* fix(zigbee): Update logs and change device_id

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-08 13:08:56 +03:00
Me No Dev
f84fab5592
Merge branch 'master' into release/v3.3.x 2025-07-04 17:14:12 +03:00
me-no-dev
ac961f671a Update core version to 3.2.1 2025-07-03 16:42:28 +03:00
Me No Dev
70696df2d6
Merge branch 'master' into release/v3.3.x 2025-07-03 12:25:04 +03:00
John
6474127dd4
Update ZigbeeColorDimmableLight to clamp color hue and saturation to 0-254 (Fixes #11527) (#11528)
* Clamp Zigbee color saturation to 0-254

* Clamp hue to 0-254 for Zigbee color lights

* Use std::min instead of ternary operator

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-02 15:48:03 +03:00
Me No Dev
aaeabb5b87
Merge branch 'master' into release/v3.3.x 2025-06-10 13:28:31 +03:00
Jan Procházka
0aada091e1
feat(zigbee): Support min/max setting for Analog EP (#11451)
* feat(zigbee): Support min max for Analog EP

* feat(zigbee): Use cfloat FLT_MAX

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-10 11:31:17 +03:00
Me No Dev
e9813c6a52
Merge branch 'master' into release/v3.3.x 2025-06-04 19:12:52 +03:00
Jan Procházka
0ab9a0fe6f
feat(zigbee): Update to esp-zigbee-sdk 1.6.5 and fix ci.json files (#11436)
* feat(zigbee): Update esp-zigbee-sdk and fix ci.json files

* fix(ci): Check if LED_BUILTIN exist

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-04 18:48:48 +03:00
Jan Procházka
e3018b6719
feat(zigbee): Add method to set/get/report analog output (#11431)
* feat(zigbee): Add methot to set,get,report analog output

* fix(ci): Update json file for example

* fix(zigbee): Add missing keywords

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-04 17:40:52 +03:00
Jan Procházka
cae66e65a3
feat(zigbee): Add endpoint identification in read handlers + command structures fix (#11425)
* feat(zigbee): Add endpoint identification in read handlers

* fix(zigbee): initialize Zigbee command structures with zeros

* fix(zigbee): Spelling correction

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-04 17:40:28 +03:00
Jan Procházka
91fd517cf1
feat(zigbee): Check the type of leave signal (#11385)
* feat(zigbee): Check the type of leave signal

* Update libraries/Zigbee/src/ZigbeeCore.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libraries/Zigbee/src/ZigbeeCore.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2025-05-27 14:33:30 +03:00
Jan Procházka
7bafc1b19b
feat(zigbee): Add AC DC ElectricalMeasurement support (#11384)
* feat(zigbee): Add AC DC ElectricalMeasurement support

* ci(pre-commit): Apply automatic fixes

* ci(): fix precommit codespell

* ci(pre-commit): Add spaces between numbers and units

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2025-05-27 14:10:18 +03:00
Jan Procházka
6c3528ac69
feat(zigbee): Add support for Binary input EP + Analog EP extension (#11339)
* feat(zigbee): Add binary input and analog extension

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat(zigbee): Remove setBinaryInputReporting

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
2025-05-27 13:41:38 +03:00
Jan Procházka
542274d5ea
feat(zigbee): Remove static variables, improve binding, new example (#11316)
* feat(zigbee): Remove static variables, improve binding, new example

* feat(example): Add missing header

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-05-27 13:13:47 +03:00
Ludovic BOUÉ
9090b46da5
feat(esp32): Zigbee power outlet example (#11296)
* feat(esp32): Zigbee power outlet example

Zigbee power outlet example

* feat(esp32): Zigbee power outlet example

Change username

* feat(esp32): Zigbee power outlet example

Remove old comment

* fix(zigbee): fix power outlet compile errors and update example

* fix(example): Update readme

* fix(example): Update ci json file

* ci(pre-commit): Apply automatic fixes

* fix(): precommit codespell

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-05-27 13:13:28 +03:00
Jan Procházka
d3509ef98b
feat(zigbee): Add battery voltage attribute support (#11210)
* feat(zigbee): Add battery voltage attribute support

* Update libraries/Zigbee/src/ZigbeeEP.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libraries/Zigbee/examples/Zigbee_Temp_Hum_Sensor_Sleepy/Zigbee_Temp_Hum_Sensor_Sleepy.ino

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-04-09 11:25:58 +03:00
Sugar Glider
b333bf2697
fix(zigbeeEP): review of names and memory allocation (#11199)
* fix(zigbeeEP): review of names and memory allocation

* fix(zigbeeEP): destructor shall free any allocated memory

* fix(zigbee_ep): forgotten var name change

* feat(zigbee_ep): use static heap memory for manufacturer and model names

* feat(zigbee_ep): changed model and manufacturer to heap

* feat(zigbee_ep): use static heap memory allocation

* fix(zigbee_ep): using stack only for adding attribute

* feat(zigbee_ep): reverting back read data type

* fix(zigbee_ep): rooling back to use malloc for remote attr reading

* feat(zigbee_ep): check malloc return for null

* fix(zigbee_ep): replace nullptr by NULL after C malloc()

* ci(pre-commit): Apply automatic fixes

* fix(zigbee_ep): fix variable scope

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(zigbee_ep): fix variable scope

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-05 18:47:38 +03:00
Jan Procházka
23ded939ea
feat(zigbee): Add PM2.5 endpoint support (#11205)
* feat(zigbee): Add PM2.5 endpoint support

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-04-05 18:46:20 +03:00
Jan Procházka
a3b6fe61ba
feat(zigbee): Add check, boolean returns, fix Analog, add optional reset on factoryReset (#11153)
* feat(zigbee): Add checks on setting attrs and commands

* feat(zigbee): Add error info in the logs

* fix(zigbee): Fix memory leak, print esp_zb_zcl_status_t error, remove analogValue from analog EP

* feat(example): Update factoryResetoption in sleepy example

* fix(zigbee): Add error checks to Illuminance EP

* fix(zigbee): Return false on first error hit

* fix(zigbee): Apply same formatting on all returns

* fix(zigbee): Add check when adding a OTA cluster

* fix(zigbee): release locks before returning

* fix(zigbee): use correct return in doorWindowHandle

* fix/zigbee): Add missing return in WindowCovering

* fix(zigbee): Added a note of future task

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-03-27 22:13:48 +02:00
MikaFromTheRoof
e37435c442
feat(zigbee): Add Illuminance sensor endpoint (#11171)
* Added Zigbee light sensor

* Add comment for macro

* Some last corrections

* refactor(zigbee): changed class name to ZigbeeIlluminanceSensor

* feat(zigbee): Illumanance sensor update

* fix(zigbee): Change name of macro to avoid possible conflict with esp-zigbee-sdk

* Update keywords.txt

* fix(zigbee): Add Illuminance to Cmake file

* fix(example): Update Illuminance example

* ci(pre-commit): Apply automatic fixes

* Update Zigbee_Illuminance_Sensor.ino

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-03-27 12:56:30 +02:00
Jan Procházka
e2915c48e8
feat(zigbee): Save network channel after 1st joining for faster rejoin (#11123)
* feat(zigbee): Save network channel after 1st joining for faster rejoin

* ci(pre-commit): Apply automatic fixes

* feat(zigbee): Add channel mask reset after timeout

* feat(zigbee): Add the resetChannelMask to all Begin methods

* feaz(zigbee): Move function to private and add set method

* fix(example): Remove test from device mode name

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-03-19 14:08:56 +02:00
Ludovic BOUÉ
07d6a5a0d2
feat(Zigbee): Adding Zigbee Wind speed sensor endpoint (#10455)
* Create ZigbeeWindSpeedSensor.h

* Create ZigbeeWindSpeedSensor.cpp

* Update ZigbeeWindSpeedSensor.cpp

* Update ZigbeeWindSpeedSensor.cpp

* Create ZigbeeWindSpeedSensor.ino

* Update ZigbeeWindSpeedSensor.ino

* Update ZigbeeWindSpeedSensor.ino

* Create ci.json

* Rename ZigbeeWindSpeedSensor.ino to Zigbee_Wind_Speed_Sensor.ino

* Rename ci.json to ci.json

* Update CMakeLists.txt

* Update Zigbee_Wind_Speed_Sensor.ino

* Update Zigbee_Wind_Speed_Sensor.ino

* Update Zigbee_Wind_Speed_Sensor.ino

* Update ZigbeeWindSpeedSensor.cpp

* Update ZigbeeWindSpeedSensor.cpp

Use ESP_ZB_HA_SIMPLE_SENSOR_DEVICE_ID device id

* feat(zigbee): Add windspeed sensor endpoint

* Update Zigbee.h

Add ZigbeeWindSpeedSensor.h

* update example

* add missing sdkconfig include

* add readme

* ci(pre-commit): Apply automatic fixes

* Update README.md

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-03-12 15:38:09 +02:00
Jan Procházka
2276f0b794
fix(zigbee): Add manuf_code to report attribure commands (#11066) 2025-03-10 21:21:00 +02:00
Jan Procházka
665d6f8e8d
fix(zigbee): Use correct attributeID in setAnalogInputReporting (#11065) 2025-03-10 21:20:34 +02:00
Oli
4677ea6ad8
Fix to issue #11044 (#11064)
Fix to a copy-paste error that causes a Guru Meditation crash with Zigbee Analog Example.
2025-03-10 13:53:43 +02:00
oddlama
7575fa0ce8
fix(zigbee): use correct carbon dioxide cluster function in setTolerance (#11015)
* fix(zigbee): use correct carbon dioxide cluster function in setTolerance

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-26 11:50:28 +02:00
Jan Procházka
923da957e4
feat(zigbee): Add ZigbeeGateway endpoint support + Time Cluster bugfix (#11009)
* fix(zigbee): Remove the need of native ieee802154 radio

* feat(zigbee): Add ZigbeeGateway endpoint support

* fix(zigbee): Fix TimeCluster missing status attribute

* feat(zigbee): Add new src to CMakeLists

* feaz(zigbee): Update keywords.txt with latest updates

* feat(zigbee): Add 8MB Zigbee ZCZR partitions to other socs

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
2025-02-26 11:49:24 +02:00
Lucas Saavedra Vaz
7485c653bb
ci(zigbee): Check if Zigbee is enabled for CI tests (#11012)
* ci(zigbee): Check if Zigbee is enabled for CI tests

* ci(zigbee): Fix requirements

* fix(zigbee): Use LED_BUILTIN for range extender

* fix(zigbee): Use default GPIO if LED_BUILTINnot defined
2025-02-25 18:00:39 +02:00
oddlama
1467d87454
fix(zigbee): use correct pressure cluster function in setTolerance (#11008)
Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2025-02-25 10:17:17 +02:00
Me No Dev
b33470e44b
IDF release/v5.4 (#10998)
* IDF release/v5.4 bcb3c32d

* fix(zigbee): Remove the need of native ieee802154 radio

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
2025-02-25 10:13:10 +02:00
pwclay
9a783a5d2c
feat(zigbee): Add Analog endpoint device (input, output, value clusters) (#10950)
* add analog sensor modules

* feat(zigbee): Add analog value, input and output support

* fix(zigbee): add missing functiong to header file

* fix(zigbee): Update log messages

* ci(pre-commit): Apply automatic fixes

* fix(example): Fix comment typo

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-20 10:59:43 +02:00
Jan Procházka
eec2af3d35
feat(zigbee): Add range extender device endpoint (#10970)
* feat(zigbee): Add range extender device endpoint

* ci(pre-commit): Apply automatic fixes

* fix(example): Fix typo catched by precommit

---------

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-19 23:31:37 +02:00
me-no-dev
55f4f1bfa8 Update core version to 3.2.0 2025-02-18 19:10:54 +02:00
Me No Dev
783271b6b5
Merge pull request #10890 from P-R-O-C-H-Y/libs/update-zigbee-1.6.2
fix(zigbee): Update esp-zigbee-sdk to 1.6.3 + necessary fixes
2025-02-18 14:01:16 +02:00
me-no-dev
dbfde15b6a Update core version to 3.1.3 2025-02-17 15:28:32 +02:00
me-no-dev
62082398d3 Update core version to 3.1.2 2025-02-13 14:32:20 +02:00
Jan Procházka
fb6b788b30
feat(zigbee): Support HSV color commands for RGB light endpoint (#10959)
* feat(zigbee): Support HSV color commands

* ci(pre-commit): Apply automatic fixes

* feat(zigbee): Add hue and sat attributes and update color capabilities

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-13 13:34:30 +02:00
Jan Procházka
7f8c77f9ee
feat(zigbee): Add vibration sensor endpoint (#10944) 2025-02-13 13:03:02 +02:00
Jan Procházka
83abca1604
feat(zigbee): Add OTA client cluster support (#10946)
* feat(zigbee): Add OTA client cluster support

* feat(zigbee): Add conditions to reject OTA upgrade

* feat(zigbee): Add newest version of OTA handler

* fix(zigbee): Fix errors and warnings, swap parameters order

* feat(zigbee): Add simple OTA Client example

* ci(pre-commit): Apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-13 13:02:35 +02:00
Jan Procházka
5ba4c21a99
fix(zigbee): Add default destructor and fix initialization of tm struct (#10943) 2025-02-06 17:06:07 +02:00
Henning Kulander
db0bbad934
Created Zigbee Endpoint for Window Covering. (#10914)
* feat(zigbee): Added Endpoint for Window Covering (#10913)

* Added example Sketch.

* Added window covering to CMakeLists.txt.

* feat(zigbee): Window covering tilt support and fixes

* fix(zigbee): Fix typos

* ci(pre-commit): Apply automatic fixes

* fix(ci): Fixes of typos

---------

Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-04 17:52:02 +02:00
Jan Procházka
6eb99d3ae3
feat(zigbee): Add IAS Zone endpoints (Contact Switch + Door/Window Handle) (#10918)
* feat(zigbee): Add IAS Zone endpoints

* ci(pre-commit): Apply automatic fixes

* fix(ci): Typo fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-02-04 11:25:11 +02:00