You could also create a template switch and expose that to google assistant with open close as the states. Better if you had a binary switch to know when open or closed
First you must connect your Google Home to your Home Assistant.
Find some step by step page (little complicated to write it here)
Then you’ll see all the switch from Home Assistant
on your Google Home App on your mobile device.
At this point you can make a new routine (on Google Home App)
The routine is someting like:
New routine
When I said “Open room door”
Then turn on that switch (and you choose the switch in Google Home APP)
Sorry, I was trying to reply to @botts. He said it was possible to have that behaviour by using a Template switch. I’d prefer that approach, since I have many devices like that.
I’m sorry… I don’t use Hassio for template.
I always prefer Node-Red cause yaml is too complicate for me.
I use yaml only when I’m forced for basic thinks.
Denis