Help with setting Month name as variable and comparing to 'Now' and month
I would like to bypass the missing weather API key problem (I could not find a single working one). I would need to see the sunset time to cover the below scenario:
1. Entry door opens
2. Zipato checks if current time is 30 minutes before sunset
3. Light is turned on in the entry area
I was thinking that on a monthly basis I can get the average sunset times and use that as a period start to switch on the lamp (defined for all 12 months individually as part of a multi If statement). However when I was trying to indicate the month, the rule was invalid (I'm not sure if it should be string, number, which string format? Could not find anything on this...). Has somebody tried this, or could there be an alternate solution? With API this appears to be a simple one, without it I'm not sure...