Cloud2Cloud server to send actions to your MQTT server.
In the Google Actions Console configure the following:
- Fullfillment URL: https://exmaple.com/smarthome/fulfillment
- OAuth2 client id
- OAuth2 client secret
- Authorization URL: https://exmaple.com/oauth/authorize
- Token URL: https://exmaple.com/oauth/token
Create a config.yaml
or override the location with the environment variableCONFIG_FILE
. Config the client id and secret in the config file or environment variables.
Create a devices.json
with all the devices. This will be return when Google is trying to sync.
Create username and password credentials to login on the server: How to Create credentials.
go run .