roomtalk-for-crestron

v1.23.1
roomtalk-for-crestron Checked 1 day ago Published 2 days ago

RoomTalk for Crestron (formerly MCP for Crestron): talk to a Crestron 4-Series AV system through Claude in natural language.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

discover_crestron_system Discover the Crestron system

Discover the Crestron system. Returns the operating guidance you should follow for the whole session, plus the rooms, categories, and device counts. Call this first, before controlling anything.

list_crestron_rooms List rooms

List all rooms in the building with their device counts.

list_crestron_devices List devices

List controllable devices, optionally filtered by room and/or category (Lighting, AV, HVAC, Shades). With no room given, a current room (set_crestron_room) filters the list to that room; pass room "all" for every room.

ParameterTypeDescription
categorystringOptional category to filter by (Lighting, AV, HVAC, Shades).
roomstringOptional room name or id to filter by; "all" lists every room even when a current room is set.

set_crestron_room Set the current room

Set the current room, so requests that name no room apply to it ("lights to 50%" means this room's lights), and lists and room status default to it. Use it when the user says they are in, or want to work in, a room. An empty room or "none" clears it. The current room only changes which room is assumed; a request that names another room still goes there.

ParameterTypeDescription
room *stringRoom name or id, as listed by list_crestron_rooms; "" or "none" clears it.

query_crestron_device Read a device

Get the live state of a device: its current value plus whether it is idle, ramping (with target and completes_at), or pulsing (releases_at), and any pending scheduled action (with fires_at). Time fields are epoch milliseconds (matching get_crestron_time); remaining_ms / in_ms tell you directly how long until it finishes/fires, so you can decide how long to wait without polling a clock. One read tells you idle vs in-flight vs scheduled.

ParameterTypeDescription
device_id *stringUnique device identifier (e.g. "conf_rm_a_lights_on").

get_crestron_time Get the processor time

Get the processor's current time as epoch milliseconds (epoch_ms) and ISO 8601 (iso). Use it to correlate the absolute *_at timestamps from query_crestron_device, or whenever you need the system's real time (no need to decode a wired clock).

get_crestron_processor_info Get processor info

Describe the processor itself: model, firmware, hostname, IP address, MAC, the running program (slot, name, program comments), uptime, the processor's clock, time zone and location, the RoomTalk modules version, and how many devices, rooms and schedules it holds. Use it for questions about the system rather than a device, and to explain sunrise/sunset times (a location_warning means the location was never set).

get_crestron_activity Read the activity log

Read the processor's activity log, newest last. It has two kinds of entry: actions (what someone asked RoomTalk to do: the source such as Ask, an MCP app, a schedule or a preset button, and the result) and changes (what actually moved: a device going from one value to another, and for a level how long it took). A change by "person" or "auto" followed a RoomTalk request; by "system" means RoomTalk didn't ask for it (a panel, keypad, sensor or the program itself), so say that rather than guessing who. Use it for questions like "when did the lights go off last night?" or "who turned the projector…

ParameterTypeDescription
devicestringPart of a device name or id
kindstringDefault both
limitintegerMost entries to return (default 50)
roomstringRoom name; "all" for every room
since_minutesintegerHow far back (default 1440, a day)
sourcestringWho caused it, e.g. "Ask", "Schedule", "system"

control_crestron_device Control a device

Set a device's value. Optionally schedule it to run after a delay (delay_ms), e.g. "turn the porch light on in 30 seconds". The result confirms the outcome: a "status" summary (e.g. "now 50000", "moving toward 32768, now 12000" for a shade or other positioner still travelling, "feedback still X and not moving", or "scheduled to set ... in ~30s") plus the full "confirmed" state, so you can see what actually happened without a separate query. A moving device has not failed: let it settle, then read it again if you need its final position, and do not press its other buttons meanwhile. For a digit…

ParameterTypeDescription
device_id *stringUnique device identifier (e.g. "conf_rm_a_lights_on").
value *stringNew value - analog "0"-"65535" or serial text. Digital devices are momentary: use pulse_crestron_device (a digital "1" sent here is pulsed, not held).
delay_msintegerOptional delay in milliseconds before the set runs on the processor (0 / omit = immediate).

set_crestron_devices Set several devices (scene)

Apply a scene/macro: set many devices in one call. Each entry can optionally fade (duration_ms, analog only - the device ramps to value instead of snapping) and/or start after a wait (delay_ms). Use for "movie night" (fade lights down over 2s + lower screen + projector on) or staged sequences. Values follow control_crestron_device rules (analog levels, serial text, or a digital button which is pulsed not held) and may contain colons and commas. To turn audio off in a scene, use the MUTE, never set or ramp an audio level to 0 to silence it (the level is a remembered setting). Each result entry…

ParameterTypeDescription
assignments *arrayThe devices to set, each {device_id, value, duration_ms?, delay_ms?}.

pulse_crestron_device Press a button

Momentarily pulse a DIGITAL device: drive it on for pulse_ms, then back off - a simulated button press. Use for momentary triggers like "press the doorbell", "tap the projector power button", "trigger the gate". Optionally wait delay_ms before the pulse. Digital devices only; analog and serial devices are rejected (use control_crestron_device / ramp_crestron_device). The result includes a "status" (e.g. "pulsing, releases in ~500ms") plus "confirmed" state. Digital outputs are momentary, so pulsing is how you change a digital device (a mute or power toggle, a source-select button); for a toggl…

ParameterTypeDescription
device_id *stringUnique digital device identifier (e.g. "lounge_d3").
pulse_ms *integerHow long to hold it on, in milliseconds (e.g. 500).
delay_msintegerOptional delay in milliseconds before the pulse starts (0 / omit = immediate).

cancel_crestron_device Cancel a pending action

Stop/cancel activity on a device: stop a ramp (fade) in progress and leave the level where it is, release a pulse in progress to off, and clear any pending delayed action (a scheduled set or pulse). Does not otherwise change the device's value - an analog level it is resting at stays put. Use for "stop the fade", "stop ringing the bell", "cancel that timer". Works on any device type.

ParameterTypeDescription
device_id *stringUnique device identifier (e.g. "lounge_a3").

ramp_crestron_device Fade a level

Smoothly ramp (fade) an ANALOG device to a value over a duration. Use for requests like "fade the lounge lights to 50% over 3 seconds". Optionally start the fade after delay_ms ("fade down in 30 seconds, over 2 seconds"). Analog devices only; digital and serial devices don't ramp - use control_crestron_device for those (and for an instant analog set). If a device's name/description gives a fade time, that is the time for a FULL 0-to-100% sweep, so scale duration_ms to the size of the move (see duration_ms). The result includes a "status" like "fading to 50000, ~3s left" plus "confirmed" state.

ParameterTypeDescription
device_id *stringUnique device identifier (e.g. "lounge_a1").
duration_ms *integerActual ramp time in ms for THIS move. If the device's name/description gives a fade time, that is the time for a full 0-to-100% sweep, so scale it by how far you are moving: read the current level fir…
value *stringTarget analog value "0"-"65535".
delay_msintegerOptional delay in ms before the fade starts (0 / omit = immediate).

get_room_status Get room status

Get the status of every device in a room (the current room if none is given).

ParameterTypeDescription
room_namestringRoom name or id (e.g. "Conference Room A" or "conf_rm_a"); omit to use the current room.

schedule_crestron_event Add a schedule

Create (or replace) a schedule that runs on the processor itself, even when no chat is open: once at a date and time, every day, on chosen weekdays, or at sunrise or sunset with an offset in minutes (negative = before, e.g. -20 is 20 minutes before sunset). Times are the processor's local 24-hour time; call get_crestron_time if you need today's date for a one-off. Actions work like a scene: set a value, fade with duration_ms (analog), press a digital button with pulse_ms, or recall a saved preset with preset. Turn "all the shades" into one action per shade from the room's devices. The result i…

ParameterTypeDescription
actions *arrayWhat it does, in order.
name *stringShort description in the user's words, e.g. "Close lounge shades at sunset".
when *objectWhen it runs.
idstringExisting schedule id to replace; omit to create a new one.

list_crestron_schedules List schedules

List the schedules stored on the processor: what each does, when it runs, its next_run, and its last run and result. Also reports the processor's time, location and today's sunrise and sunset. A one-off that came due while the processor was off is listed as disabled with a missed result; it did not run.

remove_crestron_schedule Remove a schedule

Delete a schedule from the processor by its id (from list_crestron_schedules).

ParameterTypeDescription
id *stringSchedule id, e.g. "s3".

enable_crestron_schedule Pause or resume a schedule

Pause or resume a schedule without deleting it (enabled false pauses, true resumes). The result shows its next_run when resumed.

ParameterTypeDescription
enabled *booleantrue to resume, false to pause.
id *stringSchedule id.

save_crestron_preset Save a preset

Save (or replace) an owner preset on the processor: a named set of device levels the user can recall later from any chat, e.g. "Reading" with the lamp at 60% and the downlights at 75%. Build the entries from the room's devices as you would a scene (analog levels 0-65535, serial text, or a digital press with pulse_ms), giving each device the fade time its name or description asks for (duration_ms), also when re-saving. Saving under an existing name or id in the same room replaces that preset. A preset belongs to one room, so each room can have its own preset of the same name: by default the roo…

ParameterTypeDescription
entries *arrayThe devices and the level each is set to.
name *stringThe preset name in the user's words, e.g. "Reading" (no ":").
idstringExisting preset id to replace; omit to create, or replace by name.
roomstringThe room it belongs to; omit for its devices' room; "site" for all rooms.

list_crestron_presets List presets

List the owner presets saved on the processor, for one room or all, each with its devices and levels and whether it is active now (active is null when it can't be told, for example a preset of button presses), its room (or all_rooms), and on_button for presets a programmed button recalls by name; unassigned_buttons lists buttons (name and room) with no preset yet. A room's list includes the all-rooms presets. These are the owner's presets; presets the integrator built into the program appear as devices (buttons) in the room instead. With no room given, a current room filters the list; pass roo…

ParameterTypeDescription
roomstringRoom name to filter by; "all" for every room.

recall_crestron_preset Recall a preset

Recall an owner preset saved on the processor, by name or id: sets every device in it in one go. By name it uses one scope and never falls back: that room's preset (the current room unless you pass room), room "site" for the all-rooms preset, or room "all" for every preset of that name (clashes lists devices they set differently). If it isn't in that scope the error says where it is; ask the user which they mean. fade_ms fades the analog levels that don't have a fade of their own. For a preset the integrator built into the program (a button), press the button with pulse_crestron_device instead…

ParameterTypeDescription
preset *stringPreset name or id, from list_crestron_presets.
fade_msintegerOptional fade time for analog levels.
roomstringWhich room's preset; omit for the current room, "site" for the all-rooms one, "all" to run it in every room.

remove_crestron_preset Remove a preset

Delete an owner preset from the processor by name or id. If it is on_button, check with the user first, since the button stops working. If schedules recall it, the result lists them (used_by); tell the user and offer to change or remove those schedules, since they will report the preset missing when they next run.

ParameterTypeDescription
preset *stringPreset name or id.
roomstringWhich room's preset; omit for the current room, "site" for the all-rooms one.

activate_crestron_license Activate a licence

Activate (license) the Crestron processor with a license key the user provides. Use this when a command fails because the processor isn't licensed: the error explains how, and shows the processor's activation code (MAC). Ask the user for the license key issued for that code, then call this with it. Activation is one-time - the key is stored on the processor, so it stays licensed for every client and across reboots. The key is not a secret (it only works on this one processor), so it's fine to receive it in chat.

ParameterTypeDescription
license_key *stringThe license key the user obtained for this processor.

get_crestron_license_status Get licence status

Check the processor's license/trial state: whether it's licensed right now, whether that's a time-limited free trial (time_limited), how much trial time remains (remaining_human / remaining_ms), the processor MAC, and a buy_url. Call it to orient at the start of a session and whenever license status is relevant. If it's a trial, mention the remaining time naturally; as it gets low (under ~2 days) gently offer to start another free trial or buy a license. Nudge, don't nag.

start_crestron_trial Start a free trial

Start a free 7-day trial on this processor - no payment, no card, nothing for the user to paste. It contacts Solution AV's licensing server, which mints a signed trial bound to the processor's MAC and counts it there (this enforces the per-processor limit); the only data sent is the MAC, and the signed trial is then stored on the processor. If asked, describe it accurately (issued and counted online by the licensing server, then stored on the box) and do not claim nothing happens online. Use it when the processor is unlicensed, or when a trial has lapsed and the user wants to keep going. Each…