I try to make a variable executing of a service based on a voice command part.
i checked the conversion with two notify commands and my command is translaten from
when i say: zet avond op aan
slotwword on is translated to on
But my input.boolean.turn_on, does not turn on!
Anyone a suggestion?
The problem is due to the presence of the double-quotes. They are being included in the final result thereby producing an invalid service call (check the Log, there should be an error message).
The template is on a separate line from the service: option and you are using the >- line-continuation characters so there’s no need to wrap the template in quotes. Remove the double-quotes.
Here’s a version that uses a variable with an Immediate If.
Ok, and can you use statements and comments in for example an automation?
Then i am done with keepon questioning
Newbie with HASS, and eager to make great scripts. just used your variable solution in my action, and much more readable!