I need help with making a rule using astro

If that is your complete rule you don’t need any imports.
In general: you can delete every import starting with org.openhab.*

Because the channel triggers from the astro2 events are only a short trigger (ON, then immediately OFF again) I would recommend to use the design pattern for more flexibility:

1 Like