John Doe
028792e5b4
Implement extension loading api ( #6378 )
...
* Implement extension loading api
* Fix frontend tests
* Implement saving and unloading extensions
* Save after loading
* Add tests
* Fix coverage
* Refactor frontent test calls
* Update controller.js
* Review fixes
* Update utils.js
* Rename list topic
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-22 21:29:58 +08: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
1b32a46649
Setup reporting when binding and make report feature deprecated ( #5529 )
...
* Initial
* Updates
* Some tests
* tests
* Updates
* Move poll to bind
* Move report to legacy
* Updates
* Remove toPoll key. https://github.com/Koenkk/zigbee2mqtt/pull/5529#pullrequestreview-570285310
* Updates
* Updates
* Update bridge.test.js
* Fix tests
2021-01-22 18:56:44 +01:00
Koen Kanters
ed76bbbdc5
Add ExtensionFrontend. https://github.com/Koenkk/zigbee2mqtt/issues/5688
2021-01-11 17:01:20 +01:00
Koen Kanters
4fc10f0cfb
Attempt to fix external converters exposes not loaded into HA discovery. https://github.com/Koenkk/zigbee2mqtt/discussions/5605
2021-01-07 19:24:48 +01:00
Koen Kanters
2942ae9f4a
Fix some properties not being published when debounce is used ( #5509 )
...
* initial
* More logging. https://github.com/Koenkk/zigbee-herdsman-converters/issues/1988
* More logging
* Ignore group_optimistic
* Cleanup
* Add logging again
* We got him?
* go
* linto
2021-01-07 19:17:13 +01:00
Koen Kanters
9ff232fbb2
Enable new api by default. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-12-02 20:38:48 +01:00
Koen Kanters
fc19f2e903
Don't pass messages from coordinator to extensions. https://github.com/Koenkk/zigbee2mqtt/issues/5028
2020-11-21 16:20:48 +01:00
Koen Kanters
c1e5c75473
Fix bridge/state online not send after reconnect. https://github.com/Koenkk/zigbee2mqtt/issues/4854
2020-11-15 13:22:29 +01:00
Drzony
7305960d53
Display manufacturer name for unsupported devices ( #4938 )
...
* Display manufacturer name for unsupported devices
* fixup! Display manufacturer name for unsupported devices
2020-11-11 18:27:20 +01:00
Koen Kanters
bd7d0be07a
Clear device state when device leaves network. https://github.com/Koenkk/zigbee2mqtt/issues/4485
2020-11-02 18:27:06 +01:00
Koen Kanters
63044421fd
Get linkquality from herdsman instead of mesage. https://github.com/Koenkk/zigbee2mqtt/issues/4758
2020-10-24 17:15:46 +02:00
Koen Kanters
3a1f697d93
Don't log when including logger.js
2020-10-07 17:15:46 +02:00
Koen Kanters
4bb3ddcff2
Make frontend non-experimental. https://github.com/Koenkk/zigbee2mqtt/issues/4266
2020-09-27 22:18:48 +02:00
qm3ster
f26ddd93ff
Replace "problematic" depenencies
...
Also one comment typo lol
`node-static` was abandoned and vulnerable, which might matter since
it's used in production usage and not development.
replaced with popular `serve-static` + `finalhandler`
`json-stable-stringify` depended on an unneeded and unlicensed
polyfill for JSON builtin.
2020-09-25 15:58:45 +02:00
Koen Kanters
ba7a85bbb5
Frontend ( #4232 )
...
* Initial implementation of backend for frontend.
* Frontend fixes (#4205 )
* Send data to frontend api withoud baseTopic preffix
* Send frontend api requests to mqtt
* Fix topic name sanitisation
* Fix base_topic trimming
* Update frontend.js
* Add zigbee2mqtt-frontend dependency
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
* Dont' setup separate MQTT connection.
* Correctly stop
* Add frontend tests.
* [WIP] Bindings structure change (#4233 )
* Change bindings location
* Bump frontend version
* Republish devices on bindings change
* Fix data structure
* Fix payload double encoding
* Change endpoints structure
* Expose config to bridge/info
* Fix typo
* Updates
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
* Resend states on ws reconnect
* Update deps
* Bump frontend (#4264 )
Co-authored-by: John Doe <nurikk@users.noreply.github.com>
2020-09-04 18:42:24 +02:00
Koen Kanters
d167b149ad
Refactor device options retrieval
2020-08-17 20:57:12 +02:00
Koen Kanters
9774031169
Sort logged and published JSON objects alphabetically. #4091
2020-08-13 20:00:35 +02:00
Koen Kanters
afbbf70caa
Fix null published for attribute output. https://github.com/Koenkk/zigbee2mqtt/issues/4054
2020-08-09 11:31:27 +02:00
Koen Kanters
81db31b784
Fix attribute output not publishing all values. https://github.com/Koenkk/zigbee2mqtt/issues/4054
2020-08-08 16:36:58 +02:00
Koen Kanters
6345cb07bf
Disable reporting on device when reporting is disabled. https://github.com/Koenkk/zigbee2mqtt/issues/3826
2020-08-04 19:11:13 +02:00
Koen Kanters
9a6397fe75
Make Zigbee2MQTT naming consistent
2020-08-01 10:36:20 +02:00
Koen Kanters
274109bc85
Allow to disable Home Assistant via MQTT. #3281 ( #4007 )
...
* Initial
* Updates
2020-07-29 23:10:03 +02:00
Koen Kanters
b9ba635bea
Fix crash when attribute value is undefined of null (publish empty payload in this case). #3980
2020-07-27 22:07:03 +02:00
Koen Kanters
ad13564687
Improve error messages when configuration is invalid. #3943
2020-07-23 19:17:26 +02:00
Koen Kanters
b1a4926a30
Add cache_state_persistent and cache_state_send_on_startup options. #3496
2020-07-10 22:09:16 +02:00
John Doe
def6bf1d0b
Implement external converters ( #3810 )
2020-06-29 16:16:16 +02:00
Koen Kanters
48705c9a9e
Fix not connecting to MQTT when permit join fails on startup. #3756
2020-06-21 16:36:36 +02:00
Koen Kanters
5f63dcb0f2
Fix old state being published due to debounce. #3572
2020-05-29 19:24:59 +02:00
Koen Kanters
409fb2407a
#3281 Add tests for new bridge API
2020-05-24 18:16:39 +02:00
Koen Kanters
855e9e0eb1
Don't add lastSeen to state. #3545
2020-05-14 18:47:27 +02:00
Koen Kanters
5aedf6b2ee
Fix lint
2020-05-05 13:43:37 +02:00
Koen Kanters
856ecf47f1
Start on new API implementation. #3281
2020-05-04 20:06:50 +02:00
Koen Kanters
d8ec59bd9f
Don't add coordinator to configuration.yaml. #3421
2020-04-24 22:43:35 +02:00
Jorge Schrauwen
f0f7905782
Also pass settings to Extensions ( #3410 )
...
* Also pass settings to Extensions
* Swap order of settings and logger
2020-04-23 22:02:00 +02:00
Jorge Schrauwen
8d70ebd91a
Don't try and load non .js extensions ( #3409 )
...
* only try and load extensions ending in .js
* Update controller.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-04-22 18:52:09 +02:00
Koen Kanters
f0ca71648b
Pass down logger to extension. #3279
2020-04-21 22:15:12 +02:00
Koen Kanters
a8793ab60b
Load extensions from data directory. https://github.com/Koenkk/zigbee2mqtt/issues/3297
2020-04-19 20:08:24 +02:00
Koen Kanters
11fd5ffde6
Refactor
2020-04-19 18:10:53 +02:00
Koen Kanters
07dc837b76
Refactor receive
2020-04-15 22:34:59 +02:00
Koen Kanters
67151fba04
Refactor bind
2020-04-15 20:36:40 +02:00
Koen Kanters
eab9886402
Refactor.
2020-04-12 18:29:52 +02:00
Koen Kanters
a2d09b08ea
Refactor DeviceConfigure
2020-04-11 20:58:22 +02:00
Koen Kanters
cc008db2ad
Refactor
2020-04-11 18:31:57 +02:00
Koen Kanters
ba0d930ddd
DeviceAvailability -> Availability
2020-04-11 18:14:40 +02:00
Koen Kanters
2ce2876f04
Refactor
2020-04-11 17:44:31 +02:00
Koen Kanters
4f81b7aa0b
Refactor
2020-04-11 15:18:17 +02:00
Koen Kanters
e71485cd50
Refactor
2020-04-05 20:36:09 +02:00
Koen Kanters
9df1589361
Move stateChange event to event bus.
2020-04-05 15:48:23 +02:00
Koen Kanters
4fa9aaa0b2
Refactor
2020-04-05 15:41:24 +02:00