Commit Graph

74 Commits (8d2fb72cc3f820550c1cf880a24186687e844bdc)

Author SHA1 Message Date
Paulus Schoutsen 5da923c341
Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
Marvin Wichmann 072f7d5611
Add support for TCP tunneling connections to KNX (#64928) 2022-01-26 06:36:07 +01:00
Matthias Alphart 456d403303
Fix KNX onboarding when there is no yaml config defined yet (#64216) 2022-01-16 20:44:21 -08:00
epenet c7cb26cbab
Use Platform enum in load_platform [a-l] (#63750) 2022-01-10 10:30:47 +01:00
Mirko Lenz ab4effc7e2
Allow sending GroupValueResponse telegrams with knx.send service (#62639)
* Add knx.respond service

* Combine knx.send and knx.respond services

* Rename knx attribute and fix tests

* Use parametrization in tests

Co-authored-by: Marvin Wichmann <marvin.wichmann@unic.com>
2021-12-29 18:15:48 +01:00
Marvin Wichmann 66b8f87e43
Fix notify platform setup for KNX (#61842)
* Fix notify platform setup for KNX

* Apply review suggestions

* Store hass config in DATA_HASS_CONFIG

* Readd guard clause
2021-12-15 19:30:38 +01:00
Marvin Wichmann cefbc2c428
Allow setting local_ip for knx routing connections (#61836) 2021-12-15 13:15:56 +01:00
Marvin Wichmann affa3a6ada
Add missing local_ip to KNX config flow and options flow (#61018)
* Add missing local_ip to KNX config flow and options flow

* Update strings
2021-12-04 23:07:28 +01:00
Marvin Wichmann 3baa7b679d
Use new Platform enum in KNX (#60902) 2021-12-03 09:29:38 -08:00
Marvin Wichmann 1d63ae8696
Code quality improvements for KNX integration (#60024) 2021-11-20 16:15:33 +01:00
Marvin Wichmann e5c33474e3
Add config and options flow to KNX integration (#59377) 2021-11-20 11:30:41 +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
Matthias Alphart fa7b72a4ed
reload service: remove entities before disconnection (#58712) 2021-10-30 00:04:57 +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
Ville Skyttä 470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +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 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 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
Ruslan Sayfutdinov 37466ae423
Don't ignore mypy errors by default (#49270) 2021-04-26 14:23:21 +02:00
Matthias Alphart 671148b6ca
Update xknx to version 0.18.1 (#49609) 2021-04-24 14:18:14 +02:00
Matthias Alphart 985b4a581a
Create KNX switch entity directly from config (#49238) 2021-04-15 09:47:43 +02:00
Marvin Wichmann 91837f08ce
Update xknx to version 0.18.0 (#48799) 2021-04-08 14:54:43 +02:00
Matthias Alphart 051f29f9b6
Remove KNX type alias for homeassistant.core types (#48422) 2021-03-27 22:20:11 +01:00
Matthias Alphart 8fa935234a
Type check KNX integration __init__ and knx_entity (#48044) 2021-03-26 16:10:55 +01:00
plomosits 18e6816373
Improve Docker and Kubernetes support for KNX (#48065)
Co-authored-by: Matthias Alphart <farmio@alphart.net>
2021-03-22 20:03:57 +01:00
Matthias Alphart 987c2d1612
Type check KNX integration expose (#48055) 2021-03-19 10:12:55 +01:00
Marc Mueller 25a13d1554
Update typing 10 (#48071) 2021-03-18 13:07:04 +01:00
Matthias Alphart a4075d9e11
KNX sensor: float no longer valid for `type` (#48005) 2021-03-16 21:33:56 +01:00
Matthias Alphart 54a9b69ecb
Update xknx to 0.17.2 (#47732) 2021-03-10 10:32:22 -10:00
Matthias Alphart ce8871ef59
KNX remove custom deprecation warnings (#47238) 2021-03-03 00:50:40 +01:00
Matthias Alphart 3fda9fd0c6
KNX address constant (#47196) 2021-03-01 21:59:36 +01:00
Matthias Alphart dadc99dbd3
Deprecate knx config_file (#46874)
* deprecate config_file

* removed cv.deprecated for now, added persistent notification

* Update homeassistant/components/knx/__init__.py

Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>

* remove notification, add cv.deprecated again

* Update homeassistant/components/knx/__init__.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* remove cv.deprecated again

Co-authored-by: Philip Allgaier <philip.allgaier@gmx.de>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-03-01 11:55:55 +01:00
Matthias Alphart 92afcb6b4b
KNX services send and event_register accept multiple group addresses (#46908)
* send and event_register service accept lists of group addresses

* remove lambda

* object selector for lists

* knx.read takes lists too
2021-03-01 11:51:59 +01:00
Matthias Alphart a632215541
Validate KNX addresses (#46933) 2021-02-24 08:37:41 +01:00
Matthias Alphart d02b27a5d0
Update xknx to 0.17.1 (#46974) 2021-02-23 16:26:17 -08:00
Matthias Alphart b583ded8b5
Fix KNX services.yaml (#46897) 2021-02-23 22:59:16 +01:00
Matthias Alphart 1a27af43cc
Add KNX service exposure_register (#45257) 2021-02-21 19:38:17 -10:00
Matthias Alphart 194c0d2b08
knx-read-service (#46670) 2021-02-20 09:09:23 -10:00
Matthias Alphart 2cf46330b1
Enable KNX routing optional local_ip (#46133) 2021-02-20 09:08:59 -10:00
Matthias Alphart 2940df09e9
Update xknx to 0.17.0 (#46809) 2021-02-20 08:45:04 -10:00
Martin 175f2f0275
Add fan platform to knx (#46161) 2021-02-09 22:09:34 -10:00
Matthias Alphart e7ca0ff71a
Enable KNX auto_reconnect for auto-discovered connections (#46178) 2021-02-08 11:23:50 +01:00
Matthias Alphart 4aceb0dd27
Add KNX service event_register (#45248) 2021-01-22 15:27:51 +01:00
Matthias Alphart ad4804f38a
Fix knx.send service not accepting floats (#44802) 2021-01-04 04:49:29 +01:00
Matthias Alphart 2bd8ee34f4
Update xknx to 0.16.0 (#44749)
* update xknx to 0.16.0

* fix telegram in knx_event and knx.send service

* fix knx.send to not coerce floats to int

fixes #44792
also enables strings to be sent

* Revert "fix knx.send to not coerce floats to int"

This reverts commit ac40fb53f9.
2021-01-04 03:07:12 +01:00
Matthias Alphart 29091f4537
Update xknx to 0.15.6 (#43645) 2020-11-27 18:06:15 +01:00