Is this state valid?


If your sensor.month displays the value ‚Äúnovember,december‚ÄĚ then yes.
But if it‚Äôs ‚Äúnovember‚ÄĚ or ‚Äúdecember‚ÄĚ then no.

But a template could do it.

{{ states('sensor.month') in ["november", "december"] }}

1 Like

Thanks for the template. :slight_smile:

Or, of you want template-less, just add a OR-condition and add both states to it.

1 Like

now i got this in automations : template value should be a string for dictionary value @ data[‚Äėvalue_template‚Äô]. Got None


but it works when testing

hard to say when I can’t see the automation.

When pressing the test button

I get this message