Koen Kanters
9941be1d1a
Honour optimisitic false for groups ( #7615 )
...
* Honour optimisitic false for groups. https://github.com/Koenkk/zigbee2mqtt/issues/7571
* Remove default optimistic true for groups. https://github.com/Koenkk/zigbee2mqtt/issues/7571
* Updates
2021-05-28 20:23:00 +02:00
Jorge Schrauwen
597a5a4925
Add skip_disable_reporting to unbind group/remove ( #7455 )
...
* Allow skipping disable of reporting during unbind
* Allow skipping disable of reporting during remove from group
* Add tests
* Update bind.js
* Update groups.js
* Update bind.test.js
* Update bind.test.js
* Update bind.test.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2021-05-23 15:37:34 +02:00
Koen Kanters
366c5fcb4d
Fix state of members from group incorrect when toZigbee converter reads a member state. #7038
2021-04-22 20:28:54 +02:00
Koen Kanters
8df8ef629e
Fix state of group not changing when state of specific endpoint is changed. https://github.com/Koenkk/zigbee2mqtt/issues/6905
2021-04-13 20:20:44 +02:00
Koen Kanters
bf47282ea7
Fix optimistic group state property not postfixed with endpoint name when necessary. https://github.com/Koenkk/zigbee2mqtt/issues/6905
2021-04-04 21:00:24 +02:00
TiTo
0493cf60da
Fix no transaction in group and bind responses ( #6810 )
...
* Fix no transaction property in /group/members response
* Update groups.js
* Update group.test.js
* Update bind.js
* Update bind.test.js
Co-authored-by: Guillaume COURTOIS <guillaume.courtois@victeon.fr >
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2021-03-24 19:17:49 +01:00
Jorge Schrauwen
3541db891d
groups: also publish color_mode ( #6756 )
2021-03-19 17:48:56 +01:00
Koen Kanters
1acccc002a
Only publish changed properties for groups and its members. #6718
2021-03-17 21:44:29 +01: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
16cd176822
Fix group state not changing when members state changes under certain circumstances. https://github.com/Koenkk/zigbee2mqtt/issues/5725
2021-01-15 18:05:51 +01:00
Koen Kanters
9c8323326d
Greatly reduce amount of subscribed topics. #4948
2020-11-16 17:03:22 +01:00
Koen Kanters
723e3a3964
Fix optimistic group state not published on startup. https://github.com/Koenkk/zigbee2mqtt/issues/3461
2020-10-10 16:41:02 +02:00
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
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
22126a3e5d
Refactor
2020-04-12 20:32:14 +02:00
Koen Kanters
b8b4ff9ee7
baseExtension -> extension
2020-04-11 18:10:56 +02:00
Koen Kanters
552eec7baa
Isolate legacy MQTT log. #3281
2020-04-05 18:36:08 +02:00
Koen Kanters
9df1589361
Move stateChange event to event bus.
2020-04-05 15:48:23 +02:00
Koen Kanters
3ef7555ca2
Refactor
2020-04-05 00:05:05 +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
Koen Kanters
cb0b0b5af9
Clear Home Assistant MQTT discovery on device remove. #2678
2020-01-09 21:47:19 +01:00
Carl de Billy
cabb1f3979
Added <operation>_failed logging ( #2636 )
...
* Added <operation>_failed logging
for external tools (like Zigbee2MqttAssistant), this will allow the tool to know when an operation is failed.
https://github.com/Koenkk/zigbee2mqtt/issues/2223
* Added _failed logging to binding operations too
* Added _failed to group operations
2020-01-07 21:06:48 +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
Koen Kanters
518232e15e
Zigbee-herdsman 0.8.0
2019-10-01 20:22:47 +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
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
41e68c8ffe
Update zigbee-herdsman to 0.7.0.
2019-09-23 22:21:27 +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
c8a07a5c2d
Add base extension.
2019-09-17 18:32:16 +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
c55691daec
Fix groups log messages. https://github.com/Koenkk/zigbee2mqtt/issues/1848
2019-08-12 19:13:18 +02:00
Koenkk
1c529c4873
Add group remove_all without group #764
2019-06-17 21:17:29 +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
39fe50600e
Fix crash when there is no state yet.
2019-04-30 19:30:26 +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
qm3ster
a93838be15
codemod: object-shorthand
...
Also fixed `new (` and `formatter` by hand.
2019-03-09 16:30:05 +01:00
Koen Kanters
a62f4289a7
Log more to MQTT. #1075
2019-02-13 19:49:06 +01:00
Koen Kanters
443a14e40a
Add coordinator to group 99 by default. https://github.com/Koenkk/zigbee2mqtt/issues/997
2019-02-06 20:33:58 +01:00
Koen Kanters
c9c599b60b
Refactor publishDeviceState to publishEntityState (for future group support).
2019-02-04 18:36:49 +01:00