J. Nick Koston
a1d9d7116c
Prevent powerwall from switching addresses if its online ( #82410 )
...
* Prevent powerwall from switching addresses if its online
If the wifi interface was discovered we would switch the
ip address in the entry to the wifi ip even if it was
connected via ethernet
* cover
* more cover
2022-11-20 10:38:30 -05:00
Franck Nijhof
a6244eea28
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74656 )
2022-07-07 21:28:18 +02:00
jrester
ad5dbae425
Fix reauthentication for powerwall integration ( #72174 )
2022-05-20 14:53:43 -05:00
Matt Zimmerman
8c00fde27d
[powerwall] Skip backup reserve sensor if data is unavailable ( #69637 )
2022-04-07 20:34:00 -07:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
J. Nick Koston
4cc8998ea7
Make powerwall attribute sensors their own sensors ( #68345 )
2022-03-18 21:23:26 +01:00
Matt Zimmerman
d077c3b8d1
Add sensor to expose Powerwall backup reserve percentage ( #66393 )
2022-02-28 09:31:34 -10:00
J. Nick Koston
3d8d507ed9
Migrate powerwall from using ip address as unique id ( #65257 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-03 18:39:57 +01:00
epenet
c3e9c1a7e8
Use DhcpServiceInfo in powerwall ( #60051 )
2021-11-21 07:56:22 -06:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
some-guy-in-oz
b2d67f8d19
Add grid services active sensor to telsa powerwall integration ( #56317 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-10-22 14:25:25 -10:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
J. Nick Koston
25f3cdde50
Add powerwall import and export sensors ( #54018 )
...
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2021-08-09 16:03:22 -07:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Franck Nijhof
969c147b77
Clean up superfluous integration setup - part 4 ( #49295 )
...
* Clean up superfluous integration setup - part 4
* Adjust tests
2021-04-16 17:46:49 +02:00
Erik Montnemery
ba2978c693
Update tests p-s to use async_get() instead of async_get_registry() ( #47654 )
2021-03-09 14:28:32 +01:00
J. Nick Koston
884df40951
Update powerwall for new authentication requirements ( #46254 )
...
Co-authored-by: badguy99 <61918526+badguy99@users.noreply.github.com>
2021-02-10 20:50:38 +01:00
J. Nick Koston
38d4af1a6e
Remove YAML support from powerwall ( #45381 )
2021-01-21 21:59:33 -05:00
J. Nick Koston
b71a9b5e28
Prefill the ip address for powerwall discovery ( #45209 )
2021-01-17 03:09:04 +01:00
Ville Skyttä
2fb3be50ab
Make DeviceRegistry.async_get_device connections arg optional ( #44897 )
...
* Make async_get_device connections Optional, default None
* Remove unnecessary async_get_device connections arg usages
Some of these were using an incorrect collection type, which didn't
cause issues mostly just due to luck.
2021-01-07 13:49:45 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
1c36bf5e19
Fix block till done in create entry config flow tests ( #42290 )
2020-10-24 16:20:56 +02:00
jrester
734972f876
Update tesla_powerwall to 0.3.3 ( #41482 )
2020-10-08 08:26:44 -05:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
2d5faaf3f8
Remove powerwall attributes no longer present in latest firmware ( #36667 )
2020-06-11 10:15:02 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
jrester
4b998ea6af
Improve error handling for Powerwall ( #34580 )
...
* Improve error handling
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/config_flow.py
modified: homeassistant/components/powerwall/const.py
modified: homeassistant/components/powerwall/strings.json
modified: homeassistant/components/powerwall/translations/en.json
* Change exception name
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/config_flow.py
* Add test
* Rename PowerwallError to POWERWALL_ERROR
* Modify handling of APIChangedErrors
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/const.py
2020-04-26 19:14:53 -05:00
jrester
4a5cf5cd2b
Powerwall sensor add is_active, round state attributes and change thresholding for charging status sensor ( #34582 )
...
* Change sensor values and thresholding
* Update tests
2020-04-23 10:00:38 -05:00
J. Nick Koston
75e5f085d3
Include charging state for powerwall ( #33432 )
...
* Switch to binary sensor for charging status per review
* Powerwall charging margin of error is much higher than expected
2020-04-19 20:50:42 -05:00
jrester
3776a06281
Use serial numbers for unique_id of powerwall devices ( #34351 )
...
* Update tesla-powerwall to version 0.2.5
* Create unique_id from serial numbers of powerwalls
modified: homeassistant/components/powerwall/__init__.py
modified: homeassistant/components/powerwall/binary_sensor.py
modified: homeassistant/components/powerwall/const.py
modified: homeassistant/components/powerwall/entity.py
modified: homeassistant/components/powerwall/sensor.py
modified: tests/components/powerwall/mocks.py
modified: tests/components/powerwall/test_sensor.py
* Fix pylint error
modified: homeassistant/components/powerwall/__init__.py
2020-04-17 16:21:14 -05:00
jrester
6924192523
Use updated powerwall client API library ( #34139 )
...
* Use updated powerwall client API library
* Increase instant_power precision to 3
* Add @jrester as code owner for powerwall
2020-04-13 21:59:50 +02:00
springstan
9f713dac7f
Use UNIT_PERCENTAGE constant ( #34054 )
2020-04-11 22:53:48 +02:00
J. Nick Koston
ca0648afe8
Fix powerwall units (kW) ( #33954 )
...
* Fix powerwall units (kW)
* Fix test
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-04-10 09:33:58 -07:00
J. Nick Koston
e6ed2f0377
Add version and device type to powerwall device_info ( #33453 )
...
* Add version and device type to powerwall device_info
* Upstream powerwall now supports a http_session
2020-03-31 12:55:50 -07:00
J. Nick Koston
5db1a67c20
Make powerwall unique id stable ( #33021 )
...
* Update powerwall unique id
* Fix somfy optimistic mode when missing in conf (#32995 )
* Fix optimistic mode when missing in conf #32971
* Ease code using a default value
* Client id and secret are now inclusive
* Bump aiohomekit to fix Insignia NS-CH1XGO8 and Lennox S30 (#33014 )
* Axis - Fix char in stream url (#33004 )
* An unwanted character had found its way into a stream string, reverting f-string work to remove duplication of code and improve readability
* Fix failing tests
* deCONZ - Add support for Senic and Gira Friends of Hue remote… (#33022 )
* Update the test
* Harmony config flow improvements (#33018 )
* Harmony config flow improvements
* Address followup review comments from #32919
* pylint -- catching my naming error
* remove leftovers from refactor
* Update powerwall unique id
* Update the test
Co-authored-by: tetienne <thibaut@etienne.pw>
Co-authored-by: Jc2k <john.carr@unrouted.co.uk>
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2020-03-19 20:43:09 -07:00
J. Nick Koston
5b4d2aed64
Add Powerwalls integration ( #32851 )
...
* Create an integration for Powerwalls
* Self review :: remove unused code
* Remove debug
* Update homeassistant/components/powerwall/__init__.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* _call_site_info to module level
* Update homeassistant/components/powerwall/binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/powerwall/test_binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/binary_sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* remove sensors that I added tests for from the comment
* Update homeassistant/components/powerwall/config_flow.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/powerwall/sensor.py
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>
* Switch to UNIT_PERCENTAGE
* reduce code
* Add test for import
* Adjust tests
* Add missing file
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-03-19 10:50:17 -05:00