Koen Kanters
9bb21f486c
chore: merge master to dev
2024-08-04 22:14:52 +02:00
Laurent and Koen Kanters
d0f5733db3
fix: Remove group from Home Assistant when removed ( #23492 )
...
* Fire event when group gets removed
* Add a unit test for the new behavior
* Make prettier happy
* Add missing return type
* Merge device and group removal events
* Unbreak bridgeLegacy.ts
* Update homeassistant.ts
* Update bridge.ts
* Update bridge.ts
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-08-04 22:14:36 +02:00
Koen Kanters
3217332e46
fix: Fix expose category ignored by HA discovery ( #23494 )
2024-08-03 13:00:29 +02:00
Koen Kanters
d9ba4524e4
fix(ignore): fix 5fcf295ab8
2024-07-25 21:59:40 +02:00
Koen Kanters
5fcf295ab8
fix: Fix race condition in frontend extension ( #23412 )
2024-07-24 20:20:24 +00:00
Koen Kanters
26b1613948
fix(ignore): Remove some unecessary string concatenations
2024-07-22 21:33:24 +02:00
Koen Kanters
e3fa0bfb65
fix: Ignore cache when re-interviewing device ( #23328 )
...
* fix: Ignore cache when re-interviewing device
* updates
2024-07-12 10:15:33 +00:00
Koen Kanters
8397f47649
fix: Fix availability blocking other extensions startup ( #23316 )
...
* fix: Fix availability blocking frontend startup
* Process feedback
* fix
2024-07-11 21:07:01 +02:00
Koen Kanters
1bf385c5ff
fix(ignore): fix 6b9247c84d
2024-07-06 11:56:16 +02:00
Koen Kanters
6b9247c84d
fix: Truncate text of Home Assistant text sensor https://github.com/Koenkk/zigbee2mqtt/issues/23199
2024-07-06 11:22:26 +02:00
Gernot Messow and Koen Kanters
4210edf60e
fix: Allow definition to override HA discovery payload ( #23075 )
...
* Added function to override payloads for non-conforming devices
* override implementation for Bosch BTH-RA
* unit test including mockup for this device
* Experimental and broken integration of overrideHaConfig
* Not working experiments; mqtt publish debug output
* fixes
* Updates
* fix
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-07-03 21:27:45 +02:00
Ikko Eltociear Ashimine
5dde063119
chore: update homeassistant.ts ( #23213 )
...
unecessary -> unnecessary
2024-06-30 20:59:53 +02:00
Koen Kanters
dc7a06cf56
fix: Don't allow homeassistant.discovery_topic to be equal to mqtt.base_topic https://github.com/Koenkk/zigbee2mqtt/issues/23109 ( #23209 )
2024-06-30 10:42:24 +00:00
Koen Kanters
30227a13ae
chore: Implement prettier ( #23153 )
...
* chore: Implement prettier
* Run prettier
* fix lint
* process feedback
* process feedback
2024-06-24 18:58:47 +00:00
Jorge Schrauwen and Koen Kanters
ad84374046
fix: Fix OTA overriding custom software version attribute ( #23129 )
...
* fix: OTA loses version info for develco/frient
This fix is not perfect, as it will still print that it got updated from null to null.
We just moved the reconfigure later, which will trigger this https://github.com/Koenkk/zigbee-herdsman-converters/blob/000041cba216822dab151151c493b560678da91a/src/devices/develco.ts#L36
for develco/frient devices that have it in their configure. (Which should be all of them)
Of note though, ZCL marks both dateCode and swBuildId as optional attributes, so Develco/Frient returning UNSUPPORTED_ATTRIBUTE here is not outside of spec. Although I'm not sure there is a cleaner way to do this.
* Update otaUpdate.test.js
* Update otaUpdate.ts
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-06-23 11:24:03 +02:00
Nerivec
3d772b5db3
fix: Bind code optimisation/formatting ( #23110 )
...
* Bind code optimization/formatting
* Feedback
* Fix coverage
2024-06-23 10:38:00 +02:00
Nerivec
f57465324a
fix: Availability code optimization/formatting ( #23065 )
...
* Availability code optimization/formatting
* Fix mock.
* Fix map => some
2024-06-16 17:25:40 +02:00
ghoz
ef2c939482
fix: Don't call onEvent on disabled devices ( #23058 )
...
As z2m requires a restart for enable/disable to be effective,
we don't need to handle changes at runtime (stop events etc)
2024-06-15 10:26:06 +02:00
Nerivec
6064194e52
fix: Groups code optimization/formatting ( #23015 )
2024-06-11 21:08:01 +02:00
Nerivec
282dfd5b01
fix: Fix floating promises originating from index.js ( #22943 )
2024-06-05 20:19:53 +02:00
Nerivec
2b8eaa196a
fix: Enforce no floating promises ( #22880 )
...
* Enforce no floating promises.
* forEach => for/of. Fix tests.
2024-06-04 20:05:39 +02:00
Adam Goode
dbf0a3358d
fix: Set voc_index to mdi:molecule to match other VOC icons in Home Assistant ( #22920 )
2024-06-04 20:00:30 +02:00
Adam Goode
40ad896114
fix: Support ppb and ppm for VOC reporting in Home Assistant ( #22895 )
...
See https://github.com/home-assistant/core/pull/92973 .
2024-06-03 20:11:40 +02:00
Adam Goode
519e123b69
fix: Use occupancy device_class instead of motion for occupancy sensors ( #22896 )
...
'occupancy' matches the zigbee terminology more closely and is more
consistent with other Home Assistant entities of this type.
https://www.home-assistant.io/integrations/binary_sensor/
In general, it looks like 'motion' is more for alarms, and 'occupancy'
for non-alarm situations. Z2M currently makes no distinction between
these concepts, but they could be separated (with a fair amount of work).
2024-06-02 21:11:00 +02:00
Koen Kanters
6924db79e8
fix: Add logging for interview https://github.com/nurikk/zigbee2mqtt-frontend/pull/2027
2024-06-01 16:30:38 +02:00
Mike Ryan
b6ad6418a1
feat: Add api for device re-interview ( #22788 )
...
* feat: add api for device re-interview
- Adds an API that allows for the re-interview of a device. This can be
useful a device firmware upgrade adds new device endpoints (as is the case
when upgrading an Inovelli VZM31-SN to 2.18). Without the ability to
re-interview, one must remove and re-add the device.
* rename from reinterview to interview
* publish devices after interview.
* only allow device ids or names, not endpoints
2024-05-30 20:48:34 +02:00
Koen Kanters
ae8a59dd51
fix(ignore): Fix Home Assistant device_automation being cleared due to ef68cc328e
2024-05-27 16:59:56 +02:00
Koen Kanters
ef68cc328e
fix: Optimize Home Assistant discovery ( #22701 )
...
* fix: Optimize Home Assistant discovery
* update
* u
* u
* u
* fix
2024-05-21 20:53:37 +02:00
Laurent Chardin and Koen Kanters
d484405cf0
fix: Expose custom clusters to MQTT ( #22583 )
...
* (feat) Expose Custom Clusters in MQTT
- Introducing bridge/definitions
- Updating test case for custom clusters
- Updating new path after ZCL revamp with 0.47.0
This change is needed for nurikk/zigbee2mqtt-frontend#2001
* Fixing test case
* Update lib/model/device.ts
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
* Update test/bridge.test.js
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
* Removing the publishDefinition call from some events. updating tests
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-05-21 19:54:18 +02:00
Koen Kanters
63de2c5ccc
fix: Fix Entity 'homeassistant/sensor' is unknown https://github.com/Koenkk/zigbee2mqtt/issues/22258
2024-05-19 21:32:09 +02:00
Koen Kanters and Nerivec
ce6043acb0
fix: Improve settings changing ( #22674 )
...
* Add namespaced levels for logger. Add NS to mqtt. Deprecate 'warn'.
* Improve setting validation.
* Fix setting through frontend
* Support reload + frontend improvements
* update description
* remove requiresRestart
* Fix tests.
* Fix namespaced logging at lower levels. Add better tests.
* fix: Fix settings changing
* remove `removeNullPropertiesFromObject` from bridge
* Add extra test
* update
---------
Co-authored-by: Nerivec <62446222+Nerivec@users.noreply.github.com >
2024-05-19 16:01:28 +02:00
Nerivec and Koen Kanters
2eec6a4d26
fix: Add namespace-specific levels support to logger ( #22619 )
...
* Add namespaced levels for logger. Add NS to mqtt. Deprecate 'warn'.
* Improve setting validation.
* Fix setting through frontend
* Support reload + frontend improvements
* update description
* remove requiresRestart
* Fix tests.
* Fix namespaced logging at lower levels. Add better tests.
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-05-19 15:47:40 +02:00
Nerivec
eb49f523bf
fix: Add settings for finer control over debug log level ( #22426 )
...
* Add settings for finer control over debug log level.
* Updates from feedback.
2024-05-05 21:52:26 +02:00
f774753213
fix(ignore): update zigbee-herdsman-converters to 19.19.1 ( #22171 )
...
* fix(ignore): update zigbee-herdsman-converters to 19.19.1
* fix(configure): pass definition to function call (#22154 )
* Pass definition to configure
* fix test
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
---------
Co-authored-by: Koenkk <2892853+Koenkk@users.noreply.github.com >
Co-authored-by: Sergei Salimov <32013287+mrskycriper@users.noreply.github.com >
2024-04-10 22:02:12 +02:00
Koen Kanters
c98e5a74de
fix: Remove deprecated Home Assistant color_mode ( #22142 )
2024-04-08 21:19:17 +02:00
Koen Kanters
002050f35b
fix: Reduce MQTT publishing by excluding debug logging from bridge/logging ( #22066 )
...
* fix: Reduce MQTT publishing by excluding debug logging from `bridge/logging`
* fix tests
* fix
2024-04-06 12:44:43 +02:00
Koen Kanters
9d251dbad5
fix: Disable automatic reconfigure when configureKey changes ( #22088 )
2024-04-04 21:47:44 +02:00
Nerivec
919c4eee73
fix: Cleanup old logger leftovers ( #22069 )
2024-04-04 20:24:39 +02:00
Koen Kanters
780c065fa1
fix(ignore): fix 73566dff98
2024-04-02 22:38:02 +02:00
Nerivec and Koen Kanters
73566dff98
feat: Unified logging across z2m/zh/zhc ( #21984 )
...
* Unified logging across z2m/zh/zhc
* Updates
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-04-02 22:33:51 +02:00
Koen Kanters
83502f2d30
fix(ignore): Update manufacturer codes ( #21729 )
2024-03-10 19:45:22 +01:00
Sergei Salimov
14e044093c
fix: Home Assistant: remove button name if device_class is present ( #21726 )
...
* Remove preset name if button has device class
* fix device_class for consumer_connected
* combine device_class checks
2024-03-08 22:39:15 +01:00
koenkk
1110d3f8ef
fix: Fix incorrect update state when Z2M is restarted during OTA update https://github.com/Koenkk/zigbee2mqtt/issues/12794
2024-03-05 22:33:33 +01:00
Sergei Salimov
01843fe6c4
fix: Add more Home Assistant entity icons ( #21652 )
2024-03-02 21:46:46 +01:00
Sergei Salimov
9b8583e778
fix: Add noise and noise_detected to HA lookup ( #21610 )
2024-02-29 17:42:48 +01:00
Oleksandr Masliuchenko
471902e531
fix: Improve nested group and device name match ( #21521 )
2024-02-22 19:54:09 +01:00
koenkk
db1e3b73d1
fix: Only configure routers on startup https://github.com/Koenkk/zigbee2mqtt/issues/21446
2024-02-20 20:24:03 +01:00
Artem Draft
fe73db4ff6
fix: trigger_count & power_outage_count adjustments in HA ( #21492 )
2024-02-20 19:47:45 +01:00
Sergei Salimov and Koen Kanters
24b5f9b43a
feat: Add support for button entity in Home Assistant ( #21372 )
...
* add button entity support
* add enabled_by_default to select
---------
Co-authored-by: Koen Kanters <koenkanters94@gmail.com >
2024-02-13 19:43:21 +01:00
Oleksandr Masliuchenko
b4473d6e24
fix: Remove predefined endpoint list, remove limits on device friendly name ( #21325 )
...
* Get rid of predefined list of endpoints, correct friend name validations
* Fix minor bug while parsing a topic for an unknown device
2024-02-10 16:50:44 +01:00