Skip to content

Connect Homey Pro

DomusVox shows what your Homey Pro knows: lights, window and door contacts, garage doors, shutters and temperatures. You can switch lights and move shutters from the hallway tablet. DomusVox talks to Homey only inside your home network, through Homey's local Web API. No Athom cloud account is involved in the connection.

The API key stays on the device that runs DomusVox (your NAS, say). The hallway tablet never sees it; it only talks to DomusVox.

1. Make an API key in Homey

  1. Open the Homey web app or the Homey app and go to Settings → API Keys.
  2. Create a new key, name it DomusVox.
  3. Allow only what DomusVox needs:
    • View devices and Control devices
    • View zones
  4. Copy the key. Homey shows it only once.

2. Find Homey's address

In the Homey app under Settings → General (or in your router's device list) you see Homey's IP address, for example 192.168.1.20. Give Homey a fixed address in your router, so it does not change.

Homey Self-Hosted Server (Homey in a Docker container) listens on port 4859. Add the port: 192.168.1.20:4859. If it runs on the same NAS as DomusVox:

  • Usually the NAS's own address with port 4859 works.
  • If not (for example with a macvlan network), run DomusVox with network_mode: host as well and use 127.0.0.1:4859, or add extra_hosts: ["host.docker.internal:host-gateway"] and use host.docker.internal:4859.

Do not use a public internet address: Homey and DomusVox sit side by side, and the key would travel over the internet every second. https:// works only when Homey's certificate matches the address, which a plain IP address never does.

3. Tell DomusVox

Open Workbench → Smart home, choose Add Homey, enter the address and the key, and press Connect. DomusVox tries the connection at once and says whether Homey accepted the key.

The address and the key are kept on the server in the data folder (/data/integrations/homey.json, readable only by DomusVox) and the key is never shown again. To change the address later, choose Change and leave the key empty to keep it. Without a data folder (no volume at /data) the connection lasts only until the container restarts.

Anyone who can open DomusVox in your home network can change this, until DomusVox has user accounts.

Or with environment variables

With Docker Compose (Install on a NAS), you can set Homey up in a file instead. Create a file homey.env next to docker-compose.yml:

HOMEY_ADDRESS=192.168.1.20
HOMEY_API_KEY=paste-the-key-here

Then uncomment the two env_file lines in docker-compose.yml and start again with docker compose up -d. The log says Homey: connecting to http://192.168.1.20. It never prints the key.

Without Docker: HOMEY_ADDRESS=192.168.1.20 HOMEY_API_KEY=... npx domusvox --host 0.0.0.0.

Environment variables win over the Workbench: Homey then shows as set up there, and can only be changed in the file.

Setting What it does
HOMEY_ADDRESS Homey's address in the home network (http:// is added if missing)
HOMEY_API_KEY The key from step 1
HOMEY_API_KEY_FILE Instead of the key itself: a file holding it (Docker secrets)
HOMEY_POLL_MS How often DomusVox reads the states, in milliseconds (default 1000)

4. Put the devices into rooms

Open Workbench → Smart home:

  1. Tick Show the smart home in “…” for the home that should show your devices (with several homes, only one does). Until you choose, it is the open home.
  2. Put … devices into the rooms with the same name takes the suggestions: a lamp in the Homey zone "Kitchen" goes into the room "Kitchen" or "Küche" (capitals, accents and the language do not matter; zones above it count too).
  3. Choose the room of every other device in its list, or leave it on Not shown.
  4. Under Sits on, choose what the device belongs to in the plan:
    • window, door and gate sensors: the window or door; the floor plan then draws it open, tilted or closed;
    • lamps: the light fitting you drew in openPlan3D (ceiling lamp, pendant, chandelier …); the glow of the light then starts there;
    • shutters: their window.

Devices that already have a room leave the list, so it shows what is still to do. Untick Only show devices without a room to see them all.

Which device sits where is saved with the home, so going back to an earlier version of the home brings the old assignment back too.

Contact sensors count as windows, unless the name says door or gate ("Front door", "Haustür", "Garagentor"). Homey devices of the class garage door are gates.

What DomusVox reads

Homey DomusVox
Class light, or a socket shown as light, with onoff Light, can be switched
alarm_contact Window, door or gate: open or closed
Class garage door, garagedoor_closed Gate: open or closed
Class window coverings with windowcoverings_set Shutter, can be moved
Sensor or thermostat with measure_temperature Temperature
Class camera Camera (the live picture comes later)

When Homey does not answer, every device shows as "not answering", never as a guessed state, and DomusVox keeps trying by itself.

Privacy and safety

  • DomusVox only talks to Homey and to the browsers in your home network. Do not forward its port on your internet router.
  • Anyone in your home network who can open DomusVox can switch the lights it shows, as with the Homey app on a shared tablet. User accounts come later.
  • Device and zone names go to the hallway tablet so it can show them. They are not stored by DomusVox and never leave your home network.