Since 20th Dec my dusk\dawn automation is broken. I finally checked it out and found that these methods that I wrote years ago always returns 20th Dec, not the current day:
If you look at your Installed SmartApps in the IDE, do you still have Weather Station running? It used to come under Hello Home! but should now be under Smart Lighting.
Yes, it sets the location sunrise, sunset, sunsetTime and sunriseTime attributes used by legacy apps. Not to be confused with any other app of the same name.
I believe it gets created automatically if you create a Smart Lighting automation using sunrise and sunset, so hopefully that allows it to be recreated if deliberately deleted.
What @orangebucket said helps (thanks BTW), you can use a virtual device in the Smart Lightning app if you don’t want to use a real one. I don’t know how complex is your SmartApp automation, but you can also use the Rules API to trigger some actions with sunrise, sunset, etc.