Commit Graph

1684 Commits

Author SHA1 Message Date
ptvo
d5d16d1616
Update schema with the Icon device property. (#7018)
* Device-specific icon

* Updated tests.

* Updated test

* Updated tests

* Updated tests.

* Updated tests

* Update schema with the Icon device property.

* Fix

Co-authored-by: ptvoinfo <xagga@ya.ru>
2021-04-09 20:52:41 +08:00
ptvo
e81ac11466
Allow to redefine device icon (#7013)
* Device-specific icon

* Updated tests.

* Updated test

* Updated tests

* Updated tests.

* Updated tests

Co-authored-by: ptvoinfo <xagga@ya.ru>
2021-04-09 19:35:44 +08:00
John Doe
42a4596be6
Add device icon from converter definition (#7001) 2021-04-08 22:57:55 +08:00
Koen Kanters
30efb3e824 Fix "Cannot read property 'ID' of undefined". https://github.com/Koenkk/zigbee2mqtt/issues/6981 2021-04-07 18:39:54 +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
Koen Kanters
0b72de7056 Log FAQ on failed to start Zigbee 2021-03-29 20:15:47 +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
Koen Kanters
326823ee00 Add permit_join_timeout to bridge/info 2021-03-22 17:03:01 +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
Franck Nijhof
a17f3b1c5a
Fix use of deprecated values in HA Cover platform discovery (#6544) 2021-03-17 16:48:50 +01:00
John Doe
39239d1416
Revert "Add additionalProperties to device schema (#6687)" (#6692)
This reverts commit eb930ac544.
2021-03-13 20:59:44 +08:00
John Doe
eb930ac544
Add additionalProperties to device schema (#6687) 2021-03-13 11:22:23 +01:00
Koen Kanters
26d4f3d70b Changes for https://github.com/Koenkk/zigbee2mqtt/pull/6669. 2021-03-11 20:11:34 +01:00
Koen Kanters
00c2894bb4 Reread settings on restart. https://github.com/Koenkk/zigbee2mqtt/discussions/6628 2021-03-09 19:50:05 +01:00
John Doe
0ca834cc70
Add timer api to extensions sandbox (#6604) 2021-03-06 17:41:11 +01:00
Koen Kanters
377356b9c1 Fix no attribute property in configured_reportings when attribute is manufacturer specific. #6580 2021-03-06 14:51:07 +01:00
Jorge Schrauwen
e5a9c947aa
Home Assistant does not support 'sleep' as system_mode (#6549)
But 'sleep' is a valid ZCL system_mode, so far only the Viessmann TRV supports it.
We simply drop the exposed system_mode value to not confuse homeassistent.
2021-03-03 16:59:03 +01:00
Koen Kanters
4100ebb670 Update update_check_interval in settings.schema.json. fb2ab44e3e 2021-03-02 20:24:27 +01:00
Ilya Kirov
d77231b99f
Added "ezsp" adapter to schema (#6532) 2021-03-02 19:41:56 +01:00
John Doe
fb2ab44e3e
Set default update_check_interval to 1 day (#6523) 2021-03-02 19:22:39 +01:00
ptvo
18269d65f8
Added support for 16-channels DIY devices. (#6508)
* Added support for 16-channels DIY devices.

* Fixed a typo

Co-authored-by: ptvoinfo <xagga@ya.ru>
2021-03-01 21:39:45 +08:00
John Doe
4ca3aabf49
Add remove extension API (#6489)
* Add remove extension API

* Fix type
2021-02-28 13:44:54 +08:00
John Doe
26326f71a6
stateChange event brodcasts complete entity state (#6473) 2021-02-27 09:46:33 +01:00
Jorge Schrauwen
2ed9582d6b
Add meter endpoint name (#6427)
Prerequisite for https://github.com/Koenkk/zigbee-herdsman-converters/pull/2273
2021-02-24 17:14:45 +01:00
Koen Kanters
3768504480 Fix user extensions api topic 2021-02-23 19:27:30 +01:00
John Doe
2d0b18c17b
Simplify user extensions api (#6420)
* Simplify user extensions api

* Change structure
2021-02-23 21:00:45 +08:00
declanshanaghy
7f9dc04112
Customize icons for accelerometer axes (#6355)
* Publish Docker images to Github container registry. #6326

* Customize icons for accelerometer axes

* Remove fallback on '-' for unit_of_measurement

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-22 19:37:43 +01:00
John Doe
028792e5b4
Implement extension loading api (#6378)
* Implement extension loading api

* Fix frontend tests

* Implement saving and unloading extensions

* Save after loading

* Add tests

* Fix coverage

* Refactor frontent test calls

* Update controller.js

* Review fixes

* Update utils.js

* Rename list topic

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-22 21:29:58 +08:00
Koen Kanters
049deaf590 Change +- to ≈ for OTA update message. https://github.com/Koenkk/zigbee2mqtt/issues/6397 2021-02-21 20:47:00 +01:00
Timoline
f1a473d506
Updated transmit_power description (#6318)
Updated transmit_power description
2021-02-16 19:20:04 +01:00
Timoline
6f2210e792
Added syslog settings (#6312)
* Added syslog settings

not perfect yet, should be a dependencie of other setting

* fixed typo

* Update settings.schema.json

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-16 19:09:43 +01:00
Timoline
0b66e84295
Added examples for MQTT protocol version (#6303) 2021-02-15 19:36:17 +01:00
Timoline
c3ad65688a
changed description to minutes (#6280) 2021-02-15 17:59:58 +01:00
Timoline
6ab609cd46
added some examples for channel in schema (#6279) 2021-02-15 17:59:01 +01:00
Timoline
e358ec305e
Update update_check_interval to type number (#6278) 2021-02-15 17:58:39 +01:00
flatsiedatsie
9dd9f33b4a
OTA updates: add update_check_interval and disable_automatic_update_check options (#6268)
* OTA privacy enhancement

Adds the option to disallow device-initiated OTA update checks.

Currently these OTA update checks can be quite frequent, and essentially mean the device is indirectly able to ping a cloud server. In the EU it's wise to handle an IP address as personal information, and therefore it might be wise to not enable OTA checking by default. Ideally a user would agree to a privacy policy that clarifies things a bit first.

* Added default settings for OTA update management

* Set update interval in minutes

* OTA update settings

* Adds both settings for OTA updates control

* Update settings.schema.json

* Update settings.js

* Update otaUpdate.js

* Update otaUpdate.test.js

* Update bridge.test.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-14 18:20:32 +01:00
Andrew Ostroumov
1df52cc6e8
Prevent devices always being pinged at exactly the same time (#6133)
* Add availability lag of rand 10% from timeout

* Update availability.js

* Update utils.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-14 11:37:31 +01:00
Koen Kanters
1e37ba1271 Don't log no converter available for genBasic cluster. https://github.com/Koenkk/zigbee-herdsman-converters/issues/2237 2021-02-12 20:46:32 +01:00
Koen Kanters
5986152349 Expose max/min color temp to Home Assistant. https://github.com/Koenkk/zigbee-herdsman-converters/issues/2217 2021-02-12 20:38:06 +01:00
Koen Kanters
b8284370d0 Bind to coordinator when setting-up reporting. https://github.com/Koenkk/zigbee2mqtt/issues/6191 2021-02-10 18:24:37 +01:00
Crowbar Z
2515d5f816
Support Tradfri Remote buttons triggering polling (#6192)
* Support Tradfri Remote buttons triggering polling

* Update Tradfri remote test commandStepWithOnOff
Will now poll both LevelCtrl and OnOff in case light turns on

* Update the right test this time

* Updating both tests

* Update debounce test

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-09 17:20:33 +01:00
Timoline
294bc2aab1
Update settings.schema.json (#6165)
* Update settings.schema.json

Added missing descriptions

* Update settings.schema.json

changed description Adapter delay

Co-authored-by: John Doe <nurikk@users.noreply.github.com>
2021-02-08 13:38:22 +08:00
Timoline
0d1782bfd0
Update settings.schema.json (#6166)
* Update settings.schema.json

Added missing settings legacy_api and homeassistant_legacy_triggers

* Update settings.schema.json

Removed legacy_api, it was already in
2021-02-08 13:34:58 +08:00
Timoline
012d7d9d7b
Added description for Frontend binding host (#6157)
Added description for Frontend binding host
2021-02-07 17:05:27 +01:00
Timoline
5d3d6fc59c
Update settings.schema.json (#6159)
* Update settings.schema.json

added setting ikea_ota_use_test_url

* Update settings.schema.json

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-07 17:04:13 +01:00
Koen Kanters
f992597392 bridge/request/options: fix exception on null value. 2021-02-07 14:07:27 +01:00
Shish
0e821cc7c8
Fix descriptions for cached state settings (#6152)
Co-authored-by: John Doe <nurikk@users.noreply.github.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-02-07 12:59:37 +01:00
Timoline
9df40bd9be
fixed small typo (#6149) 2021-02-07 12:45:07 +01:00
Timoline
d43b445749
Changed some titles in the settings schema (#6147) 2021-02-07 15:04:18 +08:00
John Doe
33b6ea86f9
Add frontend config (#6145)
* 1.17.1

* Add frontend config json schema
2021-02-07 11:19:00 +08:00
Koen Kanters
b9e0293325 Send offline state to frontend. 2021-02-06 17:50:44 +01:00
Koen Kanters
5889588a8a
Add zigbee2mqtt/bridge/request/options and zigbee2mqtt/bridge/request/restart (#6089)
* Initial

* Update schema

* Log changed options

* Implement zigbee2mqtt/bridge/request/restart

* Implement restart required

* Updates

* Updatos

* Set rtscts: false defaults

* Updates

* Updates
2021-02-06 23:32:20 +08:00
Koen Kanters
bf2d793577 Don't log publishes to bridge/info, bridge/devices and bridge/groups to reduce log spam 2021-02-06 15:44:10 +01:00
Koen Kanters
6c3ac2cd85 Don't allow adding groups with invalid name. #6066 2021-02-04 18:01:44 +01:00
Koen Kanters
836aac46c7 Deprecate retrieve_state option 2021-02-03 20:55:05 +01:00
John Doe
7c1e2c1bbf
Log info after changing entity option (#6063) 2021-02-03 12:26:12 +08:00
noned80
ed7f12eb89
Spelling correction of error message (#6056) 2021-02-02 22:44:29 +01:00
Koen Kanters
7cf746aa6a Merge branch 'dev' 2021-02-01 18:13:27 +01:00
John Doe
f1c29c9bfc
Flag "readOnly": true some fields (#6016) 2021-02-01 11:03:28 +08:00
Lubomir Kaplan
9f5c68e9ec
Pass logger to zigbee-herdsman controller (#5988)
* passing logger to zigbee-herdsman controller

* updated controller test for logger passing
2021-01-31 16:14:06 +01:00
John Doe
236ba3951f
Publish wheither device supports OTA or not (#5995) 2021-01-31 19:31:14 +08:00
John Doe
0903f4c777
Dummy options (#5981)
* Split groups and devices schema into definition

* Dummy bridge/request/options

* Linter
2021-01-30 15:44:36 +01:00
Koen Kanters
5cdd8eb7be Preps for new zigbee-herdsman-converters (build will fail for this commit) 2021-01-27 20:51:30 +01:00
Koen Kanters
6a33670296 Network scan stability improvement 2021-01-22 19:16:35 +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
e65d660236 Remove duplicate E11-N1EA. https://github.com/Koenkk/zigbee2mqtt/issues/775#issuecomment-763999942 2021-01-21 17:39:53 +01:00
Koen Kanters
51c2a8fdb8 Make E11-N1EA pingable. https://github.com/Koenkk/zigbee2mqtt/issues/775#issuecomment-763755661 2021-01-20 19:31:29 +01:00
Koen Kanters
c67de5eb28 Fix nothing logged in frontend when log_level warn is set. https://github.com/Koenkk/zigbee2mqtt/issues/5812 2021-01-19 18:14:40 +01:00
Jorge Schrauwen
0d59b52479
Add missing devices options to settings.schema.json (#5823)
Looks like a few more were missing that just debounce: 05fc32d8e0/docs/information/configuration.md (device-specific-configuration)
2021-01-19 17:39:46 +01:00
Koen Kanters
d1a1035e43 Fix nothing logged when log_level set to warn. https://github.com/Koenkk/zigbee2mqtt/issues/5812 2021-01-18 18:31:47 +01:00
Koen Kanters
48767a7bcf Allow to generate panID by setting "pan_id: GENERATE". https://github.com/Koenkk/zigbee2mqtt/issues/5745 2021-01-18 18:01:10 +01:00
John Doe
dbf84e775e
Update schema (#5786)
* Split groups and devices schema into definition

* Update settings schema
2021-01-17 17:20:50 +08:00
John Doe
0e6779db3a
Republish info (#5785)
* Split groups and devices schema into definition

* Republish bridge info after device/group props change
2021-01-17 09:51:32 +01:00
xyzroe
bbe4f9cd5f
endpoint support for binary and numeric discovery entries (#5771)
* endpoint support for binary and numeric exposes

* endpoint support for binary and numeric exposes
2021-01-16 18:26:55 +01:00
John Doe
d50d010b82
Publish settings json schema to bridge/info (#5754)
* Publish settings json schema to bridge/info

* Update frontend

* Please linter

* Rename configSchema -> config_schema

* Fix settings schema

* Update titles

* Updated descriptions

* Update frontend

* Update json schema titles and descriptions

* Update schema

* Update frontend

* Update npm-shrinkwrap.json

* Update package.json

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-01-16 12:32:15 +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
ed76bbbdc5 Add ExtensionFrontend. https://github.com/Koenkk/zigbee2mqtt/issues/5688 2021-01-11 17:01:20 +01:00
Koen Kanters
19c54040bc Allow string values for permit_join call. https://github.com/Koenkk/zigbee2mqtt/issues/5644 2021-01-10 16:54:01 +01:00
Koen Kanters
7b0eb87685 Don't allow friendly_name to start with. d7c74ca3ad 2021-01-09 15:13:29 +01:00
Koen Kanters
77a6ec09fb More friendly name checks. d7c74ca3ad 2021-01-09 14:21:01 +01:00
Koen Kanters
4626d557d3 Fix log level in frontend not updating after setting log level. https://github.com/Koenkk/zigbee2mqtt/issues/5635 2021-01-08 21:47:05 +01:00
Koen Kanters
d7c74ca3ad Fix not allowed friendly_names being allowed. #5618 2021-01-08 20:46:04 +01:00
Koen Kanters
b2cd519e0b Allow disabling discovery of device_automation. https://github.com/Koenkk/zigbee2mqtt/issues/5597 2021-01-08 20:23:25 +01:00
Koen Kanters
4fc10f0cfb Attempt to fix external converters exposes not loaded into HA discovery. https://github.com/Koenkk/zigbee2mqtt/discussions/5605 2021-01-07 19:24:48 +01:00
Koen Kanters
2942ae9f4a
Fix some properties not being published when debounce is used (#5509)
* initial

* More logging. https://github.com/Koenkk/zigbee-herdsman-converters/issues/1988

* More logging

* Ignore group_optimistic

* Cleanup

* Add logging again

* We got him?

* go

* linto
2021-01-07 19:17:13 +01:00
David
2524020963
Fix availability not working for Sengled E11-N1EA bulb (#5603)
Added availability support for Sengled E11-N1EA (RGB) bulb.  

https://www.zigbee2mqtt.io/devices/E11-N1EA.html#sengled-e11-n1ea
2021-01-07 19:07:36 +01:00
Koen Kanters
2cf9657bd4 Fix disabling discovery of specific Home Assistant sensor not working. #5597 2021-01-07 18:56:39 +01:00
Koen Kanters
4b8500603d Prepare for next zhc release 2021-01-05 20:36:04 +01:00
Koen Kanters
adfb9f0c42 Fix setting last_seen from frontend not working. #5545 2021-01-05 19:15:08 +01:00
Koen Kanters
acfd938e48 HA discovery: prefer XY over HS. 2021-01-05 18:40:26 +01:00
Igor Listopad
660796a1e4
Add specifying auth_token in a different file (#5537)
* Add specifying auth_token in a different file

* Update settings.js

* Update settings.js

* Update settings.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-01-04 19:32:03 +01:00
Koen Kanters
d53b63d67e Allow joining for a specific amount of time. https://github.com/nurikk/z2m-frontend/issues/202 2021-01-03 11:08:33 +01:00
Pedro Lamas
2dc9016f9f
More HA device classes in use (#5495) 2021-01-01 22:48:07 +01:00
Koen Kanters
016137b82b Republish devices after configuring reporting. 5f99e26eda 2020-12-30 12:20:38 +01:00
Koen Kanters
3558635797 Only reconfigure reporting for Ikea bulbs on device annouce when configuredReportings is empty, this is now done in 5f99e26eda 2020-12-29 20:06:10 +01:00
Koen Kanters
ff59480bce Expose model_id. 2020-12-29 18:50:57 +01:00
Koen Kanters
332ccee44a Log succesful configured reporting. 2020-12-29 10:56:46 +01:00
Koen Kanters
0e1d683c77 Republish devices after configure 2020-12-29 10:43:06 +01:00
Koen Kanters
09c5631b4d Expose configured reportings. 2020-12-28 23:12:40 +01:00