2f26083ce1
fix: Add mqtt.server_name option to override TLS SNI ( #32417 )
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-27 21:37:48 +02:00
Nerivec and GitHub
f8385b8899
fix: Improve startup signals behavior ( #31130 )
2026-02-24 20:23:52 +01:00
Koen Kanters
e2b7df9f84
fix(ignore): Remove retain/qos from mqtt publish logging https://github.com/Koenkk/zigbee2mqtt/pull/27983
2025-07-15 13:56:17 +02:00
ef07505b31
fix: Set MQTT retain and qos=1 on (re)connect ( #27983 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2025-07-15 13:29:57 +02:00
Koen Kanters and GitHub
c87d4524d5
fix(ignore): Migrate to Biome 2 ( #27785 )
2025-06-28 10:20:41 +02:00
cd9b752ede
feat: New health extension & extras in bridge/info ( #27164 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2025-06-16 19:45:36 +02:00
Koen Kanters and GitHub
b7b92da8ff
fix(ignore): Cleanup publish options ( #27226 )
2025-05-03 08:45:45 +02:00
Koen Kanters and GitHub
39e4468308
fix: Only send JSON state over WebSocket ( #27225 )
2025-05-03 08:42:07 +02:00
Nerivec and GitHub
6fbb8b5ca2
fix: Migrate to Biome ( #27150 )
2025-04-18 20:34:47 +02:00
Nerivec and GitHub
36e2baf081
fix: Use Map for State ( #27105 )
2025-04-14 21:51:01 +02:00
Nerivec and GitHub
fc31e0af0a
fix(ignore): partial cleanup for biome move ( #27076 )
2025-04-12 14:02:47 +02:00
Koen Kanters and GitHub
850f0820ac
fix: Don't allow publishing wildcards in MQTT topic ( #27025 )
2025-04-08 20:26:22 +02:00
SteffenBeermann and GitHub
a28a5baf17
fix: Enable use of MQTT username without password ( #25611 )
2025-01-06 20:19:18 +01:00
06f44533af
feat: Use Vitest for testing ( #25284 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-22 20:19:45 +01:00
Nerivec and GitHub
758ab34747
fix(ignore): import using node: prefix for built-in ( #25248 )
2024-12-18 22:19:33 +01:00
Nerivec and GitHub
1a9c79bb2f
feat: Typing for MQTT API ( #25098 )
2024-12-07 20:21:30 +00:00
Nerivec and Koen Kanters
e052988663
fix: Use built-in async for mqtt ( #24786 )
...
* fix: Use async for mqtt.
* Update mocks, fix expects
* Prettier.
* Use appropriate error for publish
* Set max listeners immediately after connect
* Add mqtt v5+ `disconnect` event handler
* Set maximum packet size in `CONNECT` packet
* Fix tests.
* Add setting for maximum packet size.
* Add `reasonString` to disconnect logs
* Fix tests
* Fix
* Prettier
2024-12-01 20:11:34 +01:00
Koen Kanters and Nerivec
b6186623f0
feat!: The big cleanup ( #24200 )
...
* Remove `deviceGroupMembership`
* Fix controller.ts
* Remove `legacy_api` logic from non-legacy extensions.
* Fix network map coverage.
* Remove all `legacy` extensions.
* Remove `legacy_availability_payload`, `legacy_api`. Remove legacy from configure.
* Fix prettier.
* Remove some leftovers
* Renamed `updateAvailable` to `update_available`
* Remove emitPublishAvailability
* Remove `configuration.yaml`
* Switch to pnpm
* Remove direct mqtt-packet dependency.
* fix pretty
* fix `getDependencyVersion`
* fix pnpm publish
* fix(ignore): fix pnpm publish
* Remove deprecated bridge `config/*`
* Improve update script
* Improve update.sh
---------
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-12-01 20:06:49 +01:00
Koen Kanters and GitHub
e642f7c86a
fix(ignore): Sync eslint settings from zhc ( #23951 )
...
* fix(ignore): Sync eslint settings from zhc
* u
2024-09-12 19:36:57 +00:00
Tomer and GitHub
c6ca472ca1
fix: Improve performance when logging is disabled ( #23893 )
...
* Improve log performance
* Bug fix
* Revert sample configuration
* Align package versions
* Revert dependecies version to allow testing
* Update package-lock.json
* Fix prettier issue
* Coverage to 100%
* Fix CR comments
* remove uneeded changes
* Make the same perf optimization to the MQTT messages
* Fix MQTT tests
* prettier fix
* Allow easy mocking of stub logger callTransports function to receive the actual message
* cleanup leftover
* Fix prettier issues
* Finalize logger mock structure and add few lambda log calls
* fix prettier issue
* Run prettier
* Revert "fix prettier issue"
This reverts commit b409d538e3 .
* Update zigbee.ts
Fix prettier issue
* Fix test issues
* Revert await removal
2024-09-12 20:33:05 +02:00
Koen Kanters and GitHub
afd80449b3
fix(ignore): Migrate to eslint 9 ( #23800 )
...
* Eslint 9
* Automatic changes
* Manual changes
* Process feedback
* u
2024-09-08 14:26:18 +02:00
48d77e4b5e
fix: Enforce TS strict type checking ( #23601 )
...
* Enforce TS `strict` type checking.
* updates
* updates
* updates
* Updates
* Updates
* pretty
* u
* u
* u
* Updates
* updates
* Updates
* Updates
* `ReadonlyArray`
* scenesChanged
* objectID
* Improve coverage
* u
* u
* process feedback
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-09-07 11:40:50 +00:00
Koen Kanters
d9ba4524e4
fix(ignore): fix 5fcf295ab8
2024-07-25 21:59:40 +02:00
Koen Kanters and GitHub
30227a13ae
chore: Implement prettier ( #23153 )
...
* chore: Implement prettier
* Run prettier
* fix lint
* process feedback
* process feedback
2024-06-24 18:58:47 +00:00
Nerivec and GitHub
9c2264e86e
fix: MQTT code optimization/formatting ( #23072 )
...
* MQTT code optimization/formatting
* Feedback.
* Move `onConnect` logic inside `connect` event.
2024-06-18 13:59:07 +02:00
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
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
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
Koen Kanters and GitHub
92f53235f3
fix: Fix crash when stopping in case MQTT client did not connect yet ( #22110 )
2024-04-06 10:49:22 +00: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
Koen Kanters and GitHub
bbb6f9e042
fix: Change MQTT publish log to debug ( #22063 )
2024-04-03 18:13:46 +00:00
4daddfc5f7
Update dependencies ( #18923 )
...
* fix(ignore): update dependencies
* fix types/node
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2023-09-10 09:28:14 +02:00
koenkk
b55cc0a037
fix(ignore): chore: Update dependencies ( #18459 )
2023-08-09 20:04:20 +02:00
koenkk
b09b8ec3d6
fix(ignore): Revert "chore: Update dependencies ( #18459 )"
...
This reverts commit 53cb42103c .
2023-08-09 07:33:27 +02:00
53cb42103c
chore: Update dependencies ( #18459 )
...
* fix(ignore): update dependencies
* Make compatible with MQTT 5
* updates
---------
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
2023-08-08 20:04:22 +02:00
Koen Kanters and GitHub
a7e02a7be8
fix(ignore): Better fix for #17891 ( #17951 )
...
* fix(ignore): Better fix for #17891
* remove onlythis
2023-06-08 09:04:14 +02:00
Sean Kelly and GitHub
c12bedb3e5
fix: Fix HA entities unavailable after broker restart when broker does not persist retained messages ( #17891 )
...
* Fix race condition with bridge status message cancelling reinitialize after a reconnect to mqtt
* Fix tests
2023-06-07 09:16:11 +02:00
Koen Kanters
125ca61812
Log MQTT disconnect reason. #13965
2022-09-12 09:34:20 +02:00
Koen Kanters
6314b86d9b
Better fix for #13382
2022-08-11 20:23:19 +02:00
Koen Kanters
343ef7fd9f
Only republish retained messages when none are received. #9629
2022-07-25 19:37:33 +02:00
Koen Kanters
316daee49d
Republish retained messages when reconnected to MQTT server. #9629
2022-07-24 22:17:29 +02:00
Koen Kanters
41ece365aa
Allow to configure availablility payloads to be a JSON object. #10802
2022-02-02 19:28:44 +01:00
Koen Kanters
e7447cf1e3
Another attempt to fix https://github.com/Koenkk/zigbee2mqtt/issues/9822
2021-11-30 20:20:46 +01:00
Koen Kanters
c2d9ffa7ad
Fix "Possible EventEmitter memory leak detected. 1001 drain listeners added to [Socket]" warning. #9822
2021-11-29 17:49:54 +01:00
Koen Kanters
23b87755cf
Stop Zigbee2MQTT with error when initial MQTT connect fails. https://github.com/Koenkk/zigbee2mqtt/issues/8956
2021-10-04 22:08:06 +02:00
Koen Kanters
ab3a9da630
Revert "Improve MQTT error handling. https://github.com/Koenkk/zigbee2mqtt/issues/8956 "
...
This reverts commit 45a4978ca8 .
2021-10-04 20:51:09 +02:00
Koen Kanters
45a4978ca8
Improve MQTT error handling. https://github.com/Koenkk/zigbee2mqtt/issues/8956
2021-10-03 12:29:54 +02:00
Koen Kanters and GitHub
045ee573a0
Final TypeScript refactor ( #8859 )
...
* Update
* Updates
* More refactoringzzz
* Bindoo
* Loadz of typescripting
* Logga
* Updates
* Updates
* Updates
* Updates
* cleanup
* updates
* Fix coverage
* Fixes
* Updates
* Updates
2021-10-02 10:09:38 +02:00
Koen Kanters
6888394600
Refactor frontend to TypeScript.
2021-09-22 20:01:46 +02:00
Koen Kanters and GitHub
fb081316e2
More TypeScript refactoring ( #8721 )
...
* Update
* u
* Updates
* Updates
* updates
* Updates
* Update
2021-09-11 14:51:29 +02:00