Koen Kanters
e286a66cea
Don't rediscover Home Assistant device_automation (triggers). #4452
2020-09-25 18:47:28 +02:00
Koen Kanters
48cf4728bb
Clear outdated Home Assistant device_automation discoveries. #4452
2020-09-25 18:20:27 +02:00
Koen Kanters
d386da6366
Fixes for 4f6797c365
2020-09-25 17:44:24 +02:00
Koen Kanters
da2eb505fd
Clear availability topic on device remove. #4432
2020-09-25 16:50:12 +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
b79fb2b6f5
Don't try to setup reporting for Philips devices that do not support it. https://github.com/Koenkk/zigbee-herdsman/issues/110
2020-09-22 17:42:03 +02:00
Koen Kanters
92ce133e24
Enable scenes tests. https://github.com/Koenkk/zigbee-herdsman-converters/pull/1531
2020-09-20 18:17:36 +02:00
Koen Kanters
206f02b200
Updates for scenes. https://github.com/Koenkk/zigbee-herdsman-converters/pull/1531
2020-09-19 11:07:54 +02:00
Koen Kanters
7fe3167e97
Fix crash when saving state.json fails. #4388
2020-09-19 10:59:12 +02:00
Koen Kanters
4f9c36ee44
Don't allow renaming to not allowed friendlyName. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-09-19 10:57:39 +02:00
Koen Kanters
8db16cca3d
Republish devices on OTA update. https://github.com/Koenkk/zigbee2mqtt/issues/4266
2020-09-15 22:13:30 +02:00
John Doe
2caaaa8d24
Fix mallformed (nullish) messages handling ( #4347 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-09-13 15:38:10 +02:00
John Doe
9cabe1e23a
Fix frontend api messages pollution ( #4326 )
2020-09-10 20:54:03 +08:00
Koen Kanters
c29cc784ba
Touchlink identify. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-09-09 18:24:32 +02:00
Koen Kanters
14da75f4a7
Touchlink factory reset specific device and scan. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-09-08 20:24:49 +02:00
Koen Kanters
7b226e6efe
Clear retained messages on device/group rename or delete. #4290
2020-09-07 17:29:53 +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
778665b35b
Don't rename entity ID in Home Assistant by default. #4095
2020-09-04 21:13:40 +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
f57ec9f0fd
Add definition to raw networkmap
2020-09-02 17:17:35 +02:00
Koen Kanters
27566dc5d1
Add coordinator, endpoint binds/supported clusters to bridge/devices. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-08-31 18:48:04 +02:00
Koen Kanters
ad0f11cc0f
Base supported groups converters of its members. https://github.com/Koenkk/zigbee2mqtt/issues/764
2020-08-30 11:30:38 +02:00
github-actions[bot]
db6d9bd5bb
Update zigbee-herdsman-converters to 12.0.172 ( #4180 )
...
* Update zigbee-herdsman-converters to 12.0.172
* Update homeassistant.js
* Update zigbeeHerdsman.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-08-25 20:01:46 +02:00
Koen Kanters
d980b97413
Fix Home Assistant automations based on click event not working. #4168
2020-08-23 22:58:07 +02:00
mgrom
54f164cc21
fixes related to #4070 ( #4132 )
...
* fix
* eslint fix
* don't use temp topic when low and high temp used
* fix for temp high
* Add tests
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-08-23 22:36:30 +02:00
Koen Kanters
676684158a
Fix messages from Xiaomi devices skipped sometimes when send through Xiaomi router. #3592 ( #4170 )
...
* Update receive.js
* Fix messages from Xiaomi devices skipped sometimes when send through Xiaomi router. https://github.com/Koenkk/zigbee2mqtt/issues/3592
2020-08-23 22:05:48 +02:00
github-actions[bot]
bffe4db029
Update zigbee-herdsman-converters to 12.0.167 ( #4144 )
...
* Update zigbee-herdsman-converters to 12.0.167
* Update homeassistant.js
* Update publish.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-08-20 22:03:00 +02:00
Koen Kanters
22f657ed4d
Add device_announce event to new api. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-08-20 20:55:40 +02:00
Koen Kanters
8c5fae900e
Don't use state converter on invalid JSON and the payload is not on, off or toggle. https://github.com/Koenkk/zigbee2mqtt/issues/1348
2020-08-17 21:29:11 +02:00
Koen Kanters
9148977b39
Rename device entity_id in Home Assistant when changing friendly_name. #4096
2020-08-17 20:19:44 +02:00
Koen Kanters
5f75c9c9f8
Clear outdated Home Assistant configs
2020-08-17 17:24:57 +02:00
Tom
08524953bf
Add Environment Variable Override ( #4085 )
...
* Add Environment Variable Override
I need to be able to manage settings on this service via Environment Variables. I've added the ability to override anything in the settings schema with a corresponding environment variable.
e.g. to override settings.serial.port you can set ZIGBEE2MQTT_SERIAL_PORT=/dev/ttyS0
to override the mqtt username you can set ZIGBEE2MQTT_MQTT_USER=testusername
This new addition will not perform any action on existing installations unless the matching environment variable is set. I have tested this setting string, number, boolean, object and array values.
* Adding test case for environment variables and slight modification to ensure 100% code coverage.
* Adding a test to confirm that env variables will set non default values. Also realized that I was errantly applying the env variables to the defaults for testing. Understanding what this is doing more clearly I realize that should be clean.
* Refactoring to
1. Remove the test variables from the schema and defaults and manually reflect the tests in the test.
2. Rename environment variable base from ZIGBEE2MQTT_ to ZIGBEE2MQTT_CONFIG_
* Small improvements
* Removing the unneeded test.
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-08-13 23:50:30 +02:00
Koen Kanters
9774031169
Sort logged and published JSON objects alphabetically. #4091
2020-08-13 20:00:35 +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
ff2fe2b358
Separate Home Assisant name by space instead of _ when friendlyName contains space. #4048
2020-08-08 13:54:39 +02:00
Koen Kanters
3cdf7604a0
Fix no color_temp for group on changing color_xy and vice versa. #4034
2020-08-05 21:54:39 +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
852bca5a08
Implement update state for new api. https://github.com/Koenkk/zigbee2mqtt/issues/3634 https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-08-02 23:09:43 +02:00
Koen Kanters
3e071a73df
Invert cover tests. https://github.com/Koenkk/zigbee-herdsman-converters/issues/1447
2020-08-02 10:08:55 +02:00
Koen Kanters
9a6397fe75
Make Zigbee2MQTT naming consistent
2020-08-01 10:36:20 +02:00
lionel590
ded3a58883
Network parameters / config displayed in zigbee2mqtt/bridge/config ( #4010 )
...
* Update zigbee.js
* added network parameters to zigbee2mqtt/bridge/config
* added network parameters to zigbee2mqtt/bridge/config
* added test for network config in zigbee2mqtt/bridge/config
* Fix network data
* Added test data for network parameters
* Update zigbee.js
* Update zigbee.js
* Update bridge.test.js
* Update bridge.test.js
* Update utils.js
* Update bridge.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-07-30 22:31:52 +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
a7f990ef95
New api: log to MQTT. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-07-28 22:12:22 +02:00
Koen Kanters
946ebe16b6
Allow to specify which clusters are being bound/unbound. https://github.com/Koenkk/zigbee2mqtt/issues/3281
2020-07-28 21:05:02 +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
7d27e6db69
Changes for zigbee-herdsman-converters 12.0.150
2020-07-26 14:19:33 +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
00f836fce6
Don't discover sensor_click when legacy: false is set. https://github.com/Koenkk/zigbee-herdsman-converters/issues/1393
2020-07-24 22:53:10 +02:00
Koen Kanters
ad13564687
Improve error messages when configuration is invalid. #3943
2020-07-23 19:17:26 +02:00
github-actions[bot]
a01048487d
Update zigbee-herdsman-converters to 12.0.148
...
* Update zigbee-herdsman-converters to 12.0.148
* 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-07-22 23:32:38 +02:00