Cody Cutrer and GitHub
226945cae0
fix: Fix Home Assistant event entities for openHAB ( #25140 )
2024-12-09 20:34:19 +01:00
7d63a87aad
fix!: Remove permit_join_timeout ( #25082 )
...
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
Co-authored-by: IIIEII <al@iiieii.ru >
Co-authored-by: Artem Draft <Drafteed@users.noreply.github.com >
2024-12-08 15:49:42 +01:00
ba45445544
fix!: Home Assistant: remove duplicate sensor/select for select/number/button entities ( #25026 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-07 21:43:47 +01:00
Nerivec and GitHub
1a9c79bb2f
feat: Typing for MQTT API ( #25098 )
2024-12-07 20:21:30 +00:00
IIIEII and GitHub
d891320314
fix(ignore): Fixed additional case of calculation of group state when including no… ( #25104 )
2024-12-07 21:05:55 +01:00
Koen Kanters and GitHub
51f364a1d5
fix(ignore): Fix external converter loading ( #25063 )
2024-12-05 19:58:55 +01:00
IIIEII and GitHub
9227e139de
fix: Fixed calculation of group state when including non-default endpoints ( #25059 )
2024-12-04 21:20:47 +01:00
Koen Kanters
b581dc6994
fix(ignore): fix tests
2024-12-01 20:37:13 +01:00
Koen Kanters
a6b36051f0
fix!: Ensure data in response is always empty on error ( #24971 )
2024-12-01 20:11:34 +01:00
Nerivec and Koen Kanters
d78c6facab
fix: Cleanup leftover legacy settings logic ( #24947 )
2024-12-01 20:11:34 +01:00
Nerivec and Koen Kanters
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
Nerivec and Koen Kanters
c6958c4991
feat: Automatic settings migration ( #24871 )
...
* feat: Automatic settings migration
* Handle failing on unsupported version.
* Handle change not needed.
* Test change not wanted.
* Cleanup.
* Add `external_converters` removal.
* Fix schema export.
2024-12-01 20:11:34 +01: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
Nerivec and Koen Kanters
563514c446
fix!: Rework OTA ( #24634 )
...
* fix(ignore): Update zh and zhc
* update
* Update
* fix
* fix!: Rework OTA
* Import only required from zhc.
* Remove uri-js
* Update settings.schema.json
* fix save
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-01 20:11:33 +01:00
Koen Kanters
95279b02af
fix(ignore): Small cleanup ( #24696 )
2024-12-01 20:11:08 +01:00
Koen Kanters
e290057e21
fix!: Remove deprecated Home Assistant integration features ( #24494 )
...
* Remove `legacy_trigger`
* Remove legacy_entity_attributes
* Remove `LEGACY_MAPPING`
* Finish cleanup
* Updates
* revert some entities removal
* Update
* Updates
2024-12-01 20:11:06 +01:00
Koen Kanters
61cf5094c7
fix 236b084396
2024-12-01 20:10:35 +01:00
Nerivec and Koen Kanters
9537ef05d5
fix!: Improve bind/bridge/groups parsing and resolving consistency ( #24432 )
...
* Improve bind/bridge/groups parsing and resolving consistency
* Fix mqtt payload casing. Improve typing.
* Cleanup tests
* Add test for bind endpoint by ID.
* Match behavior for group response 'default' endpoint.
2024-12-01 20:09:28 +01:00
Koen Kanters
3f76586a50
fix!: Remove configuring group members through configuration.yaml ( #24338 )
...
* fix!: Remove configuring group members through `configuration.yaml`
* Updates
* Updates
* fix
* Updates
* Feedback
2024-12-01 20:09:28 +01:00
Nerivec and Koen Kanters
6f6e7c3ee0
fix: Refactor tests to TS ( #24357 )
2024-12-01 20:09:27 +01:00
Nerivec and Koen Kanters
2124d3450c
fix!: Improve permit join ( #24257 )
...
* fix: Improve permit join
* Update Home Assistant permit join switch
* Remove `permit_join` from `settings.schema.json`
* Update zigbee-herdsman version to pre-release.
* Fix pnpm overrides
* Update test/homeassistant.test.js
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-12-01 20:07:06 +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
3220b27c8a
fix!: HA permit join switch: disable automatically after 254 seconds ( #24245 )
2024-12-01 20:06:37 +01:00
Der Mundschenk & Compagnie and GitHub
4690fe1a55
fix(ignore): Ignore None actions for HA events ( #24972 )
2024-11-30 21:09:09 +01:00
826547a8e1
fix(ignore): Prevent empty events from being published to HA ( #24969 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-11-30 13:46:31 +01:00
Der Mundschenk & Compagnie and GitHub
d82d782bac
fix(ignore): Prevent incorrect event_type due to duplicate keys ( #24954 )
2024-11-29 20:26:33 +01:00
Der Mundschenk & Compagnie and GitHub
5ca4cf4acd
fix: Home Assistant: template errors when action key is missing or empty in state payload ( #24931 )
2024-11-27 08:11:07 +01:00
790373b896
fix(ignore): Update zigbee-herdsman-converters to 20.53.0 ( #24906 )
...
Co-authored-by: Ilya Kirov <kirovilya@gmail.com >
2024-11-24 21:29:37 +00:00
Koen Kanters and GitHub
b1508ae52f
Update zigbee-herdsman-converters to 20.48.0 ( #24820 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.48.0
* u
2024-11-18 21:06:11 +00:00
Der Mundschenk & Compagnie and GitHub
22e13c52b9
fix: Home Assistant event entities, part 2 ( #24717 )
...
* Add Philips Hue Tap dial rotation
* Add support for Hue Tap buttons
* Refactor action parsing
2024-11-11 21:10:20 +01:00
Boris Dolgov and GitHub
87cee1aea6
fix: Replace connect-gzip-static with express-static-gzip to become compatible with Node 23 ( #24619 )
...
Old versions of connect-gzip-static are not compatible with node 23,
new versions of connect-gzip-static are not compatible with node 18,
but we want to support both. express-static-gzip is compatible with
all versions.
2024-11-04 20:57:25 +01:00
848f250dbb
feat: Add experimental support for Home Assistant event entities ( #24233 )
...
* Expose new event entity for actions
* Unify exposed actions for HA
* Fix event tests
* Only add event entities wen homeassistant/experimental_event_entities is true
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-11-03 14:54:42 +01:00
Koen Kanters and GitHub
b2d3bbce3c
Update zigbee-herdsman-converters to 20.30.0 ( #24398 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.30.0
* u
2024-10-19 12:00:50 +00:00
e2f19f19b4
fix: Frontend code cleanup @Nerivec ( #24322 )
...
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-10-14 19:56:00 +02:00
Vladimir Kotikov and GitHub
1fdf0a0a47
feat: Allow serving frontend under subpath ( #24244 )
...
* Allow app running in the server subdirectory
* Use path.posix to manage urls
* Add base_utl to config schema
2024-10-10 14:22:48 +02:00
17ac9cf8e7
feat: Add throttle option for devices ( #24122 )
...
* basic spam control
* used npm run pretty:write
* add test for SPAMMER description to comply with 100% coverage test
* define friendly name to spammer test devices
* Update README.md
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
* trying now with throttleit library
* lint corrections
* last lint request
* correct await / async definiction
* remove description support
* change first command to be executed
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-10-02 21:15:15 +02:00
Koen Kanters and GitHub
c82f93230d
fix(ignore): update zigbee-herdsman-converters to 20.21.0 ( #24172 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.21.0
* fix
2024-10-01 21:27:13 +02:00
Koen Kanters and GitHub
8fe76e090f
fix(ignore): update zigbee-herdsman-converters to 20.19.0 ( #24130 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.19.0
* fix tests
2024-09-28 18:47:32 +00:00
Koen Kanters and GitHub
22e1480f74
Update zigbee-herdsman-converters to 20.17.1 ( #24092 )
...
* fix(ignore): update zigbee-herdsman-converters to 20.17.1
* Update
2024-09-24 20:29:25 +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 and GitHub
efd3d3dfb0
fix: Set zigbee-herdsman transmit power through settings on startup ( #23566 )
...
* fix: Set zigbee-herdsman transmit power through settings on startup
* use advanced
2024-08-09 12:33:59 +00:00
Nerivec and GitHub
13ac8a0f53
fix: Improve looping performance ( #23541 )
...
* Use herdsman improved looping.
* Fix lint.
* Fix tests.
* Feedback
2024-08-08 20:21:40 +02:00
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
d0f5733db3
fix: Remove group from Home Assistant when removed ( #23492 )
...
* Fire event when group gets removed
* Add a unit test for the new behavior
* Make prettier happy
* Add missing return type
* Merge device and group removal events
* Unbreak bridgeLegacy.ts
* Update homeassistant.ts
* Update bridge.ts
* Update bridge.ts
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-08-04 22:14:36 +02:00
Koen Kanters
d9ba4524e4
fix(ignore): fix 5fcf295ab8
2024-07-25 21:59:40 +02:00
Koen Kanters
af7467bf62
fix(ignore): Update test cases for https://github.com/Koenkk/zigbee2mqtt/pull/23328
2024-07-13 21:20:33 +02:00
Koen Kanters
f97ad2e951
fix(ignore): fix tests
2024-07-03 22:37:12 +02:00
4210edf60e
fix: Allow definition to override HA discovery payload ( #23075 )
...
* Added function to override payloads for non-conforming devices
* override implementation for Bosch BTH-RA
* unit test including mockup for this device
* Experimental and broken integration of overrideHaConfig
* Not working experiments; mqtt publish debug output
* fixes
* Updates
* fix
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-07-03 21:27:45 +02:00