Koen Kanters
1e7e00e8dd
fix(ignore): Improvements for #25299 ( #25364 )
2024-12-30 14:30:54 +01:00
Koen Kanters
329b8c9c27
fix: Improve device icon serving ( #25299 )
2024-12-28 15:07:02 +01:00
Nerivec
06f44533af
feat: Use Vitest for testing ( #25284 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-22 20:19:45 +01:00
Nerivec
758ab34747
fix(ignore): import using node: prefix for built-in ( #25248 )
2024-12-18 22:19:33 +01:00
Koen Kanters
c3b4628a1d
fix: Remove oneOf bool/obj from settings schema ( #25195 )
...
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-12-17 22:27:55 +01:00
Nerivec
1a9c79bb2f
feat: Typing for MQTT API ( #25098 )
2024-12-07 20:21:30 +00:00
Koen Kanters
a6b36051f0
fix!: Ensure data in response is always empty on error ( #24971 )
2024-12-01 20:11:34 +01:00
Nerivec
9907005256
feat: Live loading of external JS (converters/extensions) ( #24764 )
...
* feat: Live loading of external JS (converters/extensions)
* Fix imports
* Improve error message on MQTT save
* Handle non-existing base path
* Throw on bad converter
* Add tests
* Fix use of ext conv in network map tests.
* More coverage.
* Dont mock zhc for basics, tests actual live loading
* Update
* feat: Live loading of external JS (converters/extensions)
* Fix imports
* Improve error message on MQTT save
* Handle non-existing base path
* Throw on bad converter
* Add tests
* Fix use of ext conv in network map tests.
* More coverage.
* Dont mock zhc for basics, tests actual live loading
* Update
* Fix rebase
* Fix
* Bump zhc
* pretty
* fix typing
* Cleanup `external_converters` setting remnants.
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-01 20:11:34 +01:00
Koen Kanters
8aef77e57e
fix(ignore): Remove external definition type
2024-12-01 20:11:34 +01:00
Nerivec
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
Nerivec
6f6e7c3ee0
fix: Refactor tests to TS ( #24357 )
2024-12-01 20:09:27 +01:00
Koen Kanters
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
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
Koen Kanters
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
Nerivec
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
64222d231f
Update zigbee-herdsman-converters to 20.8.5 ( #23799 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.8.5
* Update utils.ts
2024-09-01 19:23:14 +00:00
Nerivec
13ac8a0f53
fix: Improve looping performance ( #23541 )
...
* Use herdsman improved looping.
* Fix lint.
* Fix tests.
* Feedback
2024-08-08 20:21:40 +02:00
Koen Kanters
bd7dec0f11
fix(ignore): update dependencies ( #23508 )
...
* fix(ignore): update dependencies
* update
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
2024-08-05 21:08:40 +00:00
Koen Kanters
8397f47649
fix: Fix availability blocking other extensions startup ( #23316 )
...
* fix: Fix availability blocking frontend startup
* Process feedback
* fix
2024-07-11 21:07:01 +02:00
Koen Kanters
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
f57465324a
fix: Availability code optimization/formatting ( #23065 )
...
* Availability code optimization/formatting
* Fix mock.
* Fix map => some
2024-06-16 17:25:40 +02:00
ghoz
d41cf43a7c
fix: Exclude homeassistant entries from null cleanup ( #22995 )
...
* exclude homeassistant entries from null cleanup
* Add a test
* Don't hardcode the exclude list, add one more test
* implement suggested changes as per review
2024-06-15 10:27:29 +02:00
Nerivec
2b8eaa196a
fix: Enforce no floating promises ( #22880 )
...
* Enforce no floating promises.
* forEach => for/of. Fix tests.
2024-06-04 20:05:39 +02:00
Koen Kanters
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
Oleksandr Masliuchenko
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
Oleksandr Masliuchenko
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
koenkk
8ab96e124f
fix: Don't crash on startup when external converters fails to load https://github.com/Koenkk/zigbee2mqtt/issues/20010
2023-12-04 20:40:45 +01:00
Koen Kanters
dd1e0db407
fix(ignore): Use zhc types ( #20006 )
...
* fix(ignore): Use zhc TS types
* updates
2023-12-04 10:05:05 +01:00
Der Mundschenk & Compagnie
838629ca42
feat: Add Home Assistant scene discovery ( #19838 )
...
* Add device info for Zigbee Groups
* Move Scene and getScenes to utils.ts
* Add auto-discovery for group scenes
* Update scene auto-discovery on change
* Add support for single endpoint scenes
* Add test for onScenesChanged
* Move Scene to types.d.ts
* Allow optional object_id_postfix key in payload
* Add scene name to object_id for nicer HA entity_id
2023-11-26 19:38:53 +01:00
Koen Kanters
e36983b4b5
fix: Publish zigbee-herdsman/zigbee-herdsman-converters version to bridge/info ( #19364 )
2023-10-21 10:56:31 +02:00
Ilya Kirov
4bd281ce6c
fix(ignore): Add ep l till 24 ( #18422 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2023-07-25 17:53:31 +00:00
Jorge Schrauwen
91f22f1230
fix(ignore): Add th1-th10 endpoints for Ubisys H10 ( #18405 )
...
See koenkk/zigbee2mqtt#18121
2023-07-23 18:37:56 +02:00
Matt
05cb1406bb
Fix extension path to make debugging easier in VS Code ( #15741 )
...
* Fix extension path to make debugginge easier in VScode
* Fix linting error
2022-12-25 16:57:48 +01:00
Koen Kanters
1f642d86e8
Add disabled option ( #15589 )
...
* Add disabled option
* Updates
* Tests
* Add restart required
2022-12-23 23:56:29 +01:00
github-actions[bot]
9289a26f11
Update dependencies ( #15204 )
...
* Update dependencies
* Fix diff
* fix
* update
Co-authored-by: Koenkk <Koenkk@users.noreply.github.com >
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2022-11-27 14:52:47 +01:00
Matt
4d7b1a6c03
Allow Zigbee2MQTT to be installed as a module ( #14396 )
...
* Fix mnodule resolution
Allows the correct module path to be found if installed as a package
* Correct signature to avoid TS error
* Allow module to be included in another module
Only create hash ot auto-start if it is the main module, otherwise export the `start` function
2022-10-08 10:48:15 +02:00
Koen Kanters
50b5c67dde
Support effects for Home Assistant light groups. #13438
2022-10-08 10:22:26 +02:00
Jorge Schrauwen
a0255d0f2c
Always treat filtered_* as full matches ( #13083 )
...
* Revert "update tests to use regex ^$ anchors"
This reverts commit 3d9bc552e9 .
* utils: filterProperties should ensure full match
2022-07-11 17:24:34 +02:00
Jorge Schrauwen
db021e6711
Allow regexes for filtered_attributes, filtered_cache and filtered_optimistic options ( #13047 )
...
* Ensure filtered_attributes and filtered_optimistic are also regex
Bring filtered_attributes and filtered_optimistic in line with the newer filtered_cache.
All three of them are now regex matches instead of absolute matches.
* update tests to use regex ^$ anchors
* utils: add filterProperties
2022-07-06 17:07:22 +02:00
Koen Kanters
83b490a968
Add zigbee2mqtt/bridge/request/backup ( #12797 )
...
* Add backup call
* Updates
2022-06-14 20:14:01 +02:00
Koen Kanters
d0530b8214
Don't allow friendly names to include control character. #12379
2022-05-04 21:00:29 +02:00
Koen Kanters
8bf06901c2
Availability for groups ( #11626 )
...
* Availability for groups. https://github.com/Koenkk/zigbee2mqtt/issues/9176
* Updates
* Fix
2022-03-14 15:51:02 +01:00
Koen Kanters
e5d6bd1d68
Don't cache no_occupancy_since. https://github.com/Koenkk/zigbee2mqtt/issues/11183
2022-03-07 18:38:36 +01: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
30177b0db4
Restructure settings ( #10437 )
...
* -
* deep copy schema
* -
* -
* -
* -
* -
* -
* -
* -
* -
* -
* -
* -
2022-01-09 22:28:44 +01:00
amadeo-alex
df182be21f
Fix log commit hash newline ( #9897 )
...
* Added trim operation before commitHash is returned
* Update utils.ts
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2021-11-30 12:24:36 +08:00
Koen Kanters
65f7fc0532
Fix lint errors of 0a7a477281
2021-11-27 09:36:03 +01:00
Koen Kanters
0a7a477281
Send only 1 MQTT message when last_seen is enabled and Zigbee message is received. https://github.com/Koenkk/zigbee2mqtt/issues/9519
2021-11-27 09:31:31 +01:00
Koen Kanters
0282011255
Replace old availability implementation with new one ( #8904 )
...
* Update
* Updates
* More refactoringzzz
* Bindoo
* Loadz of typescripting
* Logga
* Updates
* Updates
* Updates
* Updates
* cleanup
* updates
* Fix coverage
* Fixes
* Updates
* Updates
* Replace old availability implementation with new one.
2021-10-02 10:25:43 +02:00
Koen Kanters
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