107 Commits

Author SHA1 Message Date
Mike Marvin
fea0154c75 Fix for outlets and EVSEs no longer working (#402)
Removed the failing call to get location properties, the API started
returning that natively a while back so the call wasn't necessary
anymore anyway.

Additionally tweaks the service description for setting the EVSE
current. Still might need to tweak that further to match the latest
expectations but this should be an improvement toward that. Longer term
I want to get back to it only showing EVSEs in the list instead of all
outlets but it's better than nothing!
v0.11.3
2025-12-23 16:16:49 -05:00
Mike Marvin
f75760a775 Fix for #381 - Extra keys not allowed in services.yaml (#384)
Fix for #381 - Extra keys not allowed in services.yaml. Not sure why
this was allowed for so long and is now breaking, but I removed the
nested entity key and loosened the model restriction since there are now
multiple models for EVSEs.

Will no longer filter to just EVSEs unfortunately, instead filters to
all "outlets" until EVSEs get their own device class. Calling it on an
outlet will give a fairly clear error.
v0.11.2
2025-09-14 14:48:48 -04:00
Mike Marvin
a4f88bcb44 Read the invert solar setting in the correct part of the flow (#369)
This pull request introduces a minor refactor to the `async_setup` and
`async_setup_entry` functions in the `custom_components/emporia_vue`
integration and updates the version in the `manifest.json` file. The
most important changes are detailed below:

### Refactor to configuration handling:

* Removed the setting of the `INVERT_SOLAR` global variable from the
`async_setup` function. It is now initialized in the `async_setup_entry`
function, where it is conditionally assigned based on `entry.data`.
[[1]](diffhunk://#diff-b9cd036c286ca37bb13a1f16e8f20f8f567fad585a9d060b850c8fe4aadd8630L72-L75)
[[2]](diffhunk://#diff-b9cd036c286ca37bb13a1f16e8f20f8f567fad585a9d060b850c8fe4aadd8630R95-R104)

### Version update:

* Updated the version in `manifest.json` from `0.11.0` to `0.11.1` to
reflect the changes in the integration.
v0.11.1
2025-06-09 22:28:24 -04:00
magico13
dd3854d24f Fix parameter type for invert_solar in fix_usage_sign function v0.11.0 2025-06-05 20:55:27 -04:00
magico13
07d4029aa8 Update version to 0.11 2025-06-05 20:52:33 -04:00
Chris Rowe
b750f00732 Add download step to readme (#354)
I didn't realize this was a required step and found
https://community.home-assistant.io/t/hacs-added-repositories-dont-persist-a-restart/665788
after some Googling, so thought it might be worth adding to the readme
2025-03-04 20:01:59 -05:00
magico13
0754cf2149 Second attempt to define config_schema 2025-02-02 17:51:45 -05:00
magico13
27442a9bfe Attempt to fix validation errors 2025-02-02 17:36:10 -05:00
Mike Marvin
92647f6835 Initial Support for Re-Auth and Reconfiguration (#350)
- Updates to config flows to support re-auth when password changes and
reconfiguration to change the configuration normally set during
initialization.
- Add config option to invert solar data, defaults to true. This should
allow the user to choose if they want it inverted, since the energy
dashboard requires positive data but emporia usually provides negative
for generation.
- A bunch of typing and similar style updates
- Update some translation strings
- Add support for using the API simulator without dev code
2025-02-02 17:26:32 -05:00
Mike Marvin
be40e96791 Update version to 0.10.2 (#345) v0.10.2-pre 2025-01-19 17:11:28 -05:00
Mike Marvin
33ac4e9e40 Add support for reauthentication without fully removing and readding (#344)
Also linter changes. Need to standardize those at some point, I try to
stick to the ones in the Home Assistant core repo.
2025-01-19 17:07:16 -05:00
Tim Laing
44673931db Added OptionFlow and fixed formatting and typing issues (#316)
* Added OptionsFlow support
* Formatted code
* Corrected and added typing
* Removed linting errors where possible
* Added VSCode configuration files
2025-01-19 12:45:45 -05:00
Mike Marvin
86804e1301 v0.10.1 Allow merged type to be bidirectional (#332)
Theoretically fixes #331
v0.10.1
2024-12-25 13:51:13 -05:00
Mike Marvin
6f06d2c3e2 v0.10.0 Updates (#311)
- Bumped version to 0.10.0. 
- Updated sensor names to more closely follow Home Assistant's
recommended naming conventions. Only changes them if they're still set
to the default, you can still rename them.
- Addressed Home Assistant warnings about deprecated functionality and
also numerous linter recommendations.\
- Bumped PyEmVue to 0.18.6, which includes improvements to the
authentication flow and supports bidirectional circuits.
v0.10.0
2024-09-19 20:34:47 -04:00
magico13
7cec1a8dc0 Bump pyemvue to v0.18.4 v0.9.3 2024-03-03 19:04:49 -05:00
magico13
9f73280b36 Bump PyEmVue to v0.18.3 v0.9.2 2024-02-26 22:29:37 -05:00
magico13
e90cf4d403 Bump pyemvue to 0.18.2 which has improved resiliency. Formatting fixes. v0.9.1 2024-02-25 15:45:56 -05:00
magico13
2853fd9e27 Handle single ids or lists. Update state immediately with the new data. 2023-11-09 18:14:23 -05:00
magico13
295fbe0bbc Make sure current is an integer 2023-11-05 13:56:54 -05:00
magico13
9193845146 Undo awaits since it breaks more. Will reattempt when my dev environment finally finishes installing. 2023-11-05 12:45:05 -05:00
magico13
ce4fcaa532 Merge branch 'master' of https://github.com/magico13/ha-emporia-vue 2023-11-05 12:42:19 -05:00
magico13
360c625e15 Add awaits to service call (untested) 2023-11-05 12:42:08 -05:00
magico13
3bd8a120f2 Add awaits to service call (untested) 2023-11-05 12:39:14 -05:00
magico13
17b4bd5ef9 Return more info from charger. Use current state when updating charger current. 2023-08-12 16:51:34 -04:00
magico13
e2e7f5ed01 Add extra channels like Balance during first poll. Fix some types. 2023-07-13 22:05:33 -04:00
magico13
9d795526ee First pass at updating based on device tree and not 1min update data. 2023-07-09 21:43:19 -04:00
magico13
170d0af31e 0.8.3 Bump pyemvue to fix EVSE update. Additional logging around EVSE update errors. v0.8.3 2023-06-14 22:54:35 -04:00
magico13
0bd07c28c0 Remove title from strings.json v0.8.2 2023-06-13 20:59:08 -04:00
magico13
26f8f6794f Attempt to pass checks 2023-06-13 20:55:39 -04:00
Mike Marvin
619eadf408 Merge pull request #177 from cdnninja/patch-1
fix: Invalid services.yaml
2023-06-13 20:09:45 -04:00
cdnninja
34b895a014 Update services.yaml 2023-01-28 20:04:28 -07:00
cdnninja
75e4f14ec4 fix: Invalid services.yaml
Correction to continue removing errors for HACS store.   Entity type can't use manufacturer as per: https://www.home-assistant.io/docs/blueprint/selectors/#entity-selector
2023-01-28 19:53:13 -07:00
magico13
cc4ae92e7b Bump pyemvue version to fix outlet activation v0.8.1 2023-01-23 14:35:10 -05:00
Mike Marvin
d584fa2a0a Merge pull request #168 from cdnninja/patch-2
chore:  Github checks for HACS
2023-01-23 14:33:36 -05:00
Mike Marvin
54f8d698c5 Merge pull request #167 from cdnninja/patch-1
fix:  Required integration type
2023-01-23 14:32:31 -05:00
cdnninja
b74a379f7f Update manifest.json
Update hacs.json
2022-12-19 20:23:09 -07:00
cdnninja
9845d09a2d Merge pull request #1 from cdnninja/patch-3 2022-12-19 20:15:39 -07:00
cdnninja
797764707e fix: Update hacs.json to make it vali 2022-12-19 20:15:09 -07:00
cdnninja
300b2b2d64 chore: Github checks for HACS
HACS checks required for HACS integration.
2022-12-19 20:09:05 -07:00
cdnninja
f2e7dc6606 fix: Required integration type
Required in future version of home assistant as per: https://developers.home-assistant.io/docs/creating_integration_manifest/
2022-12-19 20:04:23 -07:00
Mike Marvin
1d1199c665 Merge pull request #146 from magico13/v8
V0.8
v0.8
2022-10-08 19:31:17 -04:00
magico13
4574a3e221 Fix timestamp for midnight detection. Cleanup and reorganization of recurse usage data. 2022-09-28 21:07:45 -04:00
magico13
dca72e29c3 Improvements to None handling and additional logging 2022-09-10 16:23:31 -04:00
magico13
8dbe18a093 Update pyemvue version. Get outlets and chargers in one call. v0.8-pre5 2022-09-05 13:34:13 -04:00
magico13
677cceea4e Try to handle some invalid key errors. Reset day sensors at midnight. v0.8-pre4 2022-06-26 18:41:34 -04:00
magico13
ca5e5d77a6 Add service to set charger current v0.8-pre3 2022-05-21 17:15:17 -04:00
magico13
0e4e7a912d Another bad auto-import v0.8-pre2.3 2022-05-14 17:54:10 -04:00
magico13
81c9b9ed72 Remove bad tkinter UNITS line from an autoimport v0.8-pre2.1 2022-05-14 17:48:06 -04:00
magico13
e686f785b3 Add Charger as switch. Add attributes for charge rate and status. No service yet v0.8-pre2 2022-05-14 17:36:43 -04:00
magico13
a4e93de06a Set month reset properly. Start adding code for EV charger support 2022-05-09 22:58:01 -04:00