Koen Kanters
eecd15ebfa
Don't republish identical optimistic group states. #3461 ( #4623 )
...
* Don't republish identical optimistic state for groups. #3461
* Fixes
2020-10-09 23:29:34 +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
github-actions[bot]
7103ba4219
Update zigbee-herdsman-converters to 12.0.181 ( #4275 )
...
* Update zigbee-herdsman-converters to 12.0.181
* Update group.test.js
* Update publish.test.js
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-09-05 23:34:49 +02:00
Koen Kanters
9774031169
Sort logged and published JSON objects alphabetically. #4091
2020-08-13 20:00:35 +02:00
Koen Kanters
812c4927e7
Handle group setup failure. https://github.com/Koenkk/zigbee2mqtt/issues/3966
2020-07-26 10:11:58 +02:00
Koen Kanters
57a2d435a9
Republish groups on change. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-07-13 21:45:44 +02:00
Koen Kanters
ff8f16fedb
Group MQTT api. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-07-12 23:50:15 +02:00
Koen Kanters
1638b81723
Update converters
2020-05-24 15:57:29 +02:00
Koen Kanters
a17d96c14a
Revert "Reduce MQTT subscriptions. #3102 "
...
This reverts commit 82080e3d22
.
2020-03-11 21:24:59 +01:00
Koen Kanters
82080e3d22
Reduce MQTT subscriptions. #3102
2020-03-11 19:02:24 +01:00
Jorge Schrauwen
658cc21b4d
#3009 allow filtering of mqtt topics and payloads ( #3037 )
...
* Allow filtering of attributes in mqtt json payload or published attributes
* Add test for mqtt_attribute_filter
Just doing attribute_and_json should be fine as the code changes are run before this. Doing this tests lets us varify both json or seperate topic get properly filtered.
* Add test for mqtt_attribute_filter on group
* Rename mqtt_attribute_filter to filtered_attributes
2020-03-02 20:08:51 +01:00
Koen Kanters
68750fade0
Fix tests on node 12. https://github.com/Koenkk/zigbee2mqtt/issues/3031
2020-03-02 19:11:43 +01:00
Koenkk
02bf8a88bc
Also subscribe to groups with slashes. https://github.com/Koenkk/zigbee2mqtt/issues/2200
2019-10-25 18:40:37 +02:00
Gabe Cook
9ebb1b96dd
Group device staying off when already off ( #2140 )
...
* Fix devices within a group staying off if they are off when the group state changes
* Group test cleanups
2019-10-15 16:42:28 +02:00
Gabe Cook
09b7fe699e
Fix optimistic group behavior whenever a device is shared between groups ( #2134 )
2019-10-14 18:04:04 +02:00
Gabe Cook
159a846c50
Do not publish a new optimistic group state if any devices within are ( #2063 )
...
on. Relates to #764
2019-10-03 17:41:36 +02:00
Gabe Cook
fe4f43843d
Update other groups with a shared device when a group state updates ( #2055 )
...
* Update other groups with a shared device when a group state updates #764
* Add group to test which does not have the shared device to be sure it does not change
2019-09-30 21:18:07 +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
62e67e99d2
Don’t publish chached states when cache_state is disabled. https://github.com/Koenkk/zigbee2mqtt/issues/2033
2019-09-25 13:15:30 +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
c09f55873b
Add group optimistic feature. https://github.com/Koenkk/zigbee2mqtt/issues/764
2019-09-17 19:01:57 +02:00
Koenkk
ff83840f76
Change group state when device state changes. https://github.com/Koenkk/zigbee2mqtt/issues/1971
2019-09-17 18:33:27 +02:00
Koenkk
1f1c771075
Make logging consistent. https://github.com/Koenkk/zigbee2mqtt/issues/1965
2019-09-15 09:13:02 +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
110f80ec84
Lint.
2019-06-17 21:41:48 +02:00
Koenkk
1c529c4873
Add group remove_all without group #764
2019-06-17 21:17:29 +02:00
Koen Kanters
82dc8437a1
Get rid of logging during test cases.
2019-06-10 00:01:48 +02:00
Koen Kanters
c29bfe1455
Allow to specify endpoint when adding device to group. ( #1515 )
...
* uu
* Update
2019-05-29 20:11:40 +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