Coder Social home page Coder Social logo

Comments (7)

oziee avatar oziee commented on June 2, 2024 1

Yeah I think I'll wait till I get home and do it properly instead of on my phone

I did miss something

from ha-solcast-solar.

oziee avatar oziee commented on June 2, 2024

@jasonpstokes Can you edit the init file and move line 70 two lines up above line 68 and restart HA and see if the error disappears

from ha-solcast-solar.

del13r avatar del13r commented on June 2, 2024

@jasonpstokes Can you edit the init file and move line 70 two lines up above line 68 and restart HA and see if the error disappears

Before
image

After
image

After reboot
2021-11-01 14:44:41 DEBUG (MainThread) [custom_components.solcast_solar] Setting up Solcast for rooftop id XXXX-XXXX-XXXX-XXXX
2021-11-01 14:44:41 DEBUG (MainThread) [custom_components.solcast_solar] registering API limit reset
2021-11-01 14:44:41 DEBUG (MainThread) [custom_components.solcast_solar] registering daily forecast update at 00:00:00
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] registered forecast_today sensor sensor.solcast_forecast_today
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] registered forecast_today_remaining sensor sensor.solcast_forecast_today_remaining
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] registered forecast_tomorrow sensor sensor.solcast_forecast_tomorrow
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] registered API count sensor sensor.solcast_remaining_api_count
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] registered last_update sensor sensor.solcast_last_updated
2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] No updates to schedule for today. Sunset already. Will create a new schedule at sunrise tomorrow. You can use the Solcast PV Forecast: update_forecast service call to get call the API right now.

I then manually called the service

image

2021-11-01 14:48:28 DEBUG (MainThread) [custom_components.solcast_solar] Update forecast service called
2021-11-01 14:48:29 DEBUG (MainThread) [custom_components.solcast_solar] Updating Solcast estimated_actuals data
2021-11-01 14:48:29 DEBUG (MainThread) [custom_components.solcast_solar] Updated API count sensor
2021-11-01 14:48:29 DEBUG (MainThread) [custom_components.solcast_solar] Updated last_update (datetime) that successfully called Solcast API sensor
2021-11-01 14:48:29 DEBUG (MainThread) [custom_components.solcast_solar] Forecast successfully fetched and entity available
2021-11-01 14:48:30 DEBUG (MainThread) [custom_components.solcast_solar] Updated forecasts from Solcast API
2021-11-01 14:48:30 DEBUG (MainThread) [custom_components.solcast_solar] Notified 1 sensor listeners
2021-11-01 14:48:30 DEBUG (MainThread) [custom_components.solcast_solar] Notified 1 sensor listeners
2021-11-01 14:48:30 DEBUG (MainThread) [custom_components.solcast_solar] Notified 1 sensor listeners
2021-11-01 14:48:30 DEBUG (MainThread) [custom_components.solcast_solar] Notified 5 sensor listeners

from ha-solcast-solar.

oziee avatar oziee commented on June 2, 2024

Cool so seems to solve that error.. but as you can see it's hit the bug I saw this morning that I have fixed in my system that I will have to PR tonight

from ha-solcast-solar.

del13r avatar del13r commented on June 2, 2024

Cool so seems to solve that error.. but as you can see it's hit the bug I saw this morning that I have fixed in my system that I will have to PR tonight

Cheers, however It seems to mistakenly think the sun has set for the day.

2021-11-01 14:44:42 DEBUG (MainThread) [custom_components.solcast_solar] No updates to schedule for today. Sunset already. Will create a new schedule at sunrise tomorrow. You can use the Solcast PV Forecast: update_forecast service call to get call the API right now.

from ha-solcast-solar.

oziee avatar oziee commented on June 2, 2024

V2.0.4 should fix this

from ha-solcast-solar.

jasonpstokes avatar jasonpstokes commented on June 2, 2024

Thanks @oziee. Was away all day from my computer so couldn't try your fix earlier, sorry.

Does the package contain the updated version though? I've just updated from HACS and then also tried manually (from the release) - but I'm still getting the error on start-up?

(Plus the manifest file has 2.0.3)

from ha-solcast-solar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.