I tried the two switches in separate lines, with and without a leading hyphen, straight after the %} and even with and without a hyphen as part of the line entity_id: > => entity_id: >- So far nothing does the trick.
Any ideas?
I know I could probably use a group as a workaround, but I’m trying to understand how it would work directly in the template - or at least why it doesn’t.
Have you already considered the (brand new) Light Switch compopnent?
The idea would be to “convert” existing switches into virtual lights and then you would only use the light.turn_on command rather than homeassistant.turn_on.
Thanks for the hint @mastermarkush, due to a number of components not working properly in later versions my live install is a little behind - on V0.75.3 to be exact.
So I guess, a group it is.