From Google Home, I want to be able to flip a virtual switch in Home Assistant on or off like any other switch. I want Google Home to think it's an actual switch but instead it would invoke a script or automation in Home Assistant. I have a Nabu Casa account so I can expose entities to Google Home easily. The best solution I can seem to find is creating a script in Home Assistant and exposing that. It's really hard to find those in Google Home because they're considered scenes, not devices.
Google has done their best to bury scenes in recent versions of the Google Home automation editor. You can't add a scene when initially setting up the automation. Instead, you have to save the automation, then edit it to see the scenes as options. Super janky UX. Moreover, since it's activating a scene, it's a one way operation, i.e. you can't flip it on and off like a switch, and it has no observable state. Please let me know if there's a simple way to create a virtual switch in Home Assistant that looks like a device to Google Home, reports on and off states, and that can be set to both the on and off states.