Homekit automation not working with month specification

I have written automations to turn on a light at a specific time (e.g. 7 PM or Sunset) only during Dec and Jan. The problem is the only way it works is if I program to turn on the light if today's date is not all of the other 10 months it true (or any of the other 10 months is false) which in both cases requires specifying 10 conditions). It does not work if I program to turn on the light if today's date is any of Dec and Jan is true (which requires specifying only 2 conditions). It should work either way, right?


Here's how it is programmed: the working automation time specification is sunset (or a specific hour) and then a shortcut within the automation is used to format the date MMM followed by an if statement with 10 formatted date conditions to check it is not Feb...Nov. If all the conditions are true it turns on the light.


It doesn't work with any number of month conditions I don't want the light on. It doesn't work if I check if it is Jan and Dec instead.


Bug?


I'm using Apple TV 1st gen as hub, iphone SE 2nd gen, all latest iOS, to control Kasa Homekit compatible plugs.

Apple TV 4K, tvOS 18

Posted on Feb 3, 2025 07:22 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Homekit automation not working with month specification

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.