Commit Graph

1298 Commits

Author SHA1 Message Date
Ryan Kim(True-World) 73a6ad4cf8 add HA expose, binary sensor card (#10406)
* add binary sensor card

* fix lint
2021-12-29 16:21:59 +01:00
Alex Cherkayev 79e5f0844a Add 4417 to bind poll (#10379)
Co-authored-by: Oleksandr Cherkayev <ocherkayev@luxoft.com>
2021-12-27 18:11:21 +01:00
Koen Kanters 50a6ed14d4 Allow read/write to unsupported devices. 2021-12-26 10:54:39 +01:00
Koen Kanters 7a4ecadb6a Change coordinator ieee addr place. 2021-12-24 17:56:18 +01:00
Koen Kanters 511f3b09af Expose coordinator_ieeeaddr on bridge/info 2021-12-24 17:52:30 +01:00
Valentin 74cff6a983 Call onEvent when device options change (#10322)
* Notify when options change

* publish device info after options change

* Refactor

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-12-23 21:18:27 +01:00
Valentin cd5dd39971 Dynamically expose attributes (#10132)
* Dynamically expose attributes

* Rollback options in configure step

Use event instead, as proposed in https://github.com/Koenkk/zigbee2mqtt/pull/10132/files#r771801648

* Simplify code

* Switch to already existing event

* Fix all unit tests

* Remove redundant code

* Perfect rollback

* Fix typescript types

* Updates

* Updates

* Updates

* updates

* Improve

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-12-22 19:31:41 +00:00
Koen Kanters f9aa525048 Refactor Home Assistant extension mapping, prepares for #10132 2021-12-21 22:02:05 +01:00
Koen Kanters 2a9d22e2b3 Software/datacode is now updated by zigbee-herdsman. #10131 2021-12-19 18:00:27 +01:00
Koen Kanters 1dd1163288 Fix list not overridable in Home Assistant discovery payload. #10120 2021-12-17 21:37:19 +01:00
Koen Kanters a56061b36d Attempt to fix crash due to availability state read. #10177 2021-12-15 19:48:32 +01:00
Koen Kanters ea04021438 Cleanup availability experimental log. #9907 2021-12-14 20:38:44 +01:00
Koen Kanters 5a624ae188 Fix error for Home Assistant last_seen sensor when epoch is used. #8287 2021-12-14 20:27:49 +01:00
Koen Kanters ac16d7ce69 Reconfigure device after OTA update. #7716 #7150 2021-12-07 21:58:11 +01:00
Koen Kanters cb2ef51df8 Fix last seen not always updated. #7423 2021-12-03 19:21:52 +01:00
Koen Kanters 68e5b39172 Mock update.state for Home Asisstant sensor. https://github.com/Koenkk/zigbee2mqtt/issues/9939 2021-12-03 19:08:00 +01:00
John Doe ed9d09a629 Replace serve-static with connect-gzip-static (#9921)
* Replace serve-static with connect-gzip-static in order to serve .gz files

* Make linter happy

Co-authored-by: nurikk <ainur@yojee.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-12-01 07:20:53 +00:00
Koen Kanters 0a7a477281 Send only 1 MQTT message when last_seen is enabled and Zigbee message is received. https://github.com/Koenkk/zigbee2mqtt/issues/9519 2021-11-27 09:31:31 +01:00
Koen Kanters 5e3b18a053 Log failed to ping as warning instead of error. https://github.com/Koenkk/zigbee2mqtt/issues/9700 2021-11-21 22:11:10 +01:00
Filip Sandborg c793cc83ad Expose pi_heating_demand to Home Assistant (#9759)
* homeassistant: expose pi_heating_demand on climate

This allows homeassistant to access the actual percentage actuation currently used on thermostats.

* Update homeassistant.ts

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-20 13:59:04 +01:00
Koen Kanters 5d415aa299 Support multiple endpoints for Home Assistant tilt cover. https://github.com/Koenkk/zigbee-herdsman-converters/issues/3376 2021-11-18 19:43:38 +01:00
Koen Kanters cc03be46df Fix properties missing when debounce is used under some conditions #9658 (#9682)
* Add logging

* Kill bugs

* Updates
2021-11-17 17:59:00 +00:00
Koen Kanters 9582808b09 Prepare for https://github.com/Koenkk/zigbee2mqtt/pull/9654 2021-11-14 17:18:01 +01:00
Koen Kanters 3141a14fec Attempt to fix race condition in availability stop. https://github.com/Koenkk/zigbee2mqtt/issues/9644 2021-11-14 16:18:54 +01:00
Koen Kanters 170ef40982 Fix startup blocked by onEvent handlers 2021-11-11 21:00:16 +01:00
Artem Draft 6ca8d35183 Expose local_temperature_calibration to Home Assistant (#9595)
* expose local_temperature_calibration in HA as numeric

* fix eslint

* added min/max logic

* remove magic values

* Update homeassistant.ts

* Update types.d.ts

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-10 20:17:56 +00:00
Koen Kanters 420bae4259 Fix Home Assistant command topics for multi endpoint climate devices. https://github.com/Koenkk/zigbee-herdsman-converters/pull/3217 2021-11-10 21:07:47 +01:00
Kenny Levinsen 8ef82fe23f receive: Add genPollCtrl to ignored clusters (#9580)
zigbee-herdsman may bind genPollCtrl for poll control integration, but
that does not mean that there will be a converter available further up
the stack.

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-10 18:44:07 +00:00
Adam Belebczuk 9e216011d4 Fix Home Assistant discovery message for running_state fan_only (#9547)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-07 17:38:51 +00:00
Koen Kanters f151e1d371 Fix 89af770d96 for real now 2021-11-05 20:39:12 +01:00
Koen Kanters 55802ef648 Fix 89af770d96 2021-11-05 20:31:09 +01:00
Koen Kanters 89af770d96 Fix external extensions not started. https://github.com/Koenkk/zigbee2mqtt/issues/9520 2021-11-05 20:24:09 +01:00
Koen Kanters 0efd0cfe17 Fix min/max value for Home Assistant number entity. https://github.com/Koenkk/zigbee2mqtt/issues/9012 2021-11-05 19:30:14 +01:00
Franck Nijhof c852434dde Cleanup unused legacyApi variable (#9512) 2021-11-05 19:20:42 +01:00
Franck Nijhof 57e93a48ff Fix HA discovery device firmware version (#9511) 2021-11-05 19:19:55 +01:00
Franck Nijhof a09aa4243e Improve expose of update sensors to HA (#9306)
* Improve expose of update sensors to HA

* Update homeassistant.ts

* Update homeassistant.ts

* Update homeassistant.test.js

* Update homeassistant.test.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-04 21:11:58 +01:00
Koen Kanters 20b6fd42d3 Stop pinging device (availability feature) when it is removed. https://github.com/Koenkk/zigbee2mqtt/issues/9490 2021-11-04 20:52:10 +01:00
Franck Nijhof 2612de3c34 Correct device class and entity category for last seen HA sensor (#9305)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-03 20:36:01 +01:00
Franck Nijhof 416f4fa548 Mark indicator led HA switch as entity type config (#9309)
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-11-03 20:31:31 +01:00
Franck Nijhof ee57b0ce0b Add support for unit of measurement to HA number entities (#9312) 2021-11-03 20:24:55 +01:00
Franck Nijhof 9729a72d33 Add Home Assistant entity_category support (#9293) 2021-11-03 20:23:46 +01:00
Koen Kanters 68b5be0ce7 Properly handle update available check failing for IKEA device. https://github.com/Koenkk/zigbee-herdsman-converters/issues/3253 2021-11-01 19:09:34 +01:00
Koen Kanters 62bf76c11f Fix site links 2021-11-01 18:12:27 +01:00
Koen Kanters ed8ca293a3 Log stack in debug when MQTT request fails. https://github.com/Koenkk/zigbee2mqtt/issues/9367 2021-10-29 17:10:18 +02:00
Koen Kanters d137d1975b Fix value_min/max not correct for Home Assistant number when 0. https://github.com/Koenkk/zigbee-herdsman-converters/issues/3229 2021-10-27 20:52:54 +02:00
Koen Kanters bef5bff637 Revert "Add Home Assistant entity_category support (#9293)" (#9328)
This reverts commit 16c3f912b1.
2021-10-25 17:58:42 +02:00
Koen Kanters 498a5b3f32 Revert "Add support for unit of measurement to HA number entities (#9312)" (#9329)
This reverts commit b08ce534c8.
2021-10-25 17:54:18 +02:00
Franck Nijhof b08ce534c8 Add support for unit of measurement to HA number entities (#9312) 2021-10-25 17:12:01 +02:00
Dirk van Donkelaar 387378e935 Fix Home Assistant discovery for select having numbers as options (#9268)
* Updated select entities to parse values as string

To prevent 'invalid option for select' error

* Update homeassistant.ts

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
2021-10-24 15:22:09 +02:00
Franck Nijhof 16c3f912b1 Add Home Assistant entity_category support (#9293) 2021-10-24 15:11:56 +02:00