ghoz and GitHub
eff341bd14
fix: Differentiate the MQTT publish/ received from regular MQTT logs ( #23026 )
...
* Differentiate the spammy "MQTT publish"/"received MQTT message" from regular logs
Rather than creating subnamespaces, keep the z2m:mqtt logger namespace only for those 2 , move back to z2m default for the rest.
* fix tests
2024-06-12 21:01:16 +02:00
881037c371
feat: Allow hierarchical filtering of logger namespaces ( #22859 )
...
* POC: Allow hierarchical filtering of logger namespaces
matches the closes defined namespace log level:
advanced:
log_namespaced_levels:
'zh:zstack:unpi': info
would also apply to zh:zstack:unpi:write and zh:zstack:unpi:parse
To limit runtime penalty uses the namespacedLevels as a lazy cache
* Move namespace levels to separate cache
Avoid poluting the namespacedLevel in the config / UI
Add cache reset on config time log level change
* Actually use the cache
* Optimize/Cleanup
* Add some namespace hierarchy filter tests
* More coverage.
* Fix #22935
---------
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-06-04 20:17:35 +02:00
Nerivec and GitHub
2b8eaa196a
fix: Enforce no floating promises ( #22880 )
...
* Enforce no floating promises.
* forEach => for/of. Fix tests.
2024-06-04 20:05:39 +02:00
8f195f67e6
fix(ignore): update dependencies ( #22883 )
...
* fix(ignore): update dependencies
* Update homeassistant.test.js
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-06-02 11:33:34 +02:00
Koen Kanters
457ed86ef8
fix(ignore): TuYa -> Tuya https://github.com/Koenkk/zigbee2mqtt/discussions/22876
2024-06-01 16:44:22 +02:00
f9b0fff185
Update zigbee-herdsman-converters to 19.45.0 ( #22814 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.45.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-05-30 19:20:02 +00:00
Mike Ryan and GitHub
b6ad6418a1
feat: Add api for device re-interview ( #22788 )
...
* feat: add api for device re-interview
- Adds an API that allows for the re-interview of a device. This can be
useful a device firmware upgrade adds new device endpoints (as is the case
when upgrading an Inovelli VZM31-SN to 2.18). Without the ability to
re-interview, one must remove and re-add the device.
* rename from reinterview to interview
* publish devices after interview.
* only allow device ids or names, not endpoints
2024-05-30 20:48:34 +02:00
Koen Kanters
ae8a59dd51
fix(ignore): Fix Home Assistant device_automation being cleared due to ef68cc328e
2024-05-27 16:59:56 +02:00
Koen Kanters and GitHub
ef68cc328e
fix: Optimize Home Assistant discovery ( #22701 )
...
* fix: Optimize Home Assistant discovery
* update
* u
* u
* u
* fix
2024-05-21 20:53:37 +02:00
d484405cf0
fix: Expose custom clusters to MQTT ( #22583 )
...
* (feat) Expose Custom Clusters in MQTT
- Introducing bridge/definitions
- Updating test case for custom clusters
- Updating new path after ZCL revamp with 0.47.0
This change is needed for nurikk/zigbee2mqtt-frontend#2001
* Fixing test case
* Update lib/model/device.ts
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
* Update test/bridge.test.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
* Removing the publishDefinition call from some events. updating tests
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-05-21 19:54:18 +02:00
Koen Kanters
63de2c5ccc
fix: Fix Entity 'homeassistant/sensor' is unknown https://github.com/Koenkk/zigbee2mqtt/issues/22258
2024-05-19 21:32:09 +02:00
ce6043acb0
fix: Improve settings changing ( #22674 )
...
* Add namespaced levels for logger. Add NS to mqtt. Deprecate 'warn'.
* Improve setting validation.
* Fix setting through frontend
* Support reload + frontend improvements
* update description
* remove requiresRestart
* Fix tests.
* Fix namespaced logging at lower levels. Add better tests.
* fix: Fix settings changing
* remove `removeNullPropertiesFromObject` from bridge
* Add extra test
* update
---------
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-05-19 16:01:28 +02:00
2eec6a4d26
fix: Add namespace-specific levels support to logger ( #22619 )
...
* Add namespaced levels for logger. Add NS to mqtt. Deprecate 'warn'.
* Improve setting validation.
* Fix setting through frontend
* Support reload + frontend improvements
* update description
* remove requiresRestart
* Fix tests.
* Fix namespaced logging at lower levels. Add better tests.
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-05-19 15:47:40 +02:00
Nerivec and GitHub
d26ccaed65
fix: Fix logger crashing on restart ( #22565 )
2024-05-09 21:42:28 +02:00
Nerivec and GitHub
eb49f523bf
fix: Add settings for finer control over debug log level ( #22426 )
...
* Add settings for finer control over debug log level.
* Updates from feedback.
2024-05-05 21:52:26 +02:00
3a61f0acfa
Update zigbee-herdsman-converters to 19.34.0 ( #22411 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.34.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-05-02 20:20:06 +00:00
4b291bf012
Update zigbee-herdsman-converters to 19.31.1 ( #22341 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.31.1
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-04-29 20:01:56 +00:00
f774753213
fix(ignore): update zigbee-herdsman-converters to 19.19.1 ( #22171 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.19.1
* fix(configure): pass definition to function call (#22154 )
* Pass definition to configure
* fix test
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
Co-authored-by: Sergei Salimov <32013287+mrskycriper@users.noreply.github.com >
2024-04-10 22:02:12 +02:00
Koen Kanters and GitHub
c98e5a74de
fix: Remove deprecated Home Assistant color_mode ( #22142 )
2024-04-08 21:19:17 +02:00
Nerivec and GitHub
3c1a4afcb7
fix: Convert logger into a class ( #22129 )
2024-04-07 20:52:55 +02:00
Koen Kanters and GitHub
002050f35b
fix: Reduce MQTT publishing by excluding debug logging from bridge/logging ( #22066 )
...
* fix: Reduce MQTT publishing by excluding debug logging from `bridge/logging`
* fix tests
* fix
2024-04-06 12:44:43 +02:00
701cdda38c
Update zigbee-herdsman-converters to 19.14.0 ( #22065 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.14.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-04-04 19:33:39 +00:00
Koen Kanters and GitHub
bbb6f9e042
fix: Change MQTT publish log to debug ( #22063 )
2024-04-03 18:13:46 +00:00
Koen Kanters
cdd6fb0864
fix(ignore): fix 73566df
2024-04-02 22:39:33 +02:00
73566dff98
feat: Unified logging across z2m/zh/zhc ( #21984 )
...
* Unified logging across z2m/zh/zhc
* Updates
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-04-02 22:33:51 +02:00
62844ff637
Update zigbee-herdsman-converters to 19.12.1 ( #22044 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.12.1
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-04-02 20:17:43 +00:00
1f3d61dc7f
Update zigbee-herdsman-converters to 19.7.0 ( #21947 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.7.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-03-25 21:24:00 +00:00
86c2e90e06
Update zigbee-herdsman-converters to 18.49.0 ( #21767 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.49.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-03-11 20:40:55 +00:00
Koen Kanters
29543bad4b
fix(ignore): fix tests
2024-03-10 19:54:35 +01:00
koenkk
1110d3f8ef
fix: Fix incorrect update state when Z2M is restarted during OTA update https://github.com/Koenkk/zigbee2mqtt/issues/12794
2024-03-05 22:33:33 +01:00
94c92ef021
Update zigbee-herdsman-converters to 18.43.0 ( #21678 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.43.0
* Update configure.test.js
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-03-04 21:44:31 +00:00
Koen Kanters and GitHub
66fb672492
fix: Fix set endpoint name conversion ( #21653 )
...
* fix: Fix `set` endpoint name conversion https://github.com/Koenkk/zigbee2mqtt/issues/21646
* fix
2024-03-02 21:45:19 +01:00
1ee1710a96
Update zigbee-herdsman-converters to 18.39.1 ( #21590 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.39.1
* fix
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-02-26 21:32:08 +00:00
Koen Kanters and GitHub
956003aa0a
fix: Fix endpoint matching for TuYa dummy endpoints ( #21576 )
2024-02-26 20:02:05 +01:00
8fb28f9e2f
Update zigbee-herdsman-converters to 18.38.0 ( #21568 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.38.0
* fix tests
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-02-25 21:09:35 +00:00
24b5f9b43a
feat: Add support for button entity in Home Assistant ( #21372 )
...
* add button entity support
* add enabled_by_default to select
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-02-13 19:43:21 +01:00
Oleksandr Masliuchenko and GitHub
b4473d6e24
fix: Remove predefined endpoint list, remove limits on device friendly name ( #21325 )
...
* Get rid of predefined list of endpoints, correct friend name validations
* Fix minor bug while parsing a topic for an unknown device
2024-02-10 16:50:44 +01:00
81335e5b4b
fix: Remove dependency on predefined list of endpoints (parseEntityID() function) ( #21264 )
...
* Add function resolveEntityByID() function as an improved alternative for parseEntityID()
* Port deviceGroupMembership.ts from parseEntityID() to resolveEntityByID()
* Migrade groups.ts from parseEntityID() to resolveEntityByID()
* Improve test coverage on groups functionality
* Migrate from parseEntityID() to resolveEntityByID() for bridge functionality
* Migrate from parseEntityID() to resolveEntityByID() for bind functionality
* Finally get rid of parseEntityID() function
* Fix linter issues
* Move resolveEntityAndEndpoint() function to zigbee.ts
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-02-08 20:54:05 +01:00
a5a87a79a8
fix: Match endpoint name in the MQTT topic based on endpoints listed in the definition ( #21214 )
...
* Add endpoint matching based on the endpoint names list in the device definition
* Cleanup debug prints
* Correct creating endpoint names list, filter out null elements
* Correct test due to slightly changed behavior
* Fix endpoint name lookup when converter does not provide full name-to-id mapping
* Simplify topic name matching
* Remove obsolete branches, improve code coverage
* Make linter happy
* Make linter happy
* Remove dependency on endpoint names while removing device from all groups
* Get rid of predefined list of endpoints when processing group state update
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-02-07 20:12:48 +01:00
0361b13b66
Update zigbee-herdsman-converters to 18.25.0 ( #21114 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.25.0
* fix
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-30 20:58:29 +01:00
koenkk
c37f3e834e
chore: remove onlythis
2024-01-30 20:12:52 +01:00
0d716288bf
Update zigbee-herdsman-converters to 18.22.0 ( #21040 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.22.0
* Update homeassistant.test.js
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-27 08:55:15 +00:00
Der Mundschenk & Compagnie and GitHub
6372d84259
fix: Republish correctly on scene changes to Home Assistant ( #20952 )
2024-01-23 19:25:18 +01:00
45579dcf10
Update zigbee-herdsman-converters to 18.18.0 ( #20933 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.18.0
* Update bridge.test.js
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-22 20:02:57 +00:00
97eac16aaf
fix: Notify systemd for start, stop, watchdog ( #20482 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-01-21 21:49:17 +01:00
slugzero and GitHub
e76f568f0f
fix: Remove deprecated sendWhen ( #20861 )
2024-01-18 18:28:52 +01:00
slugzero and GitHub
0007db42b0
fix(ignore): Ability to trigger events from converters on incoming Zigbee messages ( #20776 )
...
* emit event on converter triggers
* use meta.deviceExposesChanged() instead
* add ExposesChanged event for homeassistant discovery
* add tests for receive.ts and homeassistant.ts
2024-01-15 21:08:08 +01:00
2bd7df84eb
Update zigbee-herdsman-converters to 18.12.0 ( #20775 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.12.0
* Update configure.test.js
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-13 20:06:27 +00:00
ce7d022fda
Update zigbee-herdsman-converters to 18.10.0 ( #20682 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.10.0
* Update bridge.test.js
* Update bridge.test.js
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-08 20:14:03 +00:00
d942db9a92
Update zigbee-herdsman-converters to 18.7.0 ( #20607 )
...
* fix(ignore): update zigbee-herdsman-converters to 18.7.0
* Update bridge.test.js
* Update frontend.test.js
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2024-01-06 10:32:21 +00:00