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
Koen Kanters
3ef7555ca2
Refactor
2020-04-05 00:05:05 +02:00
Koen Kanters
e0076367d3
Start on legacy api isolation. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-04-04 22:47:23 +02:00
Koen Kanters
1d9d63062a
Add missing devices to configuration. #3263
2020-04-04 19:15:24 +02:00
Dustin Sallings
97a4b6b539
Add support for expiring retained messages. ( #3082 )
...
* Add support for expiring retained messages.
For most of my environmental monitoring use cases, I want the readings
retained so I can pick them up from clients at any time, but if the
sensor (or zigbee2mqtt) fails, I want the readings to go away so I can
tell the difference between a stale reading and a missing reading.
This is easily accomplished in MQTTv5 using the "message expiry
interval" property. To add that to zigbee2mqtt, I added a 'version'
option to the mqtt section so I can specify to connect with version 5
and added a 'retention' property to devices allowing me to specify how
long items should be retained.
e.g.
mqtt:
base_topic: site/zigbee2mqtt
server: 'mqtt://myserver'
user: zigbee
version: 5
serial:
port: /dev/ttyACM0
devices:
'0x00358d00022308da':
friendly_name: someroom
retain: true
retention: 900
* Also get from deviceOptions
* Update settings.js
* Update controller.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-03-12 20:25:37 +01:00
nightdeveloper
b59d761ca6
publish announces to log topic ( #3101 )
...
* publish announces to log topic
* publish announces to log topic #test fix
* Update controller.js
* Update controller.test.js
* Update deviceAvailability.test.js
Co-authored-by: Andrey Sergeew <avsergeev@neoflex.ru>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-03-11 18:21:06 +01:00
Jorge Schrauwen
b17b9c76ef
#3009 filtered_attributes should also work in device_options ( #3057 )
2020-03-03 18:30:54 +01:00