* 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>
* 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
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.
* 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>
* 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>
* emit event on converter triggers
* use meta.deviceExposesChanged() instead
* add ExposesChanged event for homeassistant discovery
* add tests for receive.ts and homeassistant.ts
* 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
* Adding 2 config params under 'frontend' : 'ssl_cert' and 'ssl_key' to contain file patch of certificate files to expose frontend in HTTPS.
* Taking all PR remarks in account.
Co-authored-by: phil <phil@8godsprod.com>
* want a way to prevent attribute from being cached
* Update filtered_cache description to be more clear
* Fix emitStateChange was returning wrong payload in to parameter
* Directly get filtered_cache from entity and forgo parameter to State.set()
* Add tests to cover filtered_cache
* Update state.ts
* Update controller.test.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>