For Home Assistant. Start fade in light before alarm goes off. Using the next alarm sensor from the Home Assistant Companion app for Android

Save the file fade_in_light_before_alarm.yaml in your \config\packages folder See more about packages here https://www.home-assistant.io/docs/configuration/packages/