Am I setting this Automation Condition correctly?

I’ve set up a Toggle (via Lovelace) for vacation mode.
Then a pre-existing&functioning automation (for device “Night Music”) was augmented to respect this toggle, by adding an “And” condition to check the Toggle’s state.
It’s looks really good, except for the very minor issue of the automation no longer working.

Something must be wrong, but I’m uncertain what.

I appreciate any help.
Thanks.

Probably the problem is that booleans are on or off not false

That is very confusing.
I don’t understand why it’s like that.
Especially since when you template to a boolean response {{ something == 5 }} you get true/false.

Because you’re confusing state with logic :wink:

The entity has two states - on and off (just like switches, binary sensors, and more). The result of a logical comparison is either True or False.

For a real world comparison, you ask if there’s milk in the fridge. The response will be yes (true) or false (no) regardless of the quantity (state).

The way I see it is that Boolean is always true/false.
A switch can be on/off.

Had it been called input.switch or input.toggle then it would have made sense to have on/off.
But Boolean is true/false 1/0.
On/off is a textual representation of true/false in my opinion.

But I guess I will get used to it.

Yup, that appears to have got it working.
Thanks.