Commit graph

66 commits

Author SHA1 Message Date
Marvin Wichmann
3baa7b679d
Use new Platform enum in KNX () 2021-12-03 09:29:38 -08:00
Marvin Wichmann
1d63ae8696
Code quality improvements for KNX integration () 2021-11-20 16:15:33 +01:00
Marvin Wichmann
e5c33474e3
Add config and options flow to KNX integration () 2021-11-20 11:30:41 +01:00
Matthias Alphart
4e1958c1bd
Add Button platform to KNX integration ()
* 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 ()
* 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 () 2021-10-30 00:04:57 +02:00
Marvin Wichmann
48d4cdf882
Update xknx to 0.18.11 and fix flaky test ()
* 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 ()
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 () 2021-07-19 10:46:09 +02:00
Matthias Alphart
5687ced7b3
Cleanup KNX integration ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-26 14:30:36 +02:00
Matthias Alphart
74db49fae4
Add KNX select entity ()
* 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 ()
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 ()
* 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 ()
* 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 () 2021-04-26 14:23:21 +02:00
Matthias Alphart
671148b6ca
Update xknx to version 0.18.1 () 2021-04-24 14:18:14 +02:00
Matthias Alphart
985b4a581a
Create KNX switch entity directly from config () 2021-04-15 09:47:43 +02:00
Marvin Wichmann
91837f08ce
Update xknx to version 0.18.0 () 2021-04-08 14:54:43 +02:00
Matthias Alphart
051f29f9b6
Remove KNX type alias for homeassistant.core types () 2021-03-27 22:20:11 +01:00
Matthias Alphart
8fa935234a
Type check KNX integration __init__ and knx_entity () 2021-03-26 16:10:55 +01:00
plomosits
18e6816373
Improve Docker and Kubernetes support for KNX ()
Co-authored-by: Matthias Alphart <farmio@alphart.net>
2021-03-22 20:03:57 +01:00
Matthias Alphart
987c2d1612
Type check KNX integration expose () 2021-03-19 10:12:55 +01:00
Marc Mueller
25a13d1554
Update typing 10 () 2021-03-18 13:07:04 +01:00
Matthias Alphart
a4075d9e11
KNX sensor: float no longer valid for type () 2021-03-16 21:33:56 +01:00
Matthias Alphart
54a9b69ecb
Update xknx to 0.17.2 () 2021-03-10 10:32:22 -10:00
Matthias Alphart
ce8871ef59
KNX remove custom deprecation warnings () 2021-03-03 00:50:40 +01:00
Matthias Alphart
3fda9fd0c6
KNX address constant () 2021-03-01 21:59:36 +01:00
Matthias Alphart
dadc99dbd3
Deprecate knx config_file ()
* 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 ()
* 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 () 2021-02-24 08:37:41 +01:00
Matthias Alphart
d02b27a5d0
Update xknx to 0.17.1 () 2021-02-23 16:26:17 -08:00
Matthias Alphart
b583ded8b5
Fix KNX services.yaml () 2021-02-23 22:59:16 +01:00
Matthias Alphart
1a27af43cc
Add KNX service exposure_register () 2021-02-21 19:38:17 -10:00
Matthias Alphart
194c0d2b08
knx-read-service () 2021-02-20 09:09:23 -10:00
Matthias Alphart
2cf46330b1
Enable KNX routing optional local_ip () 2021-02-20 09:08:59 -10:00
Matthias Alphart
2940df09e9
Update xknx to 0.17.0 () 2021-02-20 08:45:04 -10:00
Martin
175f2f0275
Add fan platform to knx () 2021-02-09 22:09:34 -10:00
Matthias Alphart
e7ca0ff71a
Enable KNX auto_reconnect for auto-discovered connections () 2021-02-08 11:23:50 +01:00
Matthias Alphart
4aceb0dd27
Add KNX service event_register () 2021-01-22 15:27:51 +01:00
Matthias Alphart
ad4804f38a
Fix knx.send service not accepting floats () 2021-01-04 04:49:29 +01:00
Matthias Alphart
2bd8ee34f4
Update xknx to 0.16.0 ()
* 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 
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 () 2020-11-27 18:06:15 +01:00
Philip Allgaier
bbd7402793
Add reload support to KNX ()
* Add reload support to KNX

* Changes from review (platform reset + asyncio.gather)

* Changes from review (proper asyncio.gather usage)
2020-11-12 14:34:08 +01:00
Marvin Wichmann
f5429dc175
Update xknx to 0.15.0 ()
* Update xknx to 0.15.0

closes 

* Review: Remove log_directory for now

* Review: typo fix
2020-09-30 10:04:56 +02:00
Marvin Wichmann
3d6434be75
Use centralized KnxEntity for all KNX platforms () 2020-09-21 18:08:35 +02:00
Marvin Wichmann
45288431f9
Update xknx to 0.14.2 ()
* Updates xknx to 0.14.0

* Review: Explicity add state attributes to weather device

* Review: Remove state attributes from weather device

* Review: Add `counter` as a state attribute to binary_sensors
2020-09-20 23:40:36 +02:00
Marvin Wichmann
8ea8969d80
Warn users if KNX has no devices configured ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-11 13:09:31 +02:00
Marvin Wichmann
bba8b8e759
Add support for a dedicated weather station within KNX ()
* Adds support for a dedicated weather station within KNX

* Review

* Change config values to comply with the naming of the other platforms
2020-08-31 11:38:52 +02:00
Marvin Wichmann
9f4d4862b4
Update xknx to 0.13.0 () 2020-08-30 20:13:47 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00