#Condition based on only calendar event in entity

1 messages · Page 1 of 1 (latest)

blazing rock
#

It's that time of year again. I want to trigger some automations based on whether or not "ChristmasSeason" is true.
I have this condition:
condition: state entity_id: calendar.timesofyear attribute: message state: ChristmasSeason

Referencing "TimesOfYear" which has a single entry from 14th Dec to 7th Jan. It always passes, and I have no events in the calendar entity. If I add an entry that takes up the entire rest of the year, it fails (good!). If I add an entity that only goes from 7 Jan to 31 Jan, it goes back to passing.

Why does it test as passed for an event that doesn't happen for another two weeks?

runic kraken
#

if you turn on advanced mode you'll have developer tools that are really useful for this - but basically the way calendar entities work is that their message attribute is "next or current event" - their state on if the message is a current event, off if not.