Commit Graph

47656 Commits (bdb61e0222d3de8387bdbad33b650b04ac806eaa)

Author SHA1 Message Date
J. Nick Koston b9526b05ee
Disable extra emonitor sensors by default (#68519) 2022-03-22 11:05:30 -10:00
Inovelli 78a41022ad
Updating to allow for Button Press event logs for Inovelli devices (#68277)
Co-authored-by: codyhackw <49957005+codyhackw@users.noreply.github.com>
2022-03-22 19:59:57 +01:00
Erik Montnemery 34063836ba
Fix scaffold script (#68516) 2022-03-22 19:51:24 +01:00
J. Nick Koston c223397098
Remove unneeded attributes selection from history_states api calls (#68409) 2022-03-22 19:49:07 +01:00
J. Nick Koston c5f3f9e924
Convert plant to use history api for database access (#68410) 2022-03-22 19:34:46 +01:00
Erik Montnemery eb068bc850
Fix targeting all or none entities in service calls (#68513)
* Fix targeting all or none entities in service calls

* Add test
2022-03-22 19:45:27 +02:00
Ben Felton 43772b3fa9
Add World Message/MOTD support for MinecraftServer Integration (#66297) 2022-03-22 18:26:23 +01:00
Warwick Davison 0c6a6c360b
Fix tuya light 2 channel dimmer module (#68109)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-22 18:24:57 +01:00
Jeff Rescignano 0720b0f891
Add all option to light group (#68447)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-22 16:09:18 +01:00
Marc Mueller 6a66b4dbff
Add zha typing [api] (3) (#68353) 2022-03-22 10:15:39 -04:00
Marc Mueller df05e8b950
Add zha typing [core.channels] (#68377) 2022-03-22 10:14:35 -04:00
Marc Mueller bdc92271f2
Add zha typing [core.gateway] (1) (#68397)
* Add zha typing [core.gateway] (1)

* Add temporary type ignores

* Fix pylint
2022-03-22 10:13:09 -04:00
J. Nick Koston 94cd656670
Use new internal_state property in tplink diagnostics (#68497) 2022-03-22 14:58:16 +01:00
Joakim Sørensen 0802b64d95
Add boolean for certificate usage to analytics (#68254)
* Add boolean for certificate usage to analytics

* Mock hass.http
2022-03-22 14:49:43 +01:00
Franck Nijhof 1c2b8ee606
Add typing to Alert integration (#68365) 2022-03-22 14:48:36 +01:00
dependabot[bot] a8df10bb2c
Bump actions/cache from 2.1.7 to 3 (#68496)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-22 14:47:09 +01:00
Raman Gupta 174f0a5695
Remove deprecated config option for eight_sleep (#68495) 2022-03-22 13:37:26 +01:00
Robert Hillis dfc689f49a
Deprecate Dune HD YAML configuration (#68381)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-22 13:27:54 +01:00
Franck Nijhof 5ed5bccfe8
Clarify what the Tailscale integration does not (#68499) 2022-03-22 13:04:42 +01:00
Jan Bouwhuis 5afe8fd2db
Revert "Add MQTT notify platform (#64728)" (#68505)
This reverts commit e574a3ef1d.
2022-03-22 12:51:24 +01:00
Joakim Sørensen d17f8e9ed6
Add update platform to the Supervisor integration (#68475) 2022-03-22 12:21:12 +01:00
Erik Montnemery 1b955970f8
Allow hiding and unhiding group members (#68192) 2022-03-22 12:14:34 +01:00
Erik Montnemery b5d2c6e43a
Add config flow for threshold binary sensor (#68238)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-22 11:32:19 +01:00
epenet 87378016c1
Add basic support for SamsungTV encrypted models (#68500)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-22 00:11:41 -10:00
Martin Hjelmare 9180243a54
Deprecate mysensors config YAML (#68504) 2022-03-22 10:40:48 +01:00
J. Nick Koston 06ebb0b8b3
Add support for effects to tplink light strips (#65166) 2022-03-21 20:20:40 -10:00
Paulus Schoutsen 49edaf2f68
Merge pull request #68493 from home-assistant/rc 2022-03-21 21:57:00 -07:00
J. Nick Koston cb011570e8
Seperate emonitor extra_state_attributes into their own sensors (#68479) 2022-03-21 21:20:17 -07:00
Pawel bcb8c7ec3c
Add API endpoint get_statistics_metadata (#68471)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-21 21:14:47 -07:00
Paulus Schoutsen 2be9798fb8 Bumped version to 2022.3.6 2022-03-21 20:42:13 -07:00
J. Nick Koston 3bf0a64e21 Fix tplink color temp conversion (#68484) 2022-03-21 20:42:09 -07:00
Paulus Schoutsen 23e9aa6ad2 Handle Hue discovery errors (#68392) 2022-03-21 20:42:08 -07:00
J. Nick Koston a8e1f57058 Filter IPv6 addreses from enphase_envoy discovery (#68362) 2022-03-21 20:42:07 -07:00
Marcel van der Veldt caee432901 Hue integration: update errors that should be supressed (#68337) 2022-03-21 20:42:07 -07:00
epenet df5c09e483 Bump renault-api to 0.1.10 (#68260)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-03-21 20:42:06 -07:00
Franck Nijhof 38eb007f63 Update opensensemap-api to 0.2.0 (#68193) 2022-03-21 20:41:31 -07:00
Marc Mueller 7dd9bfa92f Fix point by adding authlib constraint (#68176)
* Fix point by pinning authlib

* Use constraint
2022-03-21 20:41:31 -07:00
Marc Mueller 54b7f13a54 Add missing await [velbus] (#68153) 2022-03-21 20:41:30 -07:00
Michael 774f2b9b82 Respect disable_new_entities for new device_tracker entities (#68148) 2022-03-21 20:41:29 -07:00
Antonio Larrosa bc14385317 Fix finding matrix room that is already joined (#67967)
After some debugging, it seems room.canonical_alias contains the
room alias that matches the room_id_or_alias value but is not
contained in room.aliases (which is empty). As a result, the
matrix component thought the room wasn't alread joined, joins
again, and this replaces the previous room which had the listener.
This resulted in the component callback not being called for new
messages in the room.

This fixes #66372
2022-03-21 20:41:28 -07:00
Numa Perez 9352ed1286 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-21 20:41:28 -07:00
Michael 70a771b6ed
Respect disable_new_entities for new device_tracker entities (#68148) 2022-03-21 20:40:33 -07:00
IceBotYT a43505a0a3
Add PECO power outage counter integration (#65194)
* Create a new NWS Alerts integration

* Create a new NWS Alerts integration

* Create new PECO integration

* Remove empty keys

* Revert "Create a new NWS Alerts integration"

This reverts commit 38309c5a87.

* Revert "Create a new NWS Alerts integration"

This reverts commit aeabdd37b8.

* Fix test with new mock data

* Add init and sensor to .coveragerc and more tests for config flow

* Small fixes and replacing patch with pytest.raises in testing invalid county

* Add type defs and fix test_config_flow to use MultipleValid instead

* Fix  issues with 'typing.Dict'

* Move API communication to seperate PyPI library

* Switch PyPI library from httpx to aiohttp to allow for passing in websessions

* Commit file changes requested by farmio as listed here: d267e4300a

* Add suggestions requested by farmio as listed here: 586d8ffa42

* Move native_unit_of_measurement from prop to attr

* Update PLATFORMS constant type annotation

Co-authored-by: Matthias Alphart <farmio@alphart.net>

* Add peco to .strict-typing

I am from school so I can't run mypy atm

* Forgot to import Final

* Do as requested [here](https://github.com/home-assistant/core/runs/5070634928?check_suite_focus=true)

* Updated mypy.ini, checks should pass now

* Fix to conform to mypy restrictions https://github.com/home-assistant/core/runs/5072861837\?check_suite_focus\=true

* Fix type annotations

* Fix tests

* Use cast in async_update_data

* Add data type to CoordinatorEntity and DataUpdateCoordinator

* More cleanup from suggestions here: https://github.com/home-assistant/core/pull/65194\#pullrequestreview-908183493

* Fix tests for new code

* Cleaning up a speck of dust

* Remove unused variable from the peco sensor

* Add rounding to percentage, and extra clean-up

* Final suggestions from @farmio

* Update SCAN_INTERVAL to be a little bit faster

* Change the SCAN_INTERVAL to be somewhat near the update interval of the outage map, as noted by farmio

* New UpdateCoordinator typing
2022-03-21 23:56:53 +01:00
Erik Montnemery 247af2e74f
Improve recorder setup in tests (#68333)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-21 15:49:18 -07:00
jjlawren 653305b998
Support multiple Plex servers in media browser (#68321) 2022-03-21 15:48:44 -07:00
J. Nick Koston 16655c4ccc
Fix tplink color temp conversion (#68484) 2022-03-21 12:41:15 -10:00
Tom 574f4710aa
Add select platform to Plugwise (#68303)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-03-21 21:13:03 +01:00
J. Nick Koston 1f135a20a0
Remove extra attributes from pvoutput sensors (#68481) 2022-03-21 20:54:57 +01:00
Mike Fugate d065475aac
Bump asyncsleepiq to 1.2.0 (#68438)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-21 08:27:51 -10:00
Franck Nijhof 28d3117a88
Track number of persons in a Zone (#68473) 2022-03-21 10:41:55 -07:00