I did that with https://myopenhab.org/.
All you have to do is make sure that the VoiceCommand item is available to your openHAB Cloud connection (in this case it should be with myopenhab.org), then you will need to connect your IFTT account with your myopenhab.org and Google account. After that you can create an IFTT Applet for every time a specific command is given to your Google Assistant, it should update the VoiceCommand Item of your openHAB.
@lucianopeixoto It is working, and very well! I made a quick demo video using the new action…
@wars, what is your objection to using myopenhab? It’s well supported, secure, and reliable. By “on prem” do you mean on the local network only? I thought Google Assistant needed a connection to the internet to work (I know Google Home does), which means you’re relying on the cloud, anyway…
Nice, @bartus! Nice system you have. I’ve been trying this integration today, and everything is working great. Now the IFTTT working around is no longer necessary at all, I had already started making the tutorial I’ve mentioned earlier but stopped as soon as I saw that new topic!
I have my scenes as numbers, but after your video I’ll create some switches like I believe you did. I’ve liked the idea of saying “Turn sleep mode on”.
Thank you @lucianopeixoto! I also made a quick how-to post/video recently, where I show the integration setup (which you seem to already have working, anyway :
As for the scenes, you’re absolutely right! I have switch items, one for each scene, and a rule assigned to each switch, e.g.:
rule "Lighting Scene Sleep"
Item Scene_Sleep received command ON
which fires only when the switch is toggled ON, handles the turning of individual lights off/dim, and then toggles the scene switch back OFF.