Google Calendar and Gmail
Connect a Google account as a Dominevo broker — OAuth client setup, Sign in, Calendar for rules, and Gmail as an email sender.
Dominevo can use a Google account for calendars (notification calendar-events and Administration → Calendars) and for sending email through Gmail. Each connected Google account is a broker under Connectivity — the same place as other message brokers — not a person signing in with Google.
To let people sign in to Dominevo with a Google account, use single sign-on instead.
What you get
| Capability | What it does |
|---|---|
| Calendar | Readable Google calendars appear as calendar sources for calendar-events rules. |
| Email (Gmail) | The hub can send notification mail through the Gmail API for that account. |
You can connect more than one Google account. Calendar ids are stamped with the broker so two accounts never collide. When several accounts can send mail, the From address picks the matching account; otherwise the first connected broker is used.
Set it up
1. Google Cloud Console
- Create or pick a Google Cloud project.
- Enable Google Calendar API and/or Gmail API for what you need.
- Under Google Auth Platform → Audience (or the OAuth consent screen),
choose External. Testing is fine for a personal hub. Add every
Google account that will Sign in as a Test user — otherwise Google
returns
403: access_denied. Publishing the app is optional for a private hub. - Create an OAuth client of type Web application.
- Add this authorized redirect URI (exact host, HTTPS):
https://<your-public-hub-origin>/addon/google-services/oauth/callbackUse the hub's Public endpoint from Network —
the address outside services use. Google rejects non-localhost http://
redirects; do not register only the LAN address.
2. Add the broker in Dominevo
- Open Administration → Connectivity → Message brokers.
- Select Google, then Add broker.
- Paste the Client ID and Client secret.
- Test connection checks the OAuth client with Google (not yet a signed-in account).
- Add broker — the admin UI opens Google Sign in in a popup. Approve the scopes (calendar read and/or Gmail send). If you cancel, use Sign in on the broker row later.
Optional on the broker form: a calendar id filter (comma-separated Google calendar ids; empty means all readable calendars), and a Gmail From address that must match the connected account or a verified alias.
3. Turn capabilities on
Under Connectivity, Calendars and Email list what the Google brokers offer. Use Enable there to turn a capability off without removing the broker.
Sign-in problems
| Symptom | What to try |
|---|---|
403: access_denied on Sign in | Add the Google account under Test users on the OAuth consent screen. |
| Sign in succeeds but the hub refuses the tokens | Google often omits a refresh token on a second consent. Revoke Dominevo under the Google account's security settings, then Sign in again from the broker row. |
| Redirect URI mismatch | The URI in Google Cloud must match the public hub origin exactly, including /addon/google-services/oauth/callback. |
| Popup closes with no connection | Allow popups for the admin UI, then use Sign in on the broker row. |
Auth at a glance
The hub keeps the Google refresh token in the encrypted keychain. Operators manage the connection from Connectivity, not from Identity share links. For how this fits next to Alexa and Home Assistant credentials, see Outside services.
Then
- Outside services — credential map.
- Calendar-events rules — notify from a calendar window.
- Secrets — where client secrets and tokens live.
- Network — Public endpoint for the redirect URI.