Koen Kanters
5cd1af569e
Fix crash when removing device from group which has no devices in settings. #3185
2020-03-23 22:24:35 +01:00
Koen Kanters
a3b285d1ac
Don't allow MQTT wildcard (# or +) in friendly_name. #3175
2020-03-23 19:59:49 +01:00
Koen Kanters
6cc2689593
Log error when there is nothing to bind. #3159
2020-03-20 19:00:00 +01:00
Koen Kanters
a30abba973
Make sure that there is always an update_available value for Home Assistant. https://github.com/Koenkk/zigbee2mqtt/issues/3146
2020-03-20 17:50:28 +01:00
Koen Kanters
ac8a84feb2
Update converters.
2020-03-19 23:04:39 +01:00
Koen Kanters
27b3fd2f03
Update converters.
2020-03-15 22:26:03 +01:00
Koen Kanters
66b68da318
Add vendor and description to 'zigbee2mqtt/bridge/config/devices'. #3133
2020-03-15 17:04:10 +01:00
Koen Kanters
4d3bbce687
Implement lightWithPostfix Home Assistant configuration. #3003
2020-03-15 09:38:39 +01:00
Dustin Sallings
97a4b6b539
Add support for expiring retained messages. ( #3082 )
...
* Add support for expiring retained messages.
For most of my environmental monitoring use cases, I want the readings
retained so I can pick them up from clients at any time, but if the
sensor (or zigbee2mqtt) fails, I want the readings to go away so I can
tell the difference between a stale reading and a missing reading.
This is easily accomplished in MQTTv5 using the "message expiry
interval" property. To add that to zigbee2mqtt, I added a 'version'
option to the mqtt section so I can specify to connect with version 5
and added a 'retention' property to devices allowing me to specify how
long items should be retained.
e.g.
mqtt:
base_topic: site/zigbee2mqtt
server: 'mqtt://myserver'
user: zigbee
version: 5
serial:
port: /dev/ttyACM0
devices:
'0x00358d00022308da':
friendly_name: someroom
retain: true
retention: 900
* Also get from deviceOptions
* Update settings.js
* Update controller.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-03-12 20:25:37 +01:00
Koen Kanters
f1a685bea2
Reduce MQTT subscriptions in deviceBind. https://github.com/Koenkk/zigbee2mqtt/issues/3102
2020-03-11 21:30:01 +01: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
nightdeveloper
b59d761ca6
publish announces to log topic ( #3101 )
...
* publish announces to log topic
* publish announces to log topic #test fix
* Update controller.js
* Update controller.test.js
* Update deviceAvailability.test.js
Co-authored-by: Andrey Sergeew <avsergeev@neoflex.ru>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-03-11 18:21:06 +01:00
Koen Kanters
4d54e5038b
Refuse to start when friendly_name ends with /DIGIT. #2645
2020-03-07 23:06:22 +01:00
Kiall Mac Innes
67b4bcf815
Update HA Discovery Info on Rename ( #3040 )
...
* Update HA Discovery Info on Rename
Update HA discovery info when a device is renamed. Adds a new deviceRenamed
event to the event bus, allowing the HA extension to react to the rename
Fixes #2440
* Handle Groups correctly wrt HA discovery data refresh
* Cleanup group handling
* Cleanup group handling
2020-03-04 12:55:08 +01:00
Jorge Schrauwen
b17b9c76ef
#3009 filtered_attributes should also work in device_options ( #3057 )
2020-03-03 18:30:54 +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
Koen Kanters
9f1b8cf214
Allow to disable homeassistant legacy triggers. #3033
2020-03-01 15:55:20 +01:00
Koen Kanters
ed75c85b69
Implement Home Assistant MQTT device trigger. #3033
2020-02-29 18:07:15 +01:00
Koen Kanters
a16e3542c0
Update herdsman. #3019
2020-02-29 12:43:53 +01:00
Koen Kanters
dd3678f84b
TEMP: disable OTA response. https://github.com/Koenkk/zigbee2mqtt/issues/3019
2020-02-28 23:52:30 +01:00
Koen Kanters
a40ad0c52f
Respond with ABORT when device checks for OTA. https://github.com/Koenkk/zigbee2mqtt/issues/3019
2020-02-28 23:42:59 +01:00
Koen Kanters
f6aba5f64a
Respond with image not available when OTA is requested but we don't support it. #3019
2020-02-28 23:30:33 +01:00
Koen Kanters
342d4c17b9
Fix debounce, debounce_ignore, retain and qos in device_options not honored. #3004
2020-02-27 21:06:27 +01:00
Christian Scheffler
69c477da7d
added mqtt log events group_added and group_removed ( #3016 )
2020-02-27 21:03:56 +01:00
Koen Kanters
a36f11a4fb
Update converters.
2020-02-25 20:20:52 +01:00
Koen Kanters
9cc84feb67
Allow to rename groups through zigbee2mqtt/bridge/config/rename. https://github.com/Koenkk/zigbee2mqtt/issues/2991
2020-02-23 21:51:30 +01:00
Koen Kanters
dd82b29629
Update converters. https://github.com/Koenkk/zigbee2mqtt/issues/2967
2020-02-23 20:47:38 +01:00
Koen Kanters
ad59ff57bc
Also remove group from herdsman on remove. #2265
2020-02-22 15:53:05 +01:00
Koen Kanters
6b5b4ab433
Log when update is availabe. 58d987b523 (r37363068)
2020-02-20 20:01:26 +01:00
Koen Kanters
58d987b523
Implement update_available attribute and discover Home Assistant sensor. #2948
2020-02-16 16:00:15 +01:00
Koen Kanters
bbf432eae5
Update herdsman and herdsman-converters.
2020-02-13 21:35:37 +01:00
Koen Kanters
87faaa1817
Don't crash when devices doesn't respond to read modelID after update. https://github.com/Koenkk/zigbee2mqtt/issues/2921
2020-02-13 21:10:44 +01:00
Koen Kanters
984bad4cb3
Major OTA improvements. https://github.com/Koenkk/zigbee2mqtt/issues/2921
2020-02-09 20:44:37 +01:00
Koen Kanters
83291e242e
OTA https://github.com/Koenkk/zigbee-herdsman/issues/60 ( #2920 )
...
* ota
* Bla
* Update converters.
2020-02-08 19:55:26 +01:00
Koen Kanters
558153ebd6
Update converters.
2020-02-04 20:28:47 +01:00
Koen Kanters
0111681cb7
Update converters. https://github.com/Koenkk/zigbee2mqtt/issues/2850
2020-01-31 22:42:24 +01:00
Koen Kanters
5488504809
Update converters.
2020-01-29 21:38:37 +01:00
Koen Kanters
c87ccea9ba
Update converters.
2020-01-29 18:34:40 +01:00
Koen Kanters
fe62ceb0f9
Add unbind for default_bind_group. https://github.com/Koenkk/zigbee2mqtt/issues/2772
2020-01-27 20:56:11 +01:00
Koen Kanters
61a3f0e839
Update converters and fix tests for real.
2020-01-26 21:38:04 +01:00
Koen Kanters
b58cbd4883
Fix tests.
2020-01-26 19:57:15 +01:00
Koen Kanters
93e96a2e5e
Update converters.
2020-01-23 21:00:50 +01:00
Koen Kanters
145f8a577d
Update converters.
2020-01-22 21:34:15 +01:00
Koen Kanters
dae52a22d7
Update converters.
2020-01-21 21:19:11 +01:00
Koen Kanters
ae5330d090
Update converters.
2020-01-17 22:51:37 +01:00
Twan Coenraad
dd0ca2a392
Add keepalive option for MQTT ( #2767 )
2020-01-17 21:38:46 +01:00
lukeIam
4a0059afcd
Allow attribute and json in parallel ( #2712 )
...
* Allow attribute and json in parallel
* Fix tests
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-01-12 15:07:06 +01:00
Koen Kanters
cb0b0b5af9
Clear Home Assistant MQTT discovery on device remove. #2678
2020-01-09 21:47:19 +01:00
Koen Kanters
3a463b0782
Update converters.
2020-01-08 20:06:01 +01:00
TilmanK
0df966755c
Corrected several typos in "Successfully" within log messages ( #2697 )
...
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2020-01-08 19:29:22 +01:00
Daniel Chesterton
94d0253f27
Update availability_blacklist and availability_whitelist to allow for friendly names ( #2684 )
2020-01-08 18:02:49 +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
Koen Kanters
c041f0cddc
Ignore setup reporting for closuresWindowCovering ZNLDP12LM. #2611
2020-01-07 19:59:43 +01:00
Koen Kanters
d3aba2689c
Update converters.
2020-01-03 23:29:28 +01:00
Koen Kanters
e63d196966
Skip configure when device does not require it. https://github.com/Koenkk/zigbee2mqtt/issues/2588
2019-12-23 20:48:37 +01:00
Koen Kanters
af4184e3ff
Always log 'No converter available...` to debug. #2543
2019-12-17 19:19:57 +01:00
Koen Kanters
6b7bd9da37
Re-add model to device information. #2497
2019-12-11 20:15:42 +01:00
Koen Kanters
d17eec5310
Don't allow postfix to be a friendly_name. #2486
2019-12-09 18:27:39 +01:00
Jorge Schrauwen
bcf79a7e34
Device Availability: Allow battery devices to report offline/online based on device.lastSeen ( #2464 )
...
* Remove execution bits for deviceReceive.js
* deviceAvailability.isPingable should return true if 'availability_lastseen_timeout' is set for device
* deviceAvailability.handleInterval should know how to handle lastseen_timeout setting
* Allow availability_lastseen_timeout for all devices
* Use a default lastseen timeout of 24h
* Updates
* Updates
* Updates
* 25 hours instead of 24.
2019-12-09 18:12:13 +01:00
Koen Kanters
6bd9e74e0c
Fix tests
2019-12-08 16:52:23 +01:00
dusanmsk
6aad019328
mqtt listener to rename last paired device. ( #2478 )
...
* mqtt listener to rename last paired device.
send zigbee2mqtt/bridge/config/rename_last with payload containing new name and last paired device will be renamed
* Updates
2019-12-08 16:50:18 +01:00
Koen Kanters
33201367f1
Update herdsman and converters.
2019-12-05 21:33:28 +01:00
Jaron Viëtor
60627ab6e3
Added support for accepting hex color on deviceName/set/color MQTT topic ( #2441 )
...
* Added support for accepting hex color on deviceName/set/color MQTT topic
* Update entityPublish.js
2019-12-04 21:23:46 +01:00
Koen Kanters
1459ffea7a
Publish availabilty when non pinagable device joins. #2452
2019-12-04 20:21:14 +01:00
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
5e165810ec
Allow to configure manually. https://github.com/Koenkk/zigbee2mqtt/issues/2365 https://github.com/Koenkk/zigbee-herdsman-converters/issues/779#issuecomment-559598591
2019-11-29 09:43:59 +01:00
Koen Kanters
99fd93f9a7
Allow setting transmit power. https://github.com/Koenkk/zigbee2mqtt/issues/2253
2019-11-27 22:02:49 +01:00
Koen Kanters
2a81a54609
Stop pinging device when removed. #2419
2019-11-27 18:14:39 +01:00
Koen Kanters
d37d9ee859
Factory reset device through Touchlink.
2019-11-23 20:44:23 +01:00
Kryzek
46d7176976
availability_whitelist ( #2387 )
...
* availability_whitelist
* Tests
* Cleanup
* Update deviceAvailability.js
2019-11-23 11:47:37 +01:00
frontend89
260d2904f3
Add device specific configuration option: debounceIndexes ( #2370 )
...
* Add device specific configuration option: debounceIndexes
* Rename debounceIndexes to debounce_ignore
* Lint
2019-11-20 21:21:23 +01:00
Koen Kanters
b23276f7f3
Re-configure when device rejoins. https://github.com/Koenkk/zigbee-herdsman-converters/issues/758
2019-11-20 19:06:04 +01:00
Koen Kanters
fdc8fcc02b
Allow to specify endpoint via property. #2356
2019-11-20 17:36:36 +01:00
Koen Kanters
ef16fcd505
Fix tests.
2019-11-20 17:35:49 +01:00
Koen Kanters
a7486d723f
Update herdsman converters.
2019-11-14 20:43:20 +01:00
Koen Kanters
e33b49e2ff
Update herdsman and converters.
2019-11-12 19:40:52 +01:00
Koen Kanters
d8512c73df
Fail gracefully when state retrieval fails after device reconnects. #2318
2019-11-11 19:25:11 +01:00
Koen Kanters
fdcaaee955
Fix typo.
2019-11-11 17:45:11 +01:00
Koenkk
e2858dc90f
Fix topic postfix detection having number. #2309
2019-11-11 17:36:33 +01:00
Koen Kanters
0b0a9bca4d
Update converters.
2019-11-10 19:53:37 +01:00
Jorge Schrauwen
be1c81a778
#2296 only publish /availability if the state has changed ( #2303 )
2019-11-10 17:56:01 +01:00
Koen Kanters
6c453738d4
Update herdsman and converters.
2019-11-07 18:28:17 +01:00
Koen Kanters
dcf1c83a25
Fix tests for real now.
2019-11-07 17:48:03 +01:00
Koen Kanters
2b7d9e6ee7
Fix tests.
2019-11-06 22:08:33 +01:00
Koen Kanters
019b087af1
Fix tests.
2019-11-06 20:51:31 +01:00
Koen Kanters
af770acd2d
Make retain a optional option and default it to false.
2019-11-06 20:30:33 +01:00
Koen Kanters
23cf8eade9
Make graphviz networkmap ISO_8601_local time. https://github.com/Koenkk/zigbee2mqtt/issues/2239
2019-11-06 19:49:03 +01:00
Tim Kent
45c6f2345c
Fix extendedPanID parameter name ( #2283 )
...
* Fix extendedPanID parameter name
* Update herdsman and fix tests.
2019-11-06 19:43:12 +01:00
Koen Kanters
5cdf820bf6
Update herdsman and converters.
2019-11-05 21:14:19 +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
Koen Kanters
467c0062bb
Dont' crash when removing non-existing device. https://github.com/Koenkk/zigbee2mqtt/issues/2241
2019-11-03 15:02:00 +01:00
Koen Kanters
afbfdda0d7
Implement force remove. https://github.com/Koenkk/zigbee2mqtt/issues/2241
2019-11-03 14:54:03 +01:00
Koen Kanters
4265fe05c6
Correctly log name. #2256
2019-11-03 14:29:43 +01:00
Koen Kanters
833769af0c
Log name instead of ieeeAddr on ping. https://github.com/Koenkk/zigbee2mqtt/issues/2256
2019-11-03 14:17:57 +01:00
Koen Kanters
8a5f39f6aa
Subscribe to nested topics for bind. https://github.com/Koenkk/zigbee2mqtt/issues/2250
2019-11-02 00:03:22 +01:00
Koen Kanters
5f054862f0
Update zigbee-herdsman-converters.
2019-10-30 23:12:16 +01:00
Koenkk
754db956b5
Don't turn on with 255 brightness when transition is provided. https://github.com/Koenkk/zigbee2mqtt/issues/2220
2019-10-28 18:07:15 +01:00
Koenkk
646cd34715
Support secret for network_key. https://github.com/Koenkk/zigbee2mqtt/issues/2209
2019-10-28 18:05:50 +01:00