I could not reproduce the reported behavior given the following:
Home Assistant OS 0.115.0 on RPi3.
Using default_config which includes the sun integration.
Creating the automation via the UI.
Using a Sun Trigger at sunrise.
Resulting automation was saved without complaint. No errors or warnings in the log.
EDIT
Your configuration for the Sun integration is very different from what’s shown in the documentation:
Good catch. I’m deleting everything except sun: and I’ll try the update again. Not sure where those params came from but I’ve had them in there since at least 0.90.
Edit:
Nope. Same errors. Turns out I’m not alone - I see several others have reported this behavior In other posts. At this point it appears worthy of a PR.
Logger: homeassistant.config
Source: config.py:413
First occurred: 9:00:55 PM (3 occurrences)
Last logged: 9:00:56 PM
Invalid config for [automation]: Integration 'sun' does not provide trigger support. Got OrderedDict([('default_config', {}), ('config', {}), ('automation', [OrderedDict([('id', '1567839864112'), ('alias', 'Water on if hotter than 80'), ('trigger', [OrderedDict([('minutes', '/30'), ('platform', 'time_pattern')])]), ('condition', [OrderedDict([('above', '85'), ('condition', 'numeric_state'), ('entity_id', 'sensor.santa_rosa_temperature')]), OrderedDict([('after', 'sunrise'), ('before', 'sunset'), ('condition', 'sun')])]), ('action', [OrderedDict([('entity_id', 'switch.coop_water').... (See /config/configuration.yaml, line 2).
I suggest you try to identify why it fails on your system but doesn’t on mine (which is a vanilla installation of Home Assistant OS). Ideally you want to explain to the devs how to reproduce the error. Otherwise you may get a ‘cannot reproduce it’ response and the Issue is either left open until you can provide more data or simply closed because no progress can be made.
I’m trying to figure that out… that’s why I simplified everything and went to a totally basic config. Even creating a new automation from scratch throws the error and is not able to be saved.
I’m open to trying other things. I thought there was a different sun integration/platform out there. - I might try that next.
Yeah, but I’m stuck until this gets sorted. I just looked in my custom_components Dir and there was a /sun directory there dated back to early 2019. Not sure why as ‘sun’ is part of core. So I deleted that Dir and the files inside it and am trying the ug again.
EDIT: deleting that directory and files seemed to fix it. Holy crapola… what a time suck. I honestly have no idea where that dir $files came from. In the early days when I knew very little about home assistant, it’s possible I copies something from someone else. Interesting how this manifested itself.