Commit Graph

7522 Commits (272e975a52deee7635beb33a5a728dd3d207ab2f)

Author SHA1 Message Date
Jon Caruana 6a8b5ee51b
LiteJet is now configured using config_flow ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-23 14:20:58 -06:00
Raman Gupta 5a3bd30e01
Add zwave_js.set_config_parameter service ()
* create zwave_js.set_config_value service

* update docstring

* PR comments

* make proposed changes

* handle providing a label for the new value

* fix docstring

* use new library function

* config param endpoint is always 0

* corresponding changes from upstream PR

* bug fixes and add tests

* create zwave_js.set_config_value service

* update docstring

* PR comments

* make proposed changes

* handle providing a label for the new value

* fix docstring

* use new library function

* config param endpoint is always 0

* corresponding changes from upstream PR

* bug fixes and add tests

* use lambda to avoid extra function

* add services description file

* bring back the missing selector

* move helper functions to helper file for reuse

* allow target selector for automation editor

* formatting

* fix service schema

* update docstrings

* raise error in service if call to set value is unsuccessful

* Update homeassistant/components/zwave_js/services.yaml

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

* Update homeassistant/components/zwave_js/services.yaml

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

* Update homeassistant/components/zwave_js/services.yaml

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

* Update homeassistant/components/zwave_js/services.yaml

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

* Update homeassistant/components/zwave_js/services.yaml

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

* Update homeassistant/components/zwave_js/services.yaml

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

* remove extra param to vol.Optional

* switch to set over list for nodes

* switch to set over list for nodes

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-02-23 11:35:11 -05:00
Martin Hjelmare c94968d811
Catch more zwave_js errors () 2021-02-23 16:36:53 +01:00
Charles Garwood 3c35b6558b
Return states list from zwave_js get_config_parameters websocket if available () 2021-02-23 09:31:47 -05:00
tkdrob 4fdb617e22
Clean up constants ()
* Clean up constants

* fix imports
2021-02-23 09:56:44 +01:00
J. Nick Koston bd87047ff2
Update tasmota to use new fan entity model () 2021-02-22 21:27:21 -06:00
uvjustin f005c68630
Restore stream recorder functionality and add discontinuity support ()
* Add discontinuity support to stream recorder

* Use same container options for both StreamOutputs

* Fix pts adjuster

* Remove redundant/incorrect duplicate hls segment check

* Use same StreamBuffer across outputs

* Remove keepalive check for recorder

* Set output video timescale explicitly

* Disable avoid_negative_ts
2021-02-23 10:37:19 +08:00
Raman Gupta 1cecf229b9
Add zwave_js set_config_parameter WS API command ()
* add WS API command

* handle error scenario better

* fixes and remove duplicate catch

* make elif statement more compact

* fix conflict

* switch to str(err)
2021-02-22 20:34:47 -05:00
Raman Gupta 20ccec9aab
Add zwave_js/get_log_config and zwave_js/update_log_config WS API commands ()
* Add zwave_js.update_log_config service

* fix comment

* reduce lines

* move update_log_config from service to ws API call

* fix docstring

* Add zwave_js/get_log_config WS API command

* resolve stale comments

* remove transports since it will be removed from upstream PR

* add support to update all log config parameters since they could be useful outside of the UI for advanced users

* fix comment

* switch to lambda instead of single line validator

* fix rebase

* re-add ATTR_DOMAIN
2021-02-22 18:35:19 -05:00
Charles Garwood 04e07d8b2c
Add get_config_parameters websocket command to zwave_js ()
* Add get_configuration_values websocket command to zwave_js

* Tweak return value

* Review comments and cleanup returned values

* Update test

* Rename to get_config_parameters

* Add get_configuration_values websocket command to zwave_js

* Rename to get_config_parameters

* fix test

* fix tests 

* Add readable to metadata

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2021-02-22 17:03:38 -05:00
kpine fb32c2e3a8
Test zwave_js GE 12730 fan controller device-specific discovery ()
* Add test for GE 12730 fan controller device-specific discovery

* Adjust

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-22 10:56:23 -08:00
Nathan Spencer e70d896e1b
Add litterrobot integration () 2021-02-22 08:53:57 -10:00
tkdrob 75e04f3a71
Clean up constants () 2021-02-22 15:28:08 +01:00
Matt Zimmerman 81d011efc5
Add binary sensor to SmartTub for online status () 2021-02-22 04:10:00 -10:00
starkillerOG 338c07a56b
Add Xiaomi Miio vacuum config flow () 2021-02-22 13:01:02 +01:00
Austin Mroczek e5aef45bd7
Add usercode support to totalconnect ()
* Add test for invalid usercode

* Add usercodes to totalconnect.

* Update existing tests for usercodes

* Fix tests

* Add test for invalid usercode

* Add usercodes to totalconnect.

* Update existing tests for usercodes

* Fix tests

* Remove YAML support

* Fix conflict

* Bump to total_connect_client 0.56

* Change Exception to HomeAssistantError

* Fix config_flow.py

* Simplify async_setup since no yaml

* Remove import from config flow and tests

* Add reauth and test for it.  Various other fixes.

* Fix pylint in __init__

* Show config yaml as deprecated

* separate config_flow and init tests

* Assert ENTRY_STATE_SETUP_ERROR in init test

* Add test for reauth flow

* Fix reauth and tests

* Fix strings

* Restore username and usercode with new passord

* Correct the integration name

* Update tests/components/totalconnect/test_config_flow.py

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

* Update tests/components/totalconnect/test_init.py

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

* Update .coveragerc

* Add test for invalid auth during reauth

* Bump total-connect-client to 0.57

* Fix .coveragerc

* More tests for usercodes

* Fix usercode test

* Reload config entry on reauth

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-22 10:39:10 +01:00
Anders Melchiorsen d61d39de08
Handle ConditionError with multiple entity_id for state/numeric_state () 2021-02-22 08:11:59 +01:00
Jan-Willem Mulder 75b37b4c2a
Expose locked attribute in deCONZ climate platform () 2021-02-22 07:53:58 +01:00
Matt Zimmerman b2b476596b
Add UV sensor to SmartTub () 2021-02-21 20:25:01 -10:00
Diogo Gomes 5c29adea3d
Add KMTronic Integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 20:12:50 -10:00
Matt Zimmerman 5cd022a683
Add light platform to SmartTub ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 20:09:21 -10:00
Matt Zimmerman 5d8390fd9b
Add support for SmartTub filtration cycles () 2021-02-21 19:36:50 -10:00
Matt Zimmerman a8be5be376
Add switch platform and pump entity to SmartTub () 2021-02-21 18:48:27 -10:00
Matt Zimmerman d32dbc4cdd
Add support for SmartTub heat modes () 2021-02-21 18:46:54 -10:00
Diogo Gomes 0e44d61225
Add weather platform to template domain ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-21 18:08:00 -10:00
Matt Zimmerman 12c4db076c
Add more sensors to SmartTub integration () 2021-02-21 17:40:23 -10:00
J. Nick Koston c1ee9f7e4a
Fix unmocked I/O in rituals_perfume_genie config flow test () 2021-02-21 20:47:38 +01:00
Anders Melchiorsen d33a1a5ff8
Refine printing of ConditionError ()
* Refine printing of ConditionError

* Improve coverage

* name -> type
2021-02-21 14:54:36 +01:00
J. Nick Koston e2fd255a96
Cleanup recorder tests () 2021-02-21 09:52:41 +01:00
J. Nick Koston d9ab1482bc
Add support for preset modes in homekit fans () 2021-02-20 19:24:14 -08:00
Erik Montnemery 5e26bda52d
Add support for disabling config entries () 2021-02-20 19:21:39 -08:00
Erik Montnemery 2d70806035
Add support for "alias" in script steps device, device_condition, and conditions ()
Co-authored-by: Donnie <donniekarnsinsb@hotmail.com>
2021-02-20 19:21:09 -08:00
Garrett 3ad207a499
Add new Subaru integration ()
Co-authored-by: On Freund <onfreund@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-20 16:52:44 -10:00
Steven Looman efa339ca54
Allow upnp ignore SSDP-discoveries () 2021-02-20 16:26:17 -10:00
Tom Harris f045c0512b
Fix Insteon config flow with add X10 and device override () 2021-02-20 13:00:18 -10:00
Matt Zimmerman 115fe26642
Add smarttub sensor platform and state sensor () 2021-02-20 12:25:02 -10:00
Milan Meulemans 4af619d383
Add Rituals Perfume Genie integration ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-02-20 11:55:23 -10:00
Eric Severance 6e52b26c06
Speed-up wemo discovery ()
* Speed-up wemo discovery

* Use gather_with_concurrency to limit concurrent executor usage

* Comment fixup: asyncio executors -> executor threads
2021-02-20 11:16:50 -10:00
Martin Hjelmare 43a5852561
Fix habitica entry unload clean up ()
* Fix habitica entry unload clean up

* Fix service remove

* Add entry setup and unload test

* Fix config flow tests

* Assert service
2021-02-20 20:59:59 +01:00
Chris Talkington cf69415272
Implement suggested area in roku ()
* implement suggested area in roku

* Update const.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py

* Update test_media_player.py
2021-02-20 12:57:24 -06:00
kpine 2ae790283c
Detect iBlinds v2.0 switch value as a cover not light ()
* Remove unused "fibaro_fgs222" discovery hint

* Simplify multilevel switch current value discovery schema

* Force iBlinds v2.0 devices to be discovered as cover entities

* Rename discovery test file
2021-02-20 19:52:23 +01:00
uvjustin 39da0dc409
Add rtsp transport options to generic camera ()
* Add rtsp transport options to generic camera
2021-02-21 02:11:50 +08:00
J. Nick Koston adf480025d
Add support for bond up and down lights () 2021-02-20 08:03:40 -10:00
Allen Porter 4aa4f7e285
Rollback stream StreamOutput refactoring in PR#46610 ()
* Rollback PR#46610

* Update stream tests post-merge
2021-02-20 06:49:39 -08:00
Raman Gupta 788134cbc4
Bump zwave-js-server-python to 0.18.0 ()
* updates to support changes in zwave-js-server-python

* bump lib version

* use named arguments for optional args

* re-add lost commits
2021-02-20 09:50:00 +01:00
Anders Melchiorsen 26ce316c18
Do not trigger when numeric_state is true at startup () 2021-02-20 09:11:36 +01:00
J. Nick Koston b775a0d796
Run homekit service calls in async since the server is now async ()
* Simplify homekit runs and service calls

Now that the homekit server is async, call_service
and run are running in the Home Assistant event loop

* remove comment

* remove another comment
2021-02-19 21:34:52 -10:00
J. Nick Koston 41332493b5
Add suggested area support to Sonos () 2021-02-19 21:28:52 -10:00
J. Nick Koston 9b69549f73
Recover and restart the recorder if the sqlite database encounters corruption while running () 2021-02-19 21:26:24 -10:00
J. Nick Koston 5b0b01d727
Implement suggested areas in bond ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-19 21:06:43 -10:00