Commit Graph

59 Commits

Author SHA1 Message Date
Jakub Jirutka c2e95bdb6a Remove core-js polyfills (#14788)
According to engines.node in package.json, the minimal supported version
of Node.js is 14.

* `Object.fromEntries()` is supported by Node.js since 12.0.0
* `Array.prototype.flat()` is supported by Node.js since 11.0.0

These polyfills were added in #9085, but the minimum supported Node.js
version has since been raised to 14.
2022-11-05 14:17:53 +01:00
Koen Kanters 60bf855e74 Fix starting via cli.js. https://github.com/Koenkk/zigbee2mqtt/pull/14396 2022-11-02 20:01:06 +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 68035a1256 Fix restart not working (#12629) 2022-05-29 08:15:47 +00:00
Koen Kanters e305ecf571 Improve #ec2bf1a95d6c45c093f68df832bc6bcbdd372a5a 2022-04-20 17:59:16 +02:00
Koen Kanters ec2bf1a95d Fix out of memory error when starting on system with low RAM. #12034 2022-04-20 16:59:30 +02:00
Koen Kanters dbcd768e1d Log out of memory error when initial build fails. #10555 2022-01-06 17:59:10 +01:00
Koen Kanters 62bf76c11f Fix site links 2021-11-01 18:12:27 +01:00
Koen Kanters 7f8632437d Add polyfills. https://github.com/Koenkk/zigbee2mqtt/issues/9085 2021-10-09 17:18:31 +02:00
Koen Kanters 17dc22fdb0 Move source map install to index.js 2021-08-14 09:59:31 +02:00
Koen Kanters 62d763614a Fix build failing when starting from outside Zigbee2MQTT directory. https://github.com/Koenkk/zigbee2mqtt/issues/8222 2021-08-02 18:18:44 +02:00
Koen Kanters bf29fa8164 Always write hash on build. https://github.com/Koenkk/zigbee2mqtt/issues/8145 2021-07-27 19:47:39 +02:00
Koen Kanters 7b65dc631b Enable TypeScript (#8074)
* Enable Typescript

* Fix tests

* Fix tests again

* Automatically (re)build

* Updates

* Updates

* Update shrinkwrap

* Enable sourcemaps
2021-07-21 19:35:14 +02:00
Koen Kanters 00c2894bb4 Reread settings on restart. https://github.com/Koenkk/zigbee2mqtt/discussions/6628 2021-03-09 19:50:05 +01:00
Koen Kanters 5889588a8a Add zigbee2mqtt/bridge/request/options and zigbee2mqtt/bridge/request/restart (#6089)
* Initial

* Update schema

* Log changed options

* Implement zigbee2mqtt/bridge/request/restart

* Implement restart required

* Updates

* Updatos

* Set rtscts: false defaults

* Updates

* Updates
2021-02-06 23:32:20 +08:00
Koen Kanters 9a6397fe75 Make Zigbee2MQTT naming consistent 2020-08-01 10:36:20 +02:00
Koen Kanters ad13564687 Improve error messages when configuration is invalid. #3943 2020-07-23 19:17:26 +02:00
Koen Kanters d83085ea7f Zigbee-herdsman (#1945)
* Update zigbee-herdsman and zigbee-shepherd-converters.

* Force Aqara S2 Lock endvices (#1764)

* Start on zigbee-herdsman controller refactor.

* More updates.

* Cleanup zapp.

* updates.

* Propagate adapter disconnected event.

* Updates.

* Initial refactor to zigbee-herdsman.

* Refactor deviceReceive to zigbee-herdsman.

* Rename

* Refactor deviceConfigure.

* Finish bridge config.

* Refactor availability.

* Active homeassistant extension and more refactors.

* Refactor groups.

* Enable soft reset.

* Activate group membership

* Start on tests.

* Enable reporting.

* Add more controller tests.

* Add more tests

* Fix linting error.

* Data en deviceReceive tests.

* Move to zigbee-herdsman-converters.

* More device publish tests.

* Cleanup dependencies.

* Bring device publish coverage to 100.

* Bring home assistant test coverage to 100.

* Device configure tests.

* Attempt to fix tests.

* Another attempt.

* Another one.

* Another one.

* Another.

* Add wait.

* Longer wait.

* Debug.

* Update dependencies.

* Another.

* Begin on availability tests.

* Improve availability tests.

* Complete deviceAvailability tests.

* Device bind tests.

* More tests.

* Begin networkmap refactors.

* start on networkmap tests.

* Network map tests.

* Add utils tests.

* Logger tests.

* Settings and logger tests.

* Ignore some stuff for coverage and add todos.

* Add remaining missing tests.

* Enforce 100% test coverage.

* Start on groups test and refactor entityPublish to resolveEntity

* Remove joinPathStorage, not used anymore as group information is stored into zigbee-herdsman database.

* Fix linting issues.

* Improve tests.

* Add groups.

* fix group membership.

* Group: log names.

* Convert MQTT message to string by default.

* Fix group name.

* Updates.

* Revert configuration.yaml.

* Add new line.

* Fixes.

* Updates.

* Fix tests.

* Ignore soft reset extension.
2019-09-09 19:48:09 +02:00
Koen Kanters 6adfdacb3c Don’t quit twice. https://github.com/Koenkk/zigbee2mqtt/issues/1550 2019-05-20 20:43:25 +02:00
Willi Eggeling 69d04d0648 shutdown controller on SIGTERM (#1313)
Previously, the controller was only properly shutdown on SIGINT.
SIGTERM is used by kill (unix) and to stop Docker containers.
2019-03-24 14:27:49 +01:00
Koenkk fc664bdc68 Fix node version to >=8.11 10 and implement check on startup. https://github.com/Koenkk/zigbee2mqtt/issues/552 2018-11-07 20:05:14 +01:00
Koenkk c5cb60e998 Enforce code style. #45 2018-05-17 17:20:46 +02:00
Koen Kanters d06522d488 Refactor and rename. #8 2018-04-18 18:26:13 +02:00
Koen Kanters 0a73511609 Make parser type specific. 2018-04-16 21:49:25 +02:00
Koen Kanters 7057b2f9d7 Support tradfri light bulbs. 2018-04-16 21:41:24 +02:00
Koen Kanters 49f37047cc Return if device is not supported. 2018-04-16 20:08:38 +02:00
Koen Kanters dd6d6cd407 Cache all states. 2018-04-15 21:52:58 +02:00
Koen Kanters 8d9911b4b5 Move mqtt bridge state. 2018-04-15 21:23:49 +02:00
Koen Kanters 8356fda183 Make retain device specific. 2018-04-15 01:14:43 +02:00
Koen Kanters 39600b394e Switch to json based messages. 2018-04-15 01:11:37 +02:00
Koen Kanters 905feb3701 Add option to retain MQTT messages. 2018-04-14 19:20:34 +02:00
Koen Kanters d7031d259b Use winston logger. 2018-04-14 16:17:25 +02:00
Koen Kanters 5c8da2d36a Allow multiple parsers for one message. 2018-04-14 15:29:07 +02:00
Koen Kanters 0055302bdc Support MQTT authentication. #2 2018-04-11 21:09:19 +02:00
Koen Kanters dc211027ed More robust MQTT handling. #2 2018-04-11 20:14:12 +02:00
Koen Kanters 4c6ab0ee49 Fix yaml read exception. #2 2018-04-11 20:00:18 +02:00
Koen Kanters a8bbd85b15 Use Xiaomi model ids. #2 2018-04-11 19:55:54 +02:00
Koen Kanters d6b26239a1 Force documentation consistency. #2 2018-04-09 20:21:23 +02:00
Koen Kanters 3ee7c54e22 Support more sensor. #2 2018-04-09 20:01:49 +02:00
Koen Kanters e56162d222 Switch: support single, double, triple, quadruple and long clicks. #2 2018-04-09 18:36:32 +02:00
Koen Kanters 1ca19a792d Use base_topic from configuration.yaml. 2018-04-09 17:47:26 +02:00
Koen Kanters 43f45f5860 Move join parameter to configuration.yaml. 2018-04-09 17:45:02 +02:00
Koen Kanters e17f2c30c0 YAML configuration. 2018-04-09 17:37:21 +02:00
Koen Kanters 63a05fc443 Refactor message parsing. 2018-04-09 17:09:52 +02:00
Koen Kanters 366b5be765 Add config file. 2018-04-08 17:25:28 +02:00
Koen Kanters 3f4fc31835 Change location of database. 2018-04-08 16:41:42 +02:00
Koen Kanters 658b3624ac Refactor. 2018-04-08 16:32:28 +02:00
Koen Kanters 55e1657c80 Add --join parameter 2018-04-08 15:51:33 +02:00
Koen Kanters bc40911f2f Quit zigbee-shepherd friendly. 2018-04-08 15:33:47 +02:00
Koen Kanters 3f37c439c9 Add more logging. 2018-04-08 15:28:59 +02:00