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

Erro while fetching data #25

Closed
juuhee84 opened this issue Jan 12, 2022 · 6 comments
Closed

Erro while fetching data #25

juuhee84 opened this issue Jan 12, 2022 · 6 comments

Comments

@juuhee84
Copy link

Hi!

Since the last update to Home Assistant 2021.12.8 and ha-solcast-solar v2.1.7 I always get the following errors while starting HA:

_```
2022-01-12 07:26:18 WARNING (MainThread) [custom_components.solcast_solar] Could not fetch data from Solcast, try again next day

2022-01-12 07:26:18 ERROR (MainThread) [custom_components.solcast_solar] _fetch_forecasts: Traceback (most recent call last):
File "/home/pi/.homeassistant/custom_components/solcast_solar/init.py", line 654, in _fetch_forecasts

2022-01-12 07:26:14 ERROR (MainThread) [custom_components.solcast_solar] set_state: Traceback (most recent call last):
File "/home/pi/.homeassistant/custom_components/solcast_solar/init.py", line 228, in set_state



In consequence no values can be fetched from solcast.

Anyone any ideas about this?

Before the update to pyhton 3.9 and the newest versions of ha and the integration it worked fine.

Greetings,
juuhee
@oziee
Copy link
Owner

oziee commented Jan 16, 2022

odd.. I am not seeing any of these errors
im on

core-2021.12.9
Python Version | 3.9.7

log into the solcast toolkit site and make sure that your account is ok..

@juuhee84
Copy link
Author

The solcast account looks finde. And while using nodered for contacting the API for tests is also successful... I will post my versions later if I am at home again and make one more check (maybe it works after some days with a break...)

@tmcls
Copy link

tmcls commented Feb 1, 2022

I have the same error. Some more details:

fetch_forecasts: Traceback (most recent call last): File "/config/custom_components/solcast_solar/__init__.py", line 654, in _fetch_forecasts lastforecast["period_end"] = parse_datetime(lastforecast["period_end"]).astimezone() File "/usr/local/lib/python3.9/site-packages/isodate/isodatetime.py", line 51, in parse_datetime datestring, timestring = datetimestring.split('T') AttributeError: 'datetime.datetime' object has no attribute 'split'

@oziee
Copy link
Owner

oziee commented Feb 1, 2022

If you know how... try commenting line 654 out in the init.py file.. delete all the .pyc files and restart HA and let me know if that fixes it

@oziee
Copy link
Owner

oziee commented Feb 2, 2022

@juuhee84 @tmcls v2.1.8 is up.. let me know if this solved the bug..

oziee added a commit that referenced this issue Feb 3, 2022
issue #25 fixed and added options for issue #21
@oziee oziee closed this as completed Feb 3, 2022
@juuhee84
Copy link
Author

juuhee84 commented Feb 4, 2022

Sorry for the late feedback - no time for testing! But testing is done now - and it works! Thanks a lot!

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

3 participants