Wilmar den Ouden
694c45fd96
Make logging transports configurable ( #2231 )
...
* feat: Make logging optional
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* feat: be more verbose about what logging is enabled
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* feat: adds tests
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* Updates.
* Updates
* fix tests.
* Remove onlythis.
* Remove another onlythis
* Improve test stability
* Remove another onlythis
2019-11-29 23:36:57 +01:00
Koen Kanters
99fd93f9a7
Allow setting transmit power. https://github.com/Koenkk/zigbee2mqtt/issues/2253
2019-11-27 22:02:49 +01:00
Kryzek
46d7176976
availability_whitelist ( #2387 )
...
* availability_whitelist
* Tests
* Cleanup
* Update deviceAvailability.js
2019-11-23 11:47:37 +01:00
Kryzek
878a88632b
Customizable timestamp ( #2357 )
...
* Customizable timestamp
Add a customizable timestamp
* Revert "Customizable timestamp"
This reverts commit 7ae06e8e2c
.
* Customizable timestamp
* Update settings.js
2019-11-17 21:29:53 +01:00
Koen Kanters
af770acd2d
Make retain a optional option and default it to false.
2019-11-06 20:30:33 +01:00
Jorge Schrauwen
5ad97325be
Fix missing retain on add_group, allow specifying of groupID ( #2266 )
...
* Accept json for add_group so a groupID can be provided, also set retain property on group creation
* Update util/settings tests for groupID and retain
* Update bridgeConfig tests for add_group with json
2019-11-04 17:59:00 +01:00
Koenkk
646cd34715
Support secret for network_key. https://github.com/Koenkk/zigbee2mqtt/issues/2209
2019-10-28 18:05:50 +01:00
Koen Kanters
78531a0878
Finish https://github.com/Koenkk/zigbee2mqtt/issues/2201 .
2019-10-25 19:17:47 +02:00
Koenkk
505be311a4
Allow to store MQTT credentials separate from configuration.yaml. https://github.com/Koenkk/zigbee2mqtt/issues/2201
2019-10-25 18:43:14 +02:00
Koen Kanters
f415171036
Allow null for port. https://github.com/Koenkk/zigbee2mqtt/issues/2145
2019-10-16 21:21:52 +02:00
Koen Kanters
f3a51f66fd
Make serial and serial.port optional.
2019-10-12 23:18:01 +02:00
Koen Kanters
a3bbb93f99
Update zigbee-herdsman and zigbee-herdsman-converters.
2019-10-07 19:34:10 +02:00
Koen Kanters
732a97ba0c
Don’t write to configuration.yaml when it didn’t change. https://github.com/Koenkk/zigbee2mqtt/issues/2071
2019-10-03 20:06:31 +02:00
Koen Kanters
c8eb503ae7
Simplify group optimistic mode. https://github.com/Koenkk/zigbee2mqtt/issues/764
2019-09-29 14:35:05 +02:00
Koen Kanters
67f6ccc8a8
Don’t allow duplicate friendly_name. #1876
2019-09-27 22:56:59 +02:00
Koen Kanters
d4011fabc7
Implement group optimistic ‘group_devices’ mode. https://github.com/Koenkk/zigbee2mqtt/issues/764#issuecomment-534146878
2019-09-25 12:51:17 +02:00
Koen Kanters
cfefaeb73c
Validate settings on startup with JSON schema.
2019-09-25 12:08:39 +02:00
Koen Kanters
d4f01e6893
Replace Livolo extension with DeviceEvent. https://github.com/Koenkk/zigbee2mqtt/issues/592
2019-09-19 20:36:05 +02:00
Koen Kanters
c09f55873b
Add group optimistic feature. https://github.com/Koenkk/zigbee2mqtt/issues/764
2019-09-17 19:01:57 +02:00
Koen Kanters
21dadd631c
Don’t throw error when devices is null. https://github.com/Koenkk/zigbee2mqtt/issues/1973
2019-09-16 19:49:49 +02:00
Koen Kanters
9c5b3bf4d1
Use lastSeen from zigbee-herdsman.
2019-09-12 22:48:23 +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
fcb6c37ef0
Set whitelist to empty array when null. https://github.com/Koenkk/zigbee2mqtt/issues/1774
2019-08-11 14:13:44 +02:00
Koen Kanters
3daf97283c
Fix queue settings.
2019-07-02 19:13:06 +02:00
Koen Kanters
9624384c3f
Add queue settings. https://github.com/Koenkk/Z-Stack-firmware/issues/93
2019-07-02 18:56:03 +02:00
Andreas Brett
7cabe3a523
colors for network map ( #1666 )
...
* Update settings.js
added default color options for network map
* Update networkMap.js
- add timestamp node to indicate when the map was created
- colorize nodes by device type
- colorize edges by activity
* Update networkMap.js
make travis happy
* Update networkMap.js
* Update networkMap.js
* Update settings.js
* Refactor
* Move to graphviz.
2019-06-26 19:30:38 +02:00
Viet Dzung
7b2522f712
Support whitelist devices feature #1643 ( #1654 )
...
* Support whitelist devices feature #1643
* Control via MQTT
* Log
2019-06-25 19:38:36 +02:00
Dennis Keitzel
241b300f7b
Allow custom home-assistant status topic ( #1667 )
2019-06-24 20:52:47 +02:00
Koen Kanters
801e97143c
Fix adding groups with duplicate names. #764
2019-06-19 18:35:57 +02:00
Koen Kanters
a54e256b40
Group configuration via configuration.yaml and group state ( #1464 )
...
Group configuration via configuration.yaml and group state.
2019-04-29 20:38:40 +02:00
Koen Kanters
9a15e8c118
Improve ban functionallity. #816
2019-03-26 21:40:31 +01:00
Martin Helff
789ec0cc90
query groups through MQTT bridge/config/groups ( #1276 )
...
* query groups through MQTT bridge/config/groups
* linter adjustments
* linter adjustments
2019-03-19 19:18:22 +01:00
Koen Kanters
fdcf2e8c3d
Option to set Home Assistant discovery topic. #1019
2019-03-15 22:41:39 +01:00
Koen Kanters
79d11e295b
Fix crash on empty advanced section. https://github.com/Koenkk/zigbee2mqtt/issues/1237
2019-03-12 21:58:45 +01:00
Koen Kanters
9f31cd86a3
Implemented MQTT group add and remove. https://github.com/Koenkk/zigbee2mqtt/issues/764
2019-03-12 21:19:04 +01:00
qm3ster
9eed7e271e
Extract IO from settings.js
2019-03-09 21:09:39 +01:00
qm3ster
07765093be
Fix all typos of separate
2019-03-09 21:09:39 +01:00
qm3ster
a93838be15
codemod: object-shorthand
...
Also fixed `new (` and `formatter` by hand.
2019-03-09 16:30:05 +01:00
qm3ster
044e8466ed
Simplify settings getters
2019-03-09 16:30:05 +01:00
qm3ster
c0bdf2e3a2
Lazy load settings on first use
2019-03-09 16:30:05 +01:00
qm3ster
9321a04ecc
Move resolveEntity
into settings.js
...
Had to refer to `module.exports.`
because all of those functions get mocked in tests.
2019-03-09 16:30:05 +01:00
Koen Kanters
6427da244f
Implement attribute output. https://github.com/Koenkk/zigbee2mqtt/issues/493
2019-03-04 18:13:36 +01:00
Andreas Brett
1cde620d70
add support for local ISO8601 timestamp format ( #1171 )
...
* add support for local ISO8601 timestamp format
added local ISO8601 timestamp format for local rather than UTC-based timestamps
ISO8601 = 2019-03-01T15:32:45.941+0000
ISO8601_Local = 2019-03-01T16:32:45.941+0100 (for TZ GMT+1)
* fixed indentation
* tabs to spaces
* comply with Travis
* comply with Travis once again
* Removed spaces to make Travis happy
* updates
2019-03-02 16:47:36 +01:00
Koen Kanters
cd2fb54615
Changes to report/bind functionallity.
2019-02-26 20:46:34 +01:00
Koen Kanters
516bd704c6
Allow devices and groups to be specified in separate file. https://github.com/Koenkk/zigbee2mqtt/issues/1148
2019-02-24 15:49:41 +01:00
Koen Kanters
ea7a4b1955
Remove last_seen from state when last_seen is disabled. https://github.com/Koenkk/zigbee2mqtt/issues/1075
2019-02-23 16:22:01 +01:00
Koen Kanters
1fda02ae7c
Allow to change device specific options via MQTT. https://github.com/Koenkk/zigbee2mqtt/issues/1132
2019-02-22 20:10:00 +01:00
Koen Kanters
cc45413e2d
Add settings.set api.
2019-02-18 19:46:19 +01:00
Koen Kanters
0f053425f3
Merge branch 'master' into dev
2019-02-13 19:28:35 +01:00
Koen Kanters
04e68014da
Update link to zigbee2mqtt.io. #1072
2019-02-12 21:39:37 +01:00
Koen Kanters
7642b295e1
Add option to enable livolo code. #592
2019-02-04 18:39:45 +01:00
Koen Kanters
c9c599b60b
Refactor publishDeviceState to publishEntityState (for future group support).
2019-02-04 18:36:49 +01:00
ptvo
37d516d770
Some improvements (extPanId, .configure, Livolo) ( #982 )
...
* Added the new ext_pan_id options (required update of zigbee-shepherd)
Improved code for configure
Added the new extension for Livolo.
* Formatting corrections
* Update controller.js
* Updated Livolo extension
* Improvements in the extensions for Livolo.
* Fixed conflict.
* Add default ext_pan_id.
* Remove duplicate extension.
* Update deviceConfigure.
* Update comment.
* Updates.
2019-02-02 20:09:20 +01:00
Koen Kanters
5828ee9989
Implement availability blacklist. #775
2019-02-02 18:10:25 +01:00
Koen Kanters
b8744ce890
Add reporting feature. #966
2019-02-01 19:04:49 +01:00
Koen Kanters
17874cfdc1
Make availability_timeout non experimental. #775
2019-01-29 20:17:56 +01:00
Laurent
9e5fb04314
Elapsed time ( #909 )
...
* new elapsed attribute giving the elapsed time since the previous msg
* configurable elapsed attribute
* Update deviceReceive.js
* Update deviceReceive.js
2019-01-22 20:02:34 +01:00
Laurent
7cd30a3a05
configurable last_seen ( #874 )
...
* configurable last_seen
* Refactor last_seen.
2019-01-18 20:31:55 +01:00
Koen Kanters
5453c082c4
Fix typo availablility -> availability. #777 #775
2018-12-30 20:08:31 +01:00
Gergely Markics
afeed4f372
Add device availability functionality for HASS based on router devices ping and attribute reporting also available on battery-powered devices ( #761 )
...
* Discovery on HASS restart and last_message attribute added
- On restarting Home Assistant, resending device discovery information
- Add timestamp on receiving message from Zigbee
* Add option: add_timestamp in settings
* typo
* Update homeassistant.js
* Update homeassistant.js
* Update homeassistant.js
* Update controller.js
* Update zigbee.js
* Add files via upload
* Update zigbee.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update homeassistant.js
* Update deviceAvailabilityHandler.js
* Update deviceAvailabilityHandler.js
* Update homeassistant.js
* Fix checkonline callback.
* Refactor.
* Refactor.
2018-12-29 19:55:59 +01:00
Koen Kanters
69e805c882
Allow to configure network_key. https://github.com/Koenkk/zigbee2mqtt/issues/685
2018-12-24 16:29:06 +01:00
Koen Kanters
d3f705162d
Group support #15 ( #745 )
...
* Start on group support. #15
* Implement publishing to zigbee groups. https://github.com/Koenkk/zigbee2mqtt/issues/15
* Complete first version of group support.
* Fix tests.
2018-12-22 00:07:53 +01:00
Koenkk
d6c2b536ee
Introduce device_options. https://github.com/Koenkk/zigbee2mqtt/issues/708
2018-12-19 17:33:02 +01:00
Koen Kanters
ec20bfdd15
Cleanup references to wiki.
2018-12-14 19:37:57 +01:00
Koenkk
6df4e39f18
Refactor!
2018-12-06 21:27:36 +01:00
Koenkk
ddb83cc6e4
Handle zigbee commands sequentially (and refactor it). #529
2018-10-23 20:39:48 +02:00
Koenkk
1db926173d
Refactor router polling & only poll Xiaomi routers, refactor soft reset timeout and disable by default. #274
2018-10-02 21:15:12 +02:00
Koenkk
50d58d3dff
Always call zigbee shepherd permit join (in both true and false).
2018-09-29 23:05:18 +02:00
Unknown
2fd59cb7ef
Remove log_directory_timestamp option, implement default settings, no : in timestamp. #356 #381
2018-09-18 17:51:34 +02:00
Koenkk
8ea62f535e
Update change friendly name of device.
2018-07-24 18:25:16 +02:00
tb-killa
6d684b7c11
ADD RenameFriendlyName Function
2018-07-21 18:15:56 +02:00
Koenkk
db0d8c1cdd
Best effort remove device
2018-06-10 17:35:14 +02:00
Koenkk
884e3aa475
Refactor remove device & remove from home assistant
2018-06-09 12:33:40 +02:00
Marius Ciotlos
7c53e9bb15
Added settings removal and bug fixes
2018-06-07 20:41:11 +03:00
Koenkk
08f3f96d73
Use js-yaml as yaml parser instead of yawn-yaml. #64
2018-05-25 16:42:29 +02:00
Koenkk
312ed033db
Dont add advanced configuration by default.
2018-05-24 20:19:04 +02:00
Koenkk
c5cb60e998
Enforce code style. #45
2018-05-17 17:20:46 +02:00
Koenkk
ff61f24b74
Make panID configurable. #34
2018-05-12 15:54:02 +02:00
Koenkk
44002ed1c3
Update configure data path code
2018-05-12 10:58:06 +02:00
Daniel Welch
03123fb783
configure datapath with env variable
2018-05-11 23:04:15 -04:00
Koen Kanters
a13080f399
Refactor & remove home assistant pair switch discovery.
2018-04-25 20:54:41 +02:00
Koen Kanters
87fb513758
Simplify YAML configuration.
2018-04-25 19:29:03 +02:00
Koen Kanters
500bce2418
Perform home assistant MQTT discovery on startup.
2018-04-23 18:17:47 +02:00
Koen Kanters
3b317535d3
Fixes & improvements. #8
2018-04-18 20:53:22 +02:00
Koen Kanters
d06522d488
Refactor and rename. #8
2018-04-18 18:26:13 +02:00