Commit Graph

10599 Commits

Author SHA1 Message Date
J. Nick Koston
ee375ff42d Offer local control option when there are multiple zeroconf homekit matches (#62649) 2022-01-04 16:51:38 +01:00
epenet
411fcad798 Use BinarySensorDeviceClass enum in binary_sensor device automations (#62635) 2022-01-04 16:46:21 +01:00
J. Nick Koston
5c8271552a Add hardware revision support to homekit (#63336) 2022-01-04 16:19:12 +01:00
Joakim Plate
7c6297db86 Add support for philips js screen state (#62775) 2022-01-04 16:14:44 +01:00
Robert Hillis
f028079815 Remove deprecated yaml config from sma (#62472)
Co-authored-by: René Klomp <rene@klomp.ws>
2022-01-04 16:04:16 +01:00
Erwin Oldenkamp
39b26e5ff7 Add device to Wallbox integration (#63011) 2022-01-04 15:46:57 +01:00
David F. Mulcahey
6a685f0315 Add select entities to ZHA (#62718) 2022-01-04 13:40:29 +01:00
Robert Hillis
cfb47b9195 Remove deprecated yaml config from waze_travel_time (#62543) 2022-01-04 13:39:32 +01:00
Allen Porter
9c166dfff2 Bump rtsp_to_webrtc to 0.4.0 (#63359) 2022-01-04 11:31:33 +01:00
Thomas Dietrich
dc15c9ed75 Add SensorDeviceClass to statistics component, improve structures (#62629)
* Improve config checking, add device_class timestamp

* Move additional characteristics into separate branch

* Move deprecation warning for sampling_size default to other branch

* Add supports list description
2022-01-04 10:25:37 +01:00
avee87
04606f05a4 Use built-in Jinja min and max filters in templates (#60327)
* Use built-in Jinja min and max filters in templates

* use built-in filter for global

* lint

* less generic name

* more tests

* even more tests
2022-01-04 10:07:23 +01:00
Christopher Bailey
a2677983a2 Add UniFi Protect select platform (#63337) 2022-01-03 13:42:10 -10:00
rianadon
48057e1dfb Weather units: climacell (1.3/4) (#61472)
* climacell units

* Fix climacell tests
2022-01-03 15:09:47 -05:00
Paulus Schoutsen
ad8af5fc7a Allow mobile app registrations only supporting websocket push (#63208) 2022-01-03 11:02:41 -08:00
Erik Montnemery
1995a825f3 Reject MQTT light discovery using unsupported value_template (#62682)
* Reject MQTT light discovery using unsupported value_template

* Tweak
2022-01-03 17:16:26 +01:00
Jan Bouwhuis
86ed091dbf Skip raw encoding test for cover (#63322) 2022-01-03 17:08:28 +01:00
Jan Bouwhuis
dd0193052c Add MQTT encoding parameter for all subscribed topics (#62263)
* Add encoding parameter for all subscribable topics

* test setup encoding incoming payload

* remove support for device_tracker and tag+tests
2022-01-03 16:08:07 +01:00
Jan Bouwhuis
3ca18922e6 Mqtt rework on value templates (#62105)
* add MqttValueTemplate class

* support variables at initiation

* pass MqttEntity instead of hass

* Use MqttValueTemplace class for value templates

* make hass en enitity parameters conditional

* remove unused property and remove None assignment

* rename self._attr_value_template
2022-01-03 16:07:40 +01:00
Jan Bouwhuis
061ce0c187 Fix mqtt reloading and rework tests (#62950)
* Improve mqtt reloading/tests and fix issues

* Cleanup fixture for reloading test

* isort and black remove replaced test_reloadable
2022-01-03 15:14:50 +01:00
Jan Bouwhuis
0dab5e69db Fix MQTT cover not using tilt_command_template (#63080) 2022-01-03 15:13:30 +01:00
Jan Bouwhuis
457ce195dd Add mqtt entity attributes command templates (#61937)
* Add entity variables to MqttCommandTemplate

* missing command template update

* make hass and entity conditional parameters

* Add encoding support for publishing

* Revert "Add encoding support for publishing"

This reverts commit b69b9c60ececdab1d35621bdd7ffe5b8b9d59c44.
2022-01-03 15:10:15 +01:00
Aidan Timson
d85d93d1a1 Downgrade OctoPrint printer disconnected errors (#63076)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-03 13:53:25 +01:00
Joakim Sørensen
56bda80e0a Address late review comments for version integration (#63283)
* Address late review comments for version integration

* 2 leftover persistent_notification setup
2022-01-03 13:30:40 +01:00
Gabriel Rauter
d26275011a Add unique_id configuration variable to command_line integration (#58596) 2022-01-03 11:44:47 +01:00
Erik Montnemery
e9b746e874 Add turned on or off device trigger to toggle entity (#61089)
* Add turned on or off device trigger to toggle entity

* Renamed changed_states trigger to toggled

* Adjust tests

* Fix homekit triggers test

* Add tests

* Adjust tests after rebase

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-03 10:41:30 +01:00
Erik Montnemery
8f99cb51b5 Improve test coverage of template button (#63265) 2022-01-03 10:39:24 +01:00
Raman Gupta
6f8cd54ca1 Add button platform to template integration (#61908)
* Add button platform to template integration

* review comments

* add unique ID check
2022-01-03 10:03:37 +01:00
Jan Bouwhuis
d0c4f0fec4 Add mqtt encoding support for publishing (#62739)
* encoding support for mqtt publishing - todo tests

* signature allows None values for qos and retain

* common test for mqtt publishing encoding

* better test with command templates

* more tests

* fix tests alarm control panel+tests light basic

* tests light json and template

* add tests vacuum and fix tests light_template
2022-01-03 09:03:47 +01:00
Chris Talkington
f4857ffe33 Add binary_sensor platform to roku (#63238) 2022-01-02 18:44:31 -06:00
Chris Talkington
c693b6f455 Add hardware version to Roku device info (#63249)
* add hardware version to Roku device info.

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py
2022-01-02 18:35:09 -06:00
Dave T
89895c6c04 Improve tests for generic camera (#63197)
* Improve tests for generic camera

* Fix black error

* Code review: Move common code to fixtures

* Remove unnecessary patches from tests.

* Address review comments

* Code review: swap more patches for respx

* Code review: use _attr for frame interval.
2022-01-02 13:26:44 -08:00
Allen Porter
9e3f7d2961 Simplify nest reauth config flow (#63058) 2022-01-02 21:43:50 +01:00
J. Nick Koston
7de4801bfa Add support for oncue connectivity binary sensor (#63232) 2022-01-02 21:36:14 +01:00
Christopher Bailey
d364186571 Add UniFi Protect number platform (#63220) 2022-01-02 09:47:25 -10:00
J. Nick Koston
724f5dbf1a Add Oncue by Kohler integration (#63203) 2022-01-02 09:15:39 -10:00
Allen Porter
15baea4ba3 Use more narrow exception catching in nest (#63225) 2022-01-02 18:54:56 +01:00
epenet
24e27290b5 Drop deprecated CONF_NAMES from onewire (#61094)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:10:19 +01:00
Allen Porter
ebc8e19788 Revert nest reloading due to lock up (#63206) 2022-01-02 17:08:38 +01:00
Christopher Bailey
e5b7eac411 Add UniFi Protect switch platform (#63177) 2022-01-01 11:23:10 -10:00
Dave T
817f0c9aae Refactor enum zwave js tests (#62712)
* Use new enums in zwave_js tests

* Convert == to is

* Refactor some ATTR_ * as well.

* Address review comments
2022-01-01 21:50:48 +01:00
Allen Porter
c7b991f56b Add rtsptowebrtc integration (#59660)
* Add initial version of the webrtc integration

Add the webrtc integration. This integration proxies the
signal 'offer' from the client to a RTSPtoWebRTCP server that
returns an 'answer'.

The RTSPtoWebRTC server is a go binary based on pion, and this is
what is currently used by the WebRTC custom_component:
https://github.com/AlexxIT/WebRTC
https://github.com/deepch/RTSPtoWebRTC

* Readability improvements for webrtc

* Reach 100% test coverage

* Use rtsp-to-webrtc client library package

* Rename webrtc to rtstptowebrtc

This is to reflect naming as one type of approach to webrtc since other webrtc integrations would look very different.

* Remove internal quality scale

* Bump rtsptowebrtc to support heartbeats

* Shorten server url variable and remove const.py

* Add config flow validation for RTSPtoWebRTC server

* Add RTSPtoWebRTC server health checks

* Accept translation suggestion

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update rtsptowebrtc to use new camera registry API

Update rtsptowebrtc to use new API added in #62962

* Remove unused variable

* Fix lint and typing errors for python 3.8

* Rename to rtsp_to_webrtc to follow standards

* Use async_on_unload for unsubscribing camera webrtc provider

* Remove unnecessary translations in config flow

* Remove unnecessary configuration setup

* Cleanup test setup and typing

* Patch integration setup to avoid starting the whole integration

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-01 12:36:31 -08:00
Daniel Hjelseth Høyer
8e5c8c516d Adax, unique id and title should be string (#63132) 2021-12-31 12:22:47 -10:00
Christopher Bailey
b379acc119 Clean up patching of setup platforms for UniFi Protect integration (#63156) 2021-12-31 12:20:23 -10:00
Allen Porter
0dee4f85f0 Implement an rtsp to webrtc registry in camera (#62962)
* Implement a webrtc to rtsp support in camera as a registry

Allow integrations to register a provider that can convert an RTSP stream and WebRTC offer to a WebRTC answer. This is
planned to be used by the RTSPtoWebRTC server integration as an initial pass, but could
support other server implementations as well (or even native implementationf or that matter).

* Fix test bug to improve test covergae and restructure statements

* Add missing call to refresh webrtc providers

* Run provider refresh in parallel since it may send RPCs

* Replace for loop with any

* Fix pylint warning to use a generator
2021-12-31 13:44:33 -08:00
Christopher Bailey
0de3a299d6 Add UniFi Protect light platform (#63137) 2021-12-31 11:21:29 -10:00
Maikel Punie
d7f0ad29df Add velbus USB dicovery (#62596) 2021-12-31 09:44:35 -10:00
Shay Levy
c65a50bd2e Fix Shelly error fetching device triggers for sleeping devices (#63103) 2021-12-31 18:47:03 +01:00
Franck Nijhof
78442d82d1 Add color mode support to switch light (#63124) 2021-12-31 11:43:59 +01:00
Marcel van der Veldt
055fb99938 Hue allow per-device availability override (#63025)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-12-30 20:46:52 -08:00
Franck Nijhof
b5300fb32e Add configuration flow to Whois (#63069)
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2021-12-30 22:42:46 +01:00