Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key error ‘Current’ #317

Open
swests opened this issue Dec 4, 2024 · 0 comments
Open

Key error ‘Current’ #317

swests opened this issue Dec 4, 2024 · 0 comments

Comments

@swests
Copy link

swests commented Dec 4, 2024

Describe the bug
Getting this in the error log

Screenshots

03:50:10 WARNING pv_opt: ------------------------------------------------------------
KeyError: 'current'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
for direction in ["charge", "discharge"]:
File "/homeassistant/appdaemon/apps/pv_opt/solis.py", line 793, in _solis_state
^^^^^^^^^^^^^^^^^^^
status = self._solis_state()
File "/homeassistant/appdaemon/apps/pv_opt/solis.py", line 548, in status
^^^^^^^^^^^^^^^^^^^^
status = self.inverter.status
File "/homeassistant/appdaemon/apps/pv_opt/pv_opt.py", line 1892, in optimise
^^^^^^^^^^^^^^
return f(*args, **kw)
File "/usr/lib/python3.11/site-packages/appdaemon/adbase.py", line 35, in f_app_lock
self.optimise()
File "/homeassistant/appdaemon/apps/pv_opt/pv_opt.py", line 1636, in optimise_time
^^^^^^^^^^^^^^
return f(*args, **kw)
File "/usr/lib/python3.11/site-packages/appdaemon/adbase.py", line 35, in f_app_lock
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/usr/lib/python3.11/site-packages/appdaemon/threading.py", line 1022, in worker
03:50:10 WARNING pv_opt: Traceback (most recent call last):
03:50:10 WARNING pv_opt: ------------------------------------------------------------
03:50:10 WARNING pv_opt: Worker Ags: {'id': '6f7dc5f941114a2eb898b0d60bbe26e2', 'name': 'pv_opt', 'objectid': 'e33c9850a155441291fbef2ca728db29', 'type': 'scheduler', 'function': <bound method PVOpt.optimise_time of <pv_opt.PVOpt object at 0x7fa66fbb2ad0>>, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'interval': 600, '__thread_id': 'thread-0'}}
03:50:10 WARNING pv_opt: Unexpected error in worker for App pv_opt:
03:50:10 WARNING

Additional context
Latest HA and PV_OPT

Thanks for a great solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant