Home assistant Sun card is available by default on HACS directory. More info here. Note: If Custom: Sun card doesn't appear you will have to reload cleaning the cache. You just need to add a new card ...