Commit Graph

34191 Commits (41a032e3e35001a01fc610d72c611ae9b877912a)

Author SHA1 Message Date
Franck Nijhof f7cb10e2f5
Update twentemilieu to 0.6.0 (#68171) 2022-03-15 12:05:15 +01:00
Numa Perez fa1394ff47
Fix lyric climate (#67018)
* Fixed the issues related to auto mode

I was having the same issues as described in #63403, specifically, the error stating that Mode 7 is not valid, only Heat, Cool, Off when trying to do anything while the thermostat is set to Auto. This error originates with the way the Lyric API handles the modes. Basically, when one queries the changeableValues dict, you get a mode=Auto, as well as a heatCoolMode, which is set to either Heat, Cool, Off. Per the documentation, heatCoolMode contains the "heat cool mode when system switch is in Auto mode". It would make sense that when changing the thermostat settings, mode=Auto should be valid, but it's not. The way the API understands that the mode should be set to Auto when changing the thermostat settings is by setting the autoChangeoverActive variable to true, not the mode itself. This require changes in the async_set_hvac_mode, async_set_temperature, and async_set_preset_mode functions. Related to this issue, I got rid of the references to hasDualSetpointStatus, as it seems that it always remains false in the API, even when the mode is set to auto, so again, the key variable for this is autoChangeoverActive.

While I was working on this I also noticed another issue. The support flag SUPPORT_TARGET_TEMPERATURE_RANGE had not been included, which did not allow for the temperature range to be available, thus invalidating the target_temperature_low and target_temperature_high functions. I added this flag and sorted out which set point (heat vs cool) should be called for each of them so things work as expected in Lovelace. I have tested all of these functionalities and they all work great on my end, so I thought I'd share.

* Update climate.py

* Update climate.py

Fixed two additional issues: 1) When the system is turned off from Auto, the heatCoolMode variable becomes 'Off', so when you try to restart the system back to Auto, nothing happens. 2) I now prevent the async_set_temperature function from being called with a new set point when the system is Off.
All changes tested and functional.

* Update climate.py

* Update climate.py

Return SUPPORT_PRESET_MODE flag only for LCC models (i.e. they have the "thermostatSetpointStatus" variable defined). TCC models do not support this feature

* Update climate.py

After playing with the official Honeywell API, I realized it doesn't like to received commands with missing data, i.e., it always wants to get a mode, coolSetpoint, heatSetpoint, and autoChangeoverActive variables. This was causing some random issues with changing modes, especially from coming from off, so I modified the async_set_temperature, and async_set_hvac_mode fuctions to always send all pertinent variables.

* Update climate.py

* Update climate.py

* Update climate.py

* Update climate.py

* Clean code and test everything

Alright, sorry for the multiple commits, fixing this properly took a fair bit of testing. I went ahead and cleaned up the code and made the following big picture changes: 
1) The integration now supports the Auto mode appropriately, to include the temperature range. 
2) There's a bug that actually manifests when using the native app. When the system is 'Off' and you try to turn it on to 'Auto', it will turn on briefly but will go back to 'Off' after a few seconds. When checking the web api, this appears to be related to the fact that the heatCoolMode variable seems to continue to store 'Off', even if the mode accurately displays 'Auto', and the autoChangeoverActive=True. So to overcome that inherent limitation, when the system is 'Off' and the user turns it to 'Auto', I first turn it to Heat, wait 3 seconds, and then turn it to 'Auto', which seems to work well.

* Update climate.py

* Fixed errors

* Fixed comments that were resulting in error.

* Update climate.py

* Update homeassistant/components/lyric/climate.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/lyric/climate.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update climate.py

I removed a blank line in 268 and another one at the end of the document. I also fixed the outdents of await commands after the _LOGGER.error calls, not sure what else may be driving the flake8 and black errors. Any guidance is much appreciated @MartinHjelmare

* Update climate.py

* Update climate.py

corrected some indents that I think were the culprit of the flake8 errors

* Update climate.py

I used VS Code to fix locate the flake8 errors. I ran black on it, so I'm hoping that will fix the last lingering black error.

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-15 10:59:18 +01:00
Robert Svensson 283f4555a4
Fix deconz typing (#68143) 2022-03-15 10:51:26 +01:00
Marc Mueller 376ac1bd83
Don't import TypeVars from core modules (#68154) 2022-03-15 09:30:55 +01:00
Marc Mueller 7ab9e5cf0f
Improve sonos error decorator typing (#67199) 2022-03-15 09:24:52 +01:00
Tom 66f506557f
Prevent adding plugwise products used as secondary controllers (#68098)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-15 08:53:53 +01:00
Per Öberg 7615f138d9
Clean up code for onewire config flow (#67970)
* Change debug level of integration reload after config update to debug

* Remove extra .keys() call for dict itreation

* Remove unecessary type check

* Remove unused LOGGER reference
2022-03-15 08:26:54 +01:00
Marc Mueller ef71ab04ad
Remove unused TypeVars (#68155) 2022-03-15 08:24:13 +01:00
epenet 125ab5eb2b
Handle ConnectionClosed in SamsungTV try_connect (#68125)
* Handle ConnectionClosed in SamsungTV try_connect

* Add tests

* Add quotes around the error message

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-15 08:20:24 +01:00
Allen Porter 7876ffe9e3
Update google calendar integration with a config flow (#68010)
* Convert google calendar to config flow and async

* Call correct exchange method

* Fix async method and reduce unnecessary diffs

* Wording improvements

* Reduce unnecessary diffs

* Run load/update config from executor

* Update homeassistant/components/google/calendar.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove unnecessary updating of unexpected multiple config entries.

* Remove unnecessary unique_id checks

* Improve readability with comments about device code expiration

* Update homeassistant/components/google/calendar.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/google/calendar.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/google/api.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Add comment for when code is none on timeout

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-15 07:51:02 +01:00
Benjamin 4988c4683c
Bump volkszahler to 0.3.2 (#67958)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-15 00:33:08 +01:00
J. Nick Koston 9d6e1ab0e5
Ensure flux_led is reloaded when the title changes (#68146) 2022-03-14 22:55:52 +01:00
J. Nick Koston 59c4c75915
Ensure WiZ is reloaded on title change (#68147) 2022-03-14 22:52:27 +01:00
Paulus Schoutsen a9fd744247
Add media source support to unifiprotect (#67570) 2022-03-14 10:16:22 -10:00
Erik Montnemery 7fc0ffd5c5
Restore state of trigger based template binary sensor (#67538) 2022-03-14 12:28:55 -07:00
Paulus Schoutsen a109889f13
Add media source support to openhome (#67566) 2022-03-14 12:14:21 -07:00
Erik Montnemery 314175135f
Hide switch_as_x tracked entity (#67949)
* Hide switch_as_x tracked entity

* Hide wrapped switch during config flow

* Allow setting/getting entity disabled by via WS

* Adjust tests

* Improve test coverage

* Improve tests
2022-03-14 19:39:07 +01:00
J. Nick Koston 8a8d7741d5
Fix Magic Home devices with multiple network interfaces (#68029) 2022-03-14 19:38:54 +01:00
Gido 0e602dd390
Bump Rova to 0.3.0 (#67688) 2022-03-14 19:37:34 +01:00
Robert Svensson bff91b170f
Complete typing of some platforms of deCONZ integration (#67494) 2022-03-14 19:34:05 +01:00
Shay Levy 2a538f6ae1
Downgrade SSDP failed to setup listener warning to debug (#68129) 2022-03-14 19:14:45 +01:00
Franck Nijhof ed6466f706
Add Lock platform to Switch as X (#68123)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-14 10:45:45 -07:00
Robert Svensson 4506d45345
Add typing of deconz_event (#67497) 2022-03-14 17:40:58 +01:00
Robert Svensson 362191a0e6
Add typing of deCONZ device_trigger (#67496) 2022-03-14 17:37:48 +01:00
Sean Vig 38306417ad
Bump amcrest version to 1.9.7 (#68055) 2022-03-14 17:36:16 +01:00
Franck Nijhof 57c33a5cf0
Remove deprecated OpenZWave integration (#68054) 2022-03-14 17:33:04 +01:00
Franck Nijhof 344537d0a8
Add Fan platform to Switch as X (#68122) 2022-03-14 15:07:21 +01:00
Franck Nijhof ed6c86a281
Add siren platform to Switch as X (#68118)
* Add siren platform to Switch as X

* Clarify inline test documentation

* Clarify inline test documentation
2022-03-14 13:55:06 +01:00
Jan Bouwhuis c8fb86a8ed
Fix MQTT false positive deprecation warnings (#68117) 2022-03-14 12:39:44 +01:00
Franck Nijhof c70c699af0
Add cover platform to Switch as X (#68107) 2022-03-14 11:59:55 +01:00
Franck Nijhof 6aacaa744e
Only create WLED current sensors when available (#68116) 2022-03-14 11:49:16 +01:00
Jeef cea21a00b3
Add intellifire UDP discovery at configuration start (#67002)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-13 20:58:55 -10:00
G Johansson 8e76948297
Add binary_sensor platform for Sensibo (#68088) 2022-03-13 20:58:34 -10:00
J. Nick Koston b18096fc54
Remove unused columns from states/events tables (#68078) 2022-03-13 23:44:55 -07:00
G Johansson a6c189b450
Add Pure devices to Sensibo (#67695) 2022-03-13 14:30:37 -10:00
GitHub Action 65821f9492 [ci skip] Translation update 2022-03-14 00:21:06 +00:00
Dmitry Kosenkov 0b1663b150
Update slixmpp to 1.8.0.1 (#68080)
fix for python 3.10
2022-03-13 19:40:09 +01:00
Tom b138a759b6
Update plugwise module to 0.16.8 (#68082) 2022-03-13 19:37:59 +01:00
Franck Nijhof 25f2e4bd99
Small improvements for Switch as X (#68079)
* Small improvements forr Switch as X

* Test improvements

* Remove intregration tests from config flow test
2022-03-13 19:34:02 +01:00
Mike Fugate 4ea921e57a
Clean up SleepIQ migration (#68092) 2022-03-13 17:27:45 +01:00
J. Nick Koston bfb8765752
Bump pyisy to 3.0.5 (#68069)
* Bump pyisy to 3.0.4

- Fixes #66003

- Changelog: https://github.com/automicus/PyISY/compare/v3.0.1...v3.0.4

* again
2022-03-13 16:33:55 +02:00
Frank 334fa33fab
Update home_connect to 0.7.0 (#68089) 2022-03-13 16:31:57 +02:00
Franck Nijhof 693e9caa32
Update wled to 0.13.1 (#68084) 2022-03-13 14:03:52 +02:00
Franck Nijhof f5e43d99e4
Update google-cloud-texttospeech to 2.11.0 (#68076) 2022-03-12 22:54:41 -10:00
Franck Nijhof 89cf914d3f
Update sentry-sdk to 1.5.7 (#68077) 2022-03-12 22:54:23 -10:00
Franck Nijhof 36acb09cae
Update sqlalchemy to 1.4.32 (#68075) 2022-03-12 22:52:47 -10:00
Franck Nijhof cd3f931ded
Add base entity to Switch as X (#68057) 2022-03-13 00:04:00 -08:00
Christopher Thornton 4ea0f7d321
Default somfy_mylink shade's _attr_is_closed to `None` (#68053)
The base `Cover` entity requires an explicit value for
`_attr_is_closed`.

Since the `SomfyShade` is an assumed state, we don't know
by default whether the shade is open or not, so we need to
explicitly return `None` for `_attr_is_closed`
2022-03-13 08:46:35 +01:00
Allen Porter d4d47faabb
Update google-cloud-pubsub to 2.11.0 (#68074) 2022-03-13 08:04:08 +01:00
Brandon Rothweiler 0bd65db31c
Add switch platform to the Mazda integration (#68025) 2022-03-12 16:32:35 -10:00
GitHub Action c64b4d997b [ci skip] Translation update 2022-03-13 00:18:58 +00:00
Steve Easley a2ce395fc6
Add remote platform to Kaleidescape integration (#67959) 2022-03-12 14:10:45 -10:00
Paulus Schoutsen a911139c08
Bump frontend to 20220312.0 (#68061) 2022-03-12 15:05:31 -08:00
Mike Fugate e59bf4f3af
Migrate SleepIQ unique IDs that are using sleeper name instead of sleeper ID (#68062) 2022-03-12 12:54:26 -10:00
Paulus Schoutsen a902f0ee53
Fix switch light adding itself to devices (#68060) 2022-03-12 13:53:40 -08:00
J. Nick Koston ea6da674df
Remove unneeded permissions check from subscribe entities (#68044) 2022-03-12 13:30:27 -08:00
G Johansson 03a155af83
Add sensors to Sensibo for motion sensor (#67748) 2022-03-12 10:45:24 -10:00
Shay Levy eccf8c76fd
Fix Shelly EM/3EM invalid energy value after reboot (#68052) 2022-03-12 22:21:45 +02:00
Mike Fugate 6831be67f4
Add number entities to control SleepIQ actuator positions (#67770) 2022-03-12 09:58:03 -10:00
J. Nick Koston 8e3454e46a
Remove legacy compatiblity for camera platforms that do not support width/height (#68039)
- async_camera_image or camera_image must accept the width and
  height arguments
2022-03-12 20:47:14 +02:00
Sean Vig 6124081ddc
Fix turning amcrest camera on and off (#68050) 2022-03-12 20:42:28 +02:00
Jesse Hills de31e576b7
Bump python-juicenet to 1.1.0 (#67992) 2022-03-12 19:52:41 +02:00
Shay Levy 083d51a727
Cleanup - move Shelly logger to const (#68046) 2022-03-12 14:43:57 +02:00
jan iversen 1a79118600
Fix modbus reload service (#68040)
* Fix modbus reload service.

* Please coverage.

* Resolve difference between local pytest and github.
2022-03-12 14:12:38 +02:00
J. Nick Koston a851921fe6
Filter IPv6 addresses from doorbird discovery (#68031) 2022-03-12 02:09:02 -10:00
J. Nick Koston 68310a426b
Small code quality improvements for subscribe_entities (#68026) 2022-03-12 02:07:01 -10:00
Franck Nijhof 0070e27c04
Remove deprecated PCAL9535A I/O Expander integration (#67274) 2022-03-12 04:05:22 -08:00
Franck Nijhof 2bb5573ddc
Remove deprecated PiFace Digital I/O (PFIO) integration (#67282) 2022-03-12 04:04:46 -08:00
Davor Val Vega d41eeaa88b
Add Home Connect pre-rinse capability for a dishwasher (#63536) 2022-03-12 12:38:43 +01:00
Franck Nijhof 0467dc55fe
Add config flow to Uptime (#67408) 2022-03-12 12:36:08 +01:00
epenet 23b8229143
Adjust ms.remote.control error logging in SamsungTV (#67988)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-12 01:20:04 -10:00
J. Nick Koston 0d8f649bd6
Websocket api to subscribe to entities (payloads reduced by ~80%+ vs state_changed events) (#67891) 2022-03-11 20:54:49 -08:00
Robert Svensson 6526b4eae5
Add typing to deconz_device (#67501) 2022-03-11 20:35:25 -08:00
Hmmbob c8351387d7
Print client error in rest_command (#67900) 2022-03-11 20:34:06 -08:00
Joakim Sørensen c5800d6103
Split out sync functions in backup manager (#67428) 2022-03-11 20:32:05 -08:00
J. Nick Koston d3deae6288
Fix typing on Context.user_id (#68019) 2022-03-11 20:31:03 -08:00
Robert Hillis 09944d936d
Clean up Efergy (#67755)
* Clean up Efergy

* tweak
2022-03-11 20:29:18 -08:00
Joakim Plate 09a85d2a5d
Add basic rfxtrx diagnostics (#67671)
* Add basic rfxtrx diagnostics

* Skip diagnostics for coverage
2022-03-11 20:27:08 -08:00
starkillerOG 03ec77fb62
Motion blinds support direct wifi blinds (#67372)
* bump motionblinds to 0.6.0

* fix unknown type

* fix name for wifi direct blinds

* push motionblinds to 0.6.1

* fix RSSI sensor

* Do not add singnal sensor twice for direct WiFi blinds

* fix device registry

* fix typo

* missing import

* fix styling

* fix spelling
2022-03-11 20:13:46 -08:00
Brandon Rothweiler 5d2a65bb21
Add binary sensors to Mazda integration (#64604) 2022-03-11 16:32:47 -10:00
G Johansson c4b3e2b9cd
Add select entity to Sensibo (#67741) 2022-03-11 16:23:24 -10:00
GitHub Action dc31f420ed [ci skip] Translation update 2022-03-12 00:17:47 +00:00
jjlawren 80ff497cfc
Rework available Sonos sources (#67931) 2022-03-11 15:57:57 -08:00
Marc Mueller 41df798375
Bump mypy to 0.940 (#68007) 2022-03-11 15:57:38 -08:00
Diogo Gomes 380f04277e
Bump pymediaroom (#68016) 2022-03-11 15:45:29 -08:00
jan iversen d2e5c85429
Remove pragma from discover check. (#68002) 2022-03-11 19:58:18 +02:00
Guido Schmitz 4de59b065a
Bump pysabnzbd to 1.1.1 (#67971) 2022-03-11 09:24:08 -08:00
jan iversen 306498378c
Coverage 100% of Modbus climate (#67396)
* Coverage 100% of climate.py

* Allow 100% test.
2022-03-11 19:14:40 +02:00
Artem Draft bc2aaedcec
Add DeviceClass TV to LG Netcast (#67999) 2022-03-11 17:59:45 +01:00
Paulus Schoutsen 49b642a6ba
Log device IP sending local msg (#67987) 2022-03-11 07:50:44 -08:00
Erik Montnemery 8948bada58
Add switch_as_x entity to wrapped switch's device (#67961) 2022-03-11 09:46:32 +01:00
GitHub Action 66d757115c [ci skip] Translation update 2022-03-11 00:21:48 +00:00
Erik Montnemery e43c8b513e
Listen to entity registry events for wrapped switch in switch_as_x (#67962)
* Listen to entity registry events for wrapped switch in switch_as_x

* Simplify test
2022-03-10 21:26:35 +01:00
Thomas Schamm 62e3563752
Bumped to boschshcpy==0.2.30 (#67965) 2022-03-10 20:43:43 +02:00
Tom Harris 14b5847da8
Rollback pyinsteon (#67956) 2022-03-10 17:50:36 +02:00
Erik Montnemery ee38dbd698
Add helper to set name of helper config entries (#67950) 2022-03-10 16:18:26 +01:00
Steve Easley ab4aa835d1
Add sensor platform to Kaleidescape (#67884) 2022-03-10 09:15:53 -06:00
Steve Easley 245f55edf4
Removed unused const (#67932) 2022-03-10 08:30:11 -06:00
epenet 86b775e46a
Use generic SamsungTVBridge for SamsungTV type hints (#67942)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-10 07:48:30 -06:00
Erik Montnemery cb7e492e81
Add switch_as_x integration (#67878)
* Add switch_as_x integration

* Address review comments

* Add translation strings

* Rename entity_type option to target_domain

* Move LightSwitch class definition to switch_as_x/light.py

* Update manifest

* Move tests
2022-03-10 12:23:01 +01:00