I use a lot of copy and paste to build my automations and I’ve run across across what looks like two different ways to do the same thing but I wanted to know for sure. Is there any difference between the two statements below? Also I travel for work and I noticed that the sun integration says it will use my current location to perform automations. How can I prevent that so that my lights at home that use sun integration will come on during sunset in my home city and not my current traveling city?
condition:
condition: state
entity_id: sun.sun
state: 'below_horizon'
condition:
- condition: sun
after: sunset