If you do a state trigger on the entity sun.sun, it will trigger on any state change of the sun. But I think that includes attributes to, so it would trigger when the elevation changes too (e.g. Constantly).
It’s good to keep your automations simple and concise. But, someone chargin’ ya per line?
Ha! I’m just trying to learn. It’s still confusing to me, when you use a list, maps, etc. I’m still at the stage where it seems arbitrary. It’s like everyone knows a secret and I don’t
But what do you mean by list, maps etc? What are you trying to do? The best way to learn is first think of what you want to do, then search the forum and/or ask. There’s lots of us that are willing to help.
The sun trigger documentation clearly lists the possible values.
However, I agree there are plenty of undocumented or unclear things. My only advice is that if you learn of such things that are muss in the documentation, update them on github.
It’s definitely not random lol. And yes, I understand, there’s a steep learning curve since EVERYTHING needs to be configured.
The best place to start is to read the documentation.
Next, add some components from the components page
Once you have a few configured, try a simple automation like at a certain time, trigger a light on. Here’s an example:
Finally, when you are stuck, just ask a specific question. Hope that helps. Sorry, there’s no magical way of getting everything to work without a lot of elbow grease.
I have a pretty complete setup already… ~45 z-wave devices, ~10 or so automations, etc. It’s all working so far. I’ve had SmartThings since they exited Kickstarter back in 2013 and wanted to move over to HA. So started that about a month ago.
Since you’ve been so kind as to reply… how do I know when I need to do a list (items denoted with a “-”) or not (which I belive is just a map/dict)? I’ve read the docs over and over… and some places one is used, some places the other…
That may be, but I wasn’t expecting that the “official” documentation of what all options are for a platform would be in a comment in an example code snippet…
@ha_steve
I’m not 100% sure on that myself. You’re right it is sometimes inconsistent. Probably due to multiple contributors or some components not being updated in awhile.