[APP][Pro] Sun Events - Triggers you at certain positions of the sun

A follow up after just observing for a couple of days. It is unfortunately still very unstable. It is sporadically working, but very seldomly. Mainly reporting incorrect in the IF-cards. Also seeing a lot of IF-cards reporting errors Cannot read properties of undefined (reading 'getTime')..

Is there any thing I can do to help with troubleshooting?
Will do my best to help!

I’ll keep it like it is for some more time before I start refactoring my flows.

I’m currently on v2.4.9 of Sun Events and Homey 12.8.2.

Can you let me know if this will be solved after midnight. If this is the case then I might know where to look. Please send me the logfile in private mailbox. Or create an issue on github.

I have an interesting observation;

My “old” existing IF card for “It is after Dusk” fails on each try.
However, I tried to create the exact same IF-card and that one succeeded.
So I am now replacing all my sun even cards with basically the same as they were.
A side note; I am still not getting the actual times for the different events in the dropdown (like mentioned a couple of times before).

Regarding logging. The logging does not seem to log the errors at all..

Hello there. All my flows based on this fantastic App I was using for near two year without any problem are now broken. This is a huge problem as all my blinds and lights are based on it.

This is my number for the dev: 191936fb-0926-430f-a5aa-5ff73d295dc1

DId you update the app? In that case you need to update the flow (as above)

Well as I don’t have any errors, I don’t know what to update…
I setup everything near two years ago.

Yes my App is updated automatically to the latest version.
So I just need to add the same cards again right?

I have this sort of simple cards.

Did you update from the live version to the test? Or just upgraded the test version?

I’m on the 2.4.8 (no test).

2.4.8 is test.

The changelog on the app page says 2.4.9 the test version.
But that’s is the same as 2.4.8 with language fixes?

1.4.8 or lower is production. 2.x.x is test

Troubles started about 7-10 days ago. So I suppose I was on 2.4.7 or maybe 2.4.6. Is there a way to downgrade? If yes, I would give it a try and disable automatic updates since it worked smoothly for a couple of months.

The thing I don’t understand is the latests versions are just localisations updates…

Was my log ID useful? Do you need something more to debug?

Thanks.

Meaning, just install the stable version v1.4.8 from the app store, without removing anything prior to it.
This will downgrade from v2.x

@Athomed

It looks like your settings are corrupted:

mySettings: Unexpected token ‘o’, “[object Obj”… is not valid JSON 2025-11-26T19:27:41.833Z [err] Set to default settings 2025-11-26T19:27:42.047Z [err] error parsing logfile: Unexpected end of JSON input 2025-11-28T16:53:47.494Z [err] error parsing mySettings: Unexpected token ‘o’, “[object Obj”… is not valid JSON 2025-11-28T16:53:47.495Z [err] Set to default settings 2025-11-28T16:53:47.583Z [err] error parsing logfile: Unexpected end of JSON input

Maybe you need to remove the app and re-install it. Make sure you have a backup.

1 Like

Hello I am using 2.4.9Test and have some issues. Take a look at the pictures.

Seems OK, don’t see the issue

Its not between 08:00 and sunset, the card still shows yes. It’s in the middle of the night. I read the log wrong, sorry.

aha, I see what you mean. I will check the code.

1 Like

Hi @Sethakan,

I have published a new test version; hopefully, this is fixed, as it is complicated switching between time zones. Could you please test it and let me know?

1 Like

First of all thanks for this very nice app. I’m using it in quite some flows in order to turn ON/OFF lights all around and inside the house. So far happy.

But (of course) with on exception. I’m trying to turn on lights when there is motion between sunset and sunrise. But this only seems to work between sunset - 0:00 / in the morning before sunrise is does not trigger. The flow states it’s not between sunset and sunrise.

See my screenshot. I’ve extended the time a bit by using the golden hours. But either using actual sunset/rise or golden hour does not matter. In the morning it does not trigger. Anyone knows how to fix this?

Screenshot below is taken 2 hours before the Morning golden hour ends.