Matthias Alphart
2fca5a4b55
Update xknx to 0.18.13 ( #59658 )
2021-11-14 00:05:32 +01:00
Matthias Alphart
00b1c2bb70
Fix KNX climate entities hvac action without controller_mode ( #59522 )
...
* fix hvac action for climate entities without controller_mode
* Update homeassistant/components/knx/climate.py
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-11-11 19:39:57 +01:00
Matthias Alphart
4e1958c1bd
Add Button platform to KNX integration ( #59082 )
...
* add button platform
* default values for payload and payload_length
* allow `type` configuration for encoded payloads
* add test for type configuration
* move common constants to const.py
- CONF_PAYLOAD
- CONF_PAYLOAD_LENGTH
* validate payload for payload_length or type
* c&p errors
* fix unique_id and pylint
* fix validator
2021-11-10 20:34:35 +01:00
Matthias Alphart
fc7d4ed118
Add decoded telegram payload to knx_event service ( #57621 )
...
* decode knx_event telegram payload with given dpt
* exception handling for invalid payloads
* Update homeassistant/components/knx/__init__.py
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de>
2021-11-06 19:31:25 +01:00
Marvin Wichmann
108962b134
Update xknx to 0.18.12 ( #58891 )
2021-11-01 15:36:30 +01:00
Marc Mueller
e0c0d00833
Use assignment expressions 39 ( #58829 )
2021-10-31 18:56:25 +01:00
Matthias Alphart
968e582468
Remove `last_knx_update` extra_state_attribute from KNX BinarySensor and Sensor ( #58786 )
2021-10-31 12:58:17 +01:00
Matthias Alphart
fa7b72a4ed
reload service: remove entities before disconnection ( #58712 )
2021-10-30 00:04:57 +02:00
Matthias Alphart
d0cc2a530a
Remove redundant value test in KNX Number entity ( #58455 )
...
* remove redundant test for out of bound value
* increase test coverage for number
2021-10-26 10:42:42 +02:00
Marvin Wichmann
e9ca511327
Add support for entity category for necessary KNX platforms ( #58357 )
2021-10-24 20:12:26 -07:00
Marvin Wichmann
85ecb7ce3a
feat: Add unit of measurement to KNX number platform ( #58353 )
2021-10-24 13:16:19 -07:00
Matthias Alphart
45a98aee10
Configurable mode for KNX number entity ( #58268 )
2021-10-24 11:24:05 +02:00
Marvin Wichmann
5193e3115d
Restore the previous state of a KNX binary sensor ( #57891 )
2021-10-22 20:52:41 +02:00
Marc Mueller
184e0d7fdf
Use assignment expressions 26 ( #58187 )
2021-10-22 11:31:17 +02:00
Marvin Wichmann
48d4cdf882
Update xknx to 0.18.11 and fix flaky test ( #57877 )
...
* Update xknx to 0.18.11
* review: join the queue before actually asserting
2021-10-17 09:43:18 +02:00
Marvin Wichmann
addb91d49e
Update xknx to version 0.18.10 ( #57635 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-10-14 10:54:48 -07:00
Marc Mueller
364767ff22
Import Callable from collections.abc (4) ( #56778 )
2021-09-29 16:15:36 +02:00
Matthias Alphart
cd0ae66d58
Add CONF_STATE_CLASS to `sensor/__init__.py` ( #54106 )
...
* add CONF_STATE_CLASS to const.py
* move to `sensor/__init__.py`
* move to sensor/const.py
* Revert "move to sensor/const.py"
This reverts commit 604d0d066b
.
* move it to `sensor/const.py` but import it from `sensor/__init__.py`
* add Modbus
2021-08-27 05:54:50 +02:00
Matthias Alphart
17a7f7adeb
Configurable default `hvac_mode` for KNX climate ( #54289 )
2021-08-24 12:53:11 +02:00
Erik Montnemery
2720ba2753
Move temperature conversions to sensor base class (4/8) ( #54472 )
...
* Move temperature conversions to entity base class (4/8)
* Fix litterrobot sensor
* Fix tests
2021-08-11 21:17:47 +02:00
Matthias Alphart
98877924d3
Add `state_class` for KNX sensors ( #53996 )
2021-08-05 10:11:01 -07:00
Matthias Alphart
4d6c95a126
Don't double-validate KNX select options ( #54020 )
2021-08-05 08:16:33 +02:00
Matthias Alphart
27d42e0cd8
KNX: Support for HS-color lights ( #53538 )
2021-07-27 19:36:46 +02:00
Matthias Alphart
c1c6c54b45
xknx 0.18.9 ( #53519 )
2021-07-26 23:18:20 +02:00
Matthias Alphart
e8d7952880
Refactor KNX tests ( #53183 )
...
* refactor tests for KNX
- implement KNXTestKit class for convenient setup and assertion of KNX telegrams
- add fixture returning an instance of KNXTestKit with automatic cleanup test
* add tests for expose default attribute
- fix expose edge case not covered by #53046
* use asyncio.Queue instead of AsyncMock.call_args_list
for better readability
* get xknx from Mock instead of hass.data
* fix type annotations
* add injection methods for incoming telegrams
* rest read-response in expose
2021-07-19 23:39:19 -05:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
da-anda
6fe38eadf2
Fix knx expose feature not correctly falling back to default value ( #53046 )
2021-07-15 14:41:04 +02:00
Daniel Hjelseth Høyer
fbad453c89
Pylint 2.9.3 ( #52972 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Tom Matheussen
293690e3d8
Fix KNX Fan features ( #52732 )
...
* Fan entity should return support features
* Revert "Fan entity should return support features"
This reverts commit 3ad0e87708
.
* Restore supported_features for KNX fan
2021-07-08 15:05:43 +02:00
Matthias Alphart
9ed93de472
xknx 0.18.8 ( #52340 )
2021-06-30 15:06:33 +02:00
Matthias Alphart
d4211c4a66
Cleanup KNX supported_features for climate, cover and fan ( #52218 )
2021-06-28 20:22:44 +02:00
Matthias Alphart
253310aaa4
Add respond_to_read option to KNX switch ( #51790 )
2021-06-27 18:34:41 +02:00
Matthias Alphart
89cdda9fe6
Add idle hvac_action to KNX climate ( #52006 )
...
* add idle hvac_action and command_value extra_state_attribute
* use class attribute for unit
2021-06-27 18:31:07 +02:00
Matthias Alphart
5687ced7b3
Cleanup KNX integration ( #52168 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-26 14:30:36 +02:00
Matthias Alphart
74db49fae4
Add KNX select entity ( #52026 )
...
* select entity for knx
* validate select options
* lint
* phytonify
* Tweak
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-24 10:54:04 +02:00
Matthias Alphart
742159a6a6
Add number entity to KNX ( #51786 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-23 17:20:49 +02:00
Matthias Alphart
1d941284ff
Fix not awaiting async super method in KNX climate ( #52005 )
2021-06-19 01:10:17 -05:00
Matthias Alphart
c246e211eb
Update xknx to 0.18.7 ( #52000 )
2021-06-18 22:22:27 -05:00
Matthias Alphart
b08f473da4
Add current hvac_action to KNX climate ( #51464 )
2021-06-15 17:51:16 +02:00
Matthias Alphart
c0d311473c
Restore state of KNX Switch ( #51761 )
2021-06-15 13:08:19 +02:00
Matthias Alphart
4afe7de07f
xknx 0.18.6 ( #51758 )
2021-06-12 11:19:05 +02:00
Matthias Alphart
6e20edc30c
Update xknx to version 0.18.5 ( #51644 )
...
* xknx 0.18.5
* fix integer DPTs trying to cast str state with `int()`
* Delint
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-09 14:08:29 +02:00
Matthias Alphart
e5c70c8789
Update xknx to version 0.18.4 ( #51459 )
2021-06-04 08:34:16 +02:00
Matthias Alphart
549b0b0727
KNX: Support for XY-color lights ( #51306 )
...
* support for xy-color
* replace invalid name
2021-06-01 08:59:51 +02:00
Matthias Alphart
164e45f0a7
KNX: move some Schema to schema.py ( #51307 )
...
* create platform schema node from schema class
* move connection schema to schema.py
* rename SCHEMA to ENTITY_SCHEMA
* Final module level constants
2021-06-01 08:59:23 +02:00
Matthias Alphart
5acc3a1083
xknx 0.18.3 ( #51277 )
2021-05-31 09:58:48 +02:00
Matthias Alphart
4f9b7254d2
Initialize KNX expose value ( #49623 )
...
* simplify value extraction
* allow 0/1 and "True" / "False" for binary exposes
* initialize ExposeSensor value
* handle binary states
* use default for initialization
2021-05-26 11:21:11 +02:00
Matthias Alphart
8b21a652ba
Create KNX sensor entity directly from config ( #49642 )
...
* create sensor entities directly from config
* move staticmethod to module level
* remove factory call
2021-05-25 20:16:54 +02:00
tkdrob
028a07d86f
Wrap up selectors ( #50794 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Matthias Alphart
331cb3b74d
Fix KNX light: turn on color light with only brightness ( #50979 )
...
* fix turn on color light with only brightness
* fix comment
* fix individual_color address assignment
* python 3.8 compatibility
2021-05-24 09:51:33 +02:00