Hello everyone. I am a complete beginner both in IT generally and openHAB in particular, so apologies in advance. I am trying to install openhab-google-assistant so my speakers etc work with OpenHAB. I am thoroughly stuck on the section from here :
Setup your Database
- SSH into to your openHAB Cloud instance
- Open the MongoDB client
mongo
and enter these commands
From some googling I found that SSHing into the openHAB Cloud instance is not possible, and the help topic I found suggested running your own instance using OpenHAB Cloud, which I have downloaded and have running, but perhaps I have to do something else? The help topic I found is Google Assistant setup help
I have no idea what to do with the MongoDB line though. I installed âMongoDB Compassâ from their website, and the MongoDB Persistence from OpenHAB addons, but in neither can I see anywhere to add the lines of code it says to add:
use openhab
db.oauth2clients.insert({ clientId: "<CLIENT-ID>", clientSecret: "<CLIENT SECRET>"})
db.oauth2scopes.insert({ name: "any"})
db.oauth2scopes.insert( { name : "google-assistant", description: "Access to openHAB Cloud specific API for Actions on Google Assistant", } )
I have tried using the windows command line, but âmongoâ, âmongoshâ, âmongodbâ have this error message,
ââmongoshâ is not recognized as an internal or external command, operable program or batch file.â
even when I am in the correct directory and have added it to âpathâ.
Iâm out of ideas and have been stuck on this for a few days now - I suspect Iâm missing or misunderstanding something basic. Can anyone help at all please?
I am using Windows 11 Desktop, and openHAB 4.2.2 on the UI version. Other help topics I have found either donât have answers or seem (to my beginner eyes!) to be about separate problems. Sorry, it wonât let me add more than two links. Thank you everyone in advance!