Room Remote

Extend Room Remote

A provider plugin connects a product such as Lutron Caséta or Roborock. A widget layout changes the contents of a dashboard card. An Action Pack runs commands and scenes for devices you already connected.

Set up Room Remote MCP

Build a provider plugin

Use room_remote_list_providers to find integrations already available on your server. Create a provider package when you want to connect an additional product or service.

  1. Give your assistant the provider id, package version, and standalone UTF-8 Python source of up to 24 KiB. The module must export ROOM_REMOTE_PLUGIN with the same provider ID. Use imports already available in the server image.
  2. Check the package with room_remote_validate_provider_package. It checks syntax and returns the source's SHA-256 without running the code. Review the complete source and approve that digest. room_remote_install_provider_package takes the same three fields plus approvedSHA256 to install the reviewed source. Provider code runs with Room Remote Server privileges, so use source you trust.
  3. Use room_remote_list_provider_packages to check that the revision is active. Then choose Plugins → Connect from a paired Room Remote connection. For the starter below, provide a device name and look for it in All Devices.

Room Remote loads provider revisions while the server is running. If an update fails to load, Room Remote uses the last working version. Use room_remote_set_provider_package_enabled to pause or resume a custom provider and room_remote_remove_provider_package with its id to uninstall it. Authorize built-in providers from Plugins.

Keep the reviewed Python source and package version separately from automatic server backups. Reinstall that source after restoring to a replacement server.

Starter provider

This example simulates one read-only temperature sensor. It works without vendor credentials or a device.

from ogar.device_settings import reading
from ogar.provider_plugins import PluginField, ProviderPlugin


class ExampleSensor:
    def __init__(self, config):
        self.name = config["name"]

    def validate_connection(self):
        return len(self.discover())

    def discover(self):
        return [{
            "id": "example-sensor:demo",
            "name": self.name,
            "kind": "sensor",
            "brand": "Example Sensor",
            "isReachable": True,
            "capabilities": {
                "power": False, "brightness": False,
                "color": False, "temperature": None,
            },
            "readings": [reading("temperature", "Temperature", 21, "°C")],
        }]


ROOM_REMOTE_PLUGIN = ProviderPlugin(
    id="example-sensor",
    name="Example Sensor",
    category="Sensors",
    connection="lan",
    fields=(PluginField("name", "Device name"),),
    factory=ExampleSensor,
    normalize=dict,
    description="Preview a sample device with a simulated reading.",
)

Connect a real product

Adapt the setup fields to your vendor’s API and use the secret field type for credentials. Have validate_connection() verify the real connection and return the number of devices. Return live Room Remote device records from discover() with stable IDs prefixed by your provider ID and a colon. Use finite network timeouts and keep credentials and raw vendor responses out of device records and errors.

Implement send or set_setting if your provider accepts commands or settings. Providers can also expose scenes() and activate(id). The server distribution’s PLUGINS.md documents these methods and credential storage.

Customize a dashboard widget

A widget layout package controls the contents of a widget. The same file works across compatible versions of Room Remote on iOS, macOS, and the web.

Download Tesla Energy example

  1. Save the package as a UTF-8 .json file up to 32 KiB. Set schemaVersion to 1, id to the provider ID, and version to the package release, such as 1.1.0.
  2. Use a provider:kind key under layouts, such as tesla:energy. Define small, medium, and large layouts, with each list arranged in display order.
  3. Give the JSON to Room Remote MCP and check it with room_remote_validate_widget_layout. Review the widget sizes and approve room_remote_install_widget_layout. You can also select the file under Plugins → Widget Layouts → Upload Widget Layout on a directly paired Mac.
component
Place a supported Room Remote control or display by ID. The Tesla sample uses energy-diagram, energy-flow, and energy-charge among others.
reading
Show a device reading by ID and optionally supply a different label.
setting
Place a device’s existing setting by ID. Choices, switches, and number controls appear when the device supports them and the setting needs no confirmation.
text
Show a short plain-text label or note.
group
Arrange child items in one to four columns.

Compatible iOS, macOS, and web clients pick up the new layout on refresh. Each install replaces the package for that provider, so keep all of its layouts in the same file. Use room_remote_list_widget_layouts to see installed packages and room_remote_remove_widget_layout with the packageID to restore the default widget contents. To restore an earlier custom version, install its JSON again.

Action Pack format

Save the manifest as a UTF-8 .json file of up to 32 KiB. Each server can store up to 32 Action Packs.

Download example Action Pack

version
Set this to the number 1.
id
A unique Action Pack ID on your server. Begin with a lowercase ASCII letter and use up to 32 lowercase ASCII letters, digits, or hyphens.
name
The pack name displayed in Room Remote, up to 80 characters.
description
Optional summary, up to 320 characters.
actions
An array of 1 to 16 actions. Each action has an id unique within this file, a name up to 80 characters, and an array of 1 to 16 steps. Action IDs follow the same format as the pack ID.

Replace every placeholder in the example with a stable device or scene ID from your server. Use room_remote_list_devices and room_remote_list_scenes to find those IDs. Set up Room Remote MCP

Action steps

Room Remote runs the steps in the order you list them. Each step sends one command to an existing device or acts on an existing scene.

Device command

{
  "type": "command",
  "deviceID": "replace-with-device-id",
  "command": {"type": "brightness", "value": 35}
}
power
true turns the device on. false turns it off.
brightness
A whole number from 1 to 100 percent.
temperature
A whole number from 1000 to 20000 kelvin, within the device’s supported white-temperature range.
color
An object with red, green, and blue channels, each a whole number from 0 to 255.

Choose commands supported by the target device. Devices that require direct control are excluded from Action Pack commands.

Scene

{
  "type": "scene",
  "sceneID": "replace-with-scene-id",
  "sceneAction": "activate"
}

Omitting sceneAction activates the scene. Room Remote scenes also support deactivate. Supported provider scenes include LIFX and Govee.

Install and run an Action Pack

Have Room Remote MCP check the manifest with room_remote_validate_action_pack. Review its actions and device or scene targets, then approve room_remote_install_action_pack. On a directly paired Mac, you can also select the file under Plugins → Action Packs → Upload Action Pack.

Installing saves the manifest on the server. The owner runs actions from Plugins → Action Packs on macOS, iOS, or the web. Household members with Plugins access can see the installed actions.

Use room_remote_list_action_packs to confirm the pack was installed and room_remote_remove_action_pack with the packageID to remove it.

Connect Codex or Claude Code to Room Remote

The Room Remote MCP process runs inside your Synology container over SSH. Use an SSH connection with permission to run Docker. Replace my-nas with your SSH alias and roomremote with the container name shown in Container Manager if it differs.

Use the Docker path on your NAS. The examples use /usr/local/bin/docker, which is useful when the SSH session does not find docker on its path.

Codex CLI

codex mcp add room-remote-plugins -- \
  ssh -T my-nas /usr/local/bin/docker exec -i roomremote python /app/mcp_server.py --plugins

Codex MCP setup

Claude Code

claude mcp add --transport stdio room-remote-plugins -- \
  ssh -T my-nas /usr/local/bin/docker exec -i roomremote python /app/mcp_server.py --plugins

Claude Code MCP setup

The MCP uses the server’s pairing credentials inside the container. If you have already registered room-remote-plugins, reconnect the MCP session after updating Room Remote Server to discover the updated tools.

Start with a workflow above. Ask your assistant to draft or inspect the file, validate it, and show you what it will install. Approve the installation when you have reviewed the provider source, widget layout, or action targets.