Is this state valid?

image

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