# \[APP\]\[Pro\] Solar Forecasts (SolCast + Forecast.Solar)

**URL:** <https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842>\
**Category:** Apps\
**Created:** [April 29, 2021, 7:25am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842 "2021-04-29T07:25:41Z")\
**Posts on this page:** 20\
**Page:** 18

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [September 17, 2025, 7:32am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/343 "2025-09-17T07:32:56Z")

</div>

conditions are easier to program then triggers, so I made it into condition (untested)

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [September 17, 2025, 7:33am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/344 "2025-09-17T07:33:58Z")

</div>

with homeyscript

```auto
let settings = await Homey.apps.getAppSettings({ id: 'com.solcast' });
let solcast = settings.solcast_raw;
if (typeof solcast === 'string') solcast = JSON.parse(solcast);

let cutoffTime = "14:00";
let threshold = 5;

let [h, m] = cutoffTime.split(":").map(Number);
let cutoff = new Date();
cutoff.setHours(h, m, 0, 0);

let remaining = solcast.forecasts
  .filter(f => new Date(f.period_end) <= cutoff)
  .reduce((acc, f) => acc + f.pv_estimate / 2, 0);

console.log(`Remaining before ${cutoffTime}: ${remaining.toFixed(2)} kWh`);
console.log("Below threshold?", remaining < threshold);

```

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [September 17, 2025, 12:53pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/345 "2025-09-17T12:53:54Z")

</div>

Okay, I have now made it like this.

 ![Scherm­afbeelding 2025-09-17 om 14.50.50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1a2d784c5603c9f0c1b7d820727417bda82c4e23.png)

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [September 18, 2025, 10:44am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/346 "2025-09-18T10:44:17Z")

</div>

@Pieterv123

Unfortunately, it’s not working properly yet. I just created a test flow. Remaining today = 2.84. kWh\_PV\_Required = 7.526. So both conditions are true. However, as you can see, the card with the cutoff time is false. Solcast reports production until 19:30 today. So the cutoff time card would be less than expected today. I’m happy with the AND card. Because I can use the same function again in my flow to improve forced charging. But at the moment, it’s not working as expected.

 ![Scherm­afbeelding 2025-09-18 om 12.28.12](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/0/a084d5c84a0faedc21b23024a266de49d6fe4d28.png)

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [September 20, 2025, 8:41am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/347 "2025-09-20T08:41:25Z")

</div>

> [@Johan\_Bruyn](#):
>
> So both conditions are true.

So obviously the upper condition is false according to your screen shot (yellow bar and yellow point at the _false_ branche).  
You can check the value by moving the mouse over the value as long as the flow is in test mode.  
Example

 ![Example show value during test](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/a/1a868d13948e7f65403b6e250be5e3fc1e83afe8.png)  
So check the test outcome again. Probably you find the error, or you can provide more details.

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [September 20, 2025, 9:22am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/348 "2025-09-20T09:22:09Z")

</div>

For the moment I think it is not correct and I have no idea on fixing it.

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [September 20, 2025, 10:06am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/349 "2025-09-20T10:06:28Z")

</div>

Indeed, but it should be true.

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [September 20, 2025, 10:07am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/350 "2025-09-20T10:07:40Z")

</div>

Suggestion: ask for help in the developer forum, not ChatGPT.

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [September 20, 2025, 12:16pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/351 "2025-09-20T12:16:01Z")

</div>

you can test the latest version with a hopefully working trigger.  
Condition has not been changed (yet)

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [September 25, 2025, 4:59pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/352 "2025-09-25T16:59:36Z")

</div>

Trigger tested. Looks like it’s working. If you can also make the condition work would be great. A number of conditions are then not necessary in my flow.

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [October 1, 2025, 7:38am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/353 "2025-10-01T07:38:43Z")

</div>

I will try to fix it this weekend

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [October 4, 2025, 10:16am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/354 "2025-10-04T10:16:18Z")

</div>

you can try the latest version with (hopefully) fixed condition card

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [October 6, 2025, 2:11pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/355 "2025-10-06T14:11:20Z")

</div>

in test, looking good for now.

---

<div class="post-metadata">

**Author:** ![Arko\_Goossens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arko_goossens/32/114268_2.png) [@Arko\_Goossens](https://community.homey.app/u/Arko_Goossens)\
**Post date:** [November 4, 2025, 11:56am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/356 "2025-11-04T11:56:48Z")

</div>

Hi, The prediction with Solcast of the day is always empty? Anybody knows why?

 ![1000021011](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/e/7e9b9405bcedc18f630673e36a234d49a49a75cb.jpeg)

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [November 4, 2025, 12:08pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/357 "2025-11-04T12:08:35Z")

</div>

Try to put your midnight update after 02AM

---

<div class="post-metadata">

**Author:** ![Arko\_Goossens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arko_goossens/32/114268_2.png) [@Arko\_Goossens](https://community.homey.app/u/Arko_Goossens)\
**Post date:** [November 5, 2025, 7:23am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/358 "2025-11-05T07:23:51Z")

</div>

Where do you set this up?

---

<div class="post-metadata">

**Author:** ![Mike1233](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mike1233/32/20991_2.png) [@Mike1233](https://community.homey.app/u/Mike1233)\
**Post date:** [November 5, 2025, 10:00pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/359 "2025-11-05T22:00:29Z")

</div>

@Arko_Goossens Maybe with a flow?

Something like,

IF time is 2:00

THEN Fetch midnight update

Or something like this. I don’t use this app.

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [November 5, 2025, 11:59pm UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/360 "2025-11-05T23:59:31Z")

</div>

Correct

---

<div class="post-metadata">

**Author:** ![Johan\_Bruyn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bruyn/32/132683_2.png) [@Johan\_Bruyn](https://community.homey.app/u/Johan_Bruyn)\
**Post date:** [November 6, 2025, 3:23am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/361 "2025-11-06T03:23:37Z")

</div>

Zoiets:

 ![Schermafbeelding 2025-11-06 om 04.20.36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/898d29bfb34901e29f2085eca63a0738e7d3f836.png)

---

<div class="post-metadata">

**Author:** ![Walter\_vande\_kerkhof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/walter_vande_kerkhof/32/28963_2.png) [@Walter\_vande\_kerkhof](https://community.homey.app/u/Walter_vande_kerkhof)\
**Post date:** [November 16, 2025, 11:32am UTC](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842/362 "2025-11-16T11:32:51Z")

</div>

Hi, having api rates exceeded error since a few days. Even if the api calls are very low (2).

 ![IMG_3957](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/d/ed6a77496361808687111c76df34c84db4270cf1.jpeg)

The information which is shown is of 2 days ago. Runnen the latest version of the app and homey software

Anybody having the same issues/knows how to solve this?

Regards

[Previous page](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842.md?page=17)

[Next page](https://community.homey.app/t/app-pro-solar-forecasts-solcast-forecast-solar/46842.md?page=19)
