6. Emkays together
The idea
One Emkay on one tablet is already useful. But a home soon has several: the kitchen tablet, the phone by the bed, the PC at work. And a browser can't do everything – it can't reach the IKEA hub on the network, and an old tablet can't run a large language model.
There are three ways for Emkays to be together. They answer three different questions, and they can be combined.
| My Emkay | Share with the house | Emkay Home thinks | |
|---|---|---|---|
| The question it answers | "Are my Emkays one assistant?" | "Can my Emkay use what the house has?" | "Can the house do the thinking?" |
| Whose devices | one person's | everybody's in the home | everybody's in the home |
| Who thinks | each Emkay | each Emkay | the house |
| What crosses | settings, skill data, which skills | a command and its answer | the text of what was said, the answer |
| Where they meet | a sealed storage (a private GitHub repo) | the LAN, device to device | the house, over HiveMind |
| Works away from home | yes | no – LAN only | no |
| Built from | ovos-PHAL-plugin-sync | ovos-PHAL-plugin-peers | HiveMind |
| In Emkay's menu | ⚙ → Connections → My Emkay | ⚙ → Connections → The house | Thinks → Emkay Home |
All three are set up from Emkay's own menu and are as easy as choosing a voice: scan a QR code, done. The rest of this chapter is about My Emkay; sharing with the house is chapter 8, and Emkay Home chapter 7.
My Emkay
![]()
The idea
You do three workouts with the exercise coach in the bedroom in the morning. At work you start a workout on the PC, and the coach says "that's number four today". You change the coach's music at work – the bedroom has it too.
Your Emkays are synced, not connected. They don't talk to each other; each one writes what it knows to a shared place, and reads what the others wrote, when it can. The work PC that can only sometimes get out is not a problem – it is exactly the case My Emkay is built for.
And they can be very different. An old tablet in the bedroom can't take what the work PC can, so skills are not copied between them. Your skills are kept in a library, and you choose which device gets which.
What is shared, and what isn't
| Shared | Kept to each device |
|---|---|
| the skills' settings (newest change wins) | microphone and speaker |
| language, location, units, formats | wake word and voices |
| your library of skills (never installed by itself) | the listener |
| what skills remember: events (a workout) and values | PHAL plugins' settings |
| orders from my.emkay.ai: install this on the bedroom one | anything you mark as local |
How it works
- You choose where the devices meet. The default is a private GitHub repository – free, works everywhere, also in a browser – and the page explains where the token comes from. (The plugin can also use WebDAV or a folder all devices reach.)
- Every device writes only its own file and reads the others'. Two devices never write the same file, so nothing needs locking.
- Everything is sealed with a secret only your devices know. The storage sees how many devices there are and when they write – nothing else.
- Nothing gets lost. Something that happened (a workout) is an event – added, never overwritten. Something you chose (a setting) is a value – the newest wins.
Adding a device
On the first Emkay: ⚙ → Connections → My Emkay → start sharing. Then Show the code – a QR code. Scan it with the next device. The code is the key to everything you share, so it is never shown as text, only as a QR code or a file you ask for.
my.emkay.ai
![]()
my.emkay.ai is one more member of your group – a page in your browser, with no account and no server of ours. Log in by scanning the code. There you see your devices, install and uninstall skills on each, keep your library, get skills from the store, and change the skills' settings. Install on the bedroom one is an order the bedroom Emkay carries out the next time it syncs (every minute, when it is on).
Emkay Blocks and Emkay Code use it too: a finished skill can be sent to a chosen Emkay through My Emkay (chapter 13).
For skills: the bus
A skill can use My Emkay without knowing anything about it. Without sync it simply remembers on the one device; when the device joins others, what it remembered comes along.
ovos.sync.event {"ns", "kind", "data"} -> {"id"} something happened
ovos.sync.events {"ns", "kind"?, "since"?} -> {"events": [...]}
ovos.sync.set {"ns", "key", "value"} -> {} remember a value
ovos.sync.get {"ns", "key"?} -> {"value"} or {"values": {...}}
ovos.sync.changed {"ns": [...], "settings": [...], "config": [...]} another device changed something
ns is the skill's own name, usually its skill id. The exercise coach counts
today's workouts across devices with ovos.sync.events.
Parts
| ovos-PHAL-plugin-sync | the plugin on each device, with the My devices page in the control panel | |
| my | my.emkay.ai | |
| ovos-skill-my-devices | "Sync with my other devices", "Which devices are you together with?" | |
| ovos-calendar-plugin-sync | your own calendars, schedules and lists on every device of yours |
The sync plugin is plain OVOS: nothing in it is Emkay's, and generic plugins (like the calendar) don't know about My Emkay – the sync-backed part is always a plugin of its own.