domoticz-mcp
v1.4.0A Model Context Protocol (MCP) server for Domoticz home automation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_oauth_login Start Domoticz OAuth login
Start or reuse a bounded login in a local browser, then poll get_oauth_login_status.
get_oauth_login_status Get Domoticz OAuth login status
Check a browser login. Retry the original operation only after status is complete.
| Parameter | Type | Description |
|---|---|---|
flow_id * | string | Opaque flow identifier returned by start_oauth_login |
search_scripts_tool Search event scripts
Search string in scripts. Cross-ref: `domoticz://events`.
| Parameter | Type | Description |
|---|---|---|
query * | string | Case-insensitive script source search term |
limit | integer | Maximum number of results to return |
offset | integer | Zero-based result offset |
search_devices_tool Search devices
Search devices by name/status. Cross-ref: `domoticz://devices`.
| Parameter | Type | Description |
|---|---|---|
query * | string | Case-insensitive device name or data search term |
limit | integer | Maximum number of results to return |
offset | integer | Zero-based result offset |
get_daily_energy_history Get daily energy history
Read today's counter history. Preferred: `idx`. Set `include_instantaneous=False` for daily totals.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
include_instantaneous | boolean | Include instantaneous power samples |
name | Case-insensitive Domoticz entity name |
get_weekly_energy_history Get weekly energy history
Read the last 7 days of counter history. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
get_monthly_energy_history Get monthly energy history
Read this month's counter history. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
toggle_switch Toggle switch
Toggle device. Preferred: `idx`. Cross-ref: `set_switch_state`.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
set_switch_state Set switch state
Set 'On'/'Off'. Preferred: `idx`. Cross-ref: `toggle_switch`.
| Parameter | Type | Description |
|---|---|---|
state * | string | Desired switch state: On or Off (case-insensitive) |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
get_switch_actions Get switch actions
Get On Action and Off Action URLs or scripts for a switch. Preferred: `idx`. Cross-ref: `set_switch_actions`.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
set_switch_actions Set switch actions
Configure switch On Action and Off Action URLs or scripts. Preferred: `idx`. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Explicitly confirm this high-impact operation |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name | |
off_action | Off action URL or script:// path, or empty string to clear (omit or pass null to leave unchanged) | |
on_action | On action URL or script:// path, or empty string to clear (omit or pass null to leave unchanged) |
set_dimmer_level Set dimmer level
Set brightness (0-100). Preferred: `idx`. Cross-ref: `domoticz://device/{idx}`.
| Parameter | Type | Description |
|---|---|---|
level * | integer | Brightness percentage |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
set_temperature_setpoint Set temperature setpoint
Set target temp. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
setpoint * | number | Target temperature in degrees Celsius |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
control_blinds Control blinds
'Open'/'Close'/'Stop'. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
command * | string | Blind movement command: Open, Close, or Stop (case-insensitive) |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
switch_scene Switch scene
Activate scene. 'On'/'Off'/'Toggle'. Preferred: `idx`. Cross-ref: `domoticz://scenes`.
| Parameter | Type | Description |
|---|---|---|
command * | string | Scene or group command: On, Off, or Toggle (case-insensitive) |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
add_user_variable Add user variable
Add var. vtype: 0=Int, 1=Float, 2=Str, 3=Date, 4=Time. Cross-ref: `domoticz://user-variables`.
| Parameter | Type | Description |
|---|---|---|
name * | string | New user variable name |
value * | string | Initial user variable value |
vtype * | integer | Variable type: 0 integer, 1 float, 2 string, 3 date, 4 time |
update_user_variable Update user variable
Update var value. Cross-ref: `domoticz://user-variables`.
| Parameter | Type | Description |
|---|---|---|
name * | string | Existing user variable name |
value * | string | New user variable value |
vtype * | integer | Variable type: 0 integer, 1 float, 2 string, 3 date, 4 time |
delete_user_variable Delete user variable
Delete var. Preferred: `idx`. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Explicitly confirm this high-impact operation |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
create_event Create event script
Create script. Cross-ref: `domoticz://docs/dzvents_syntax`.
| Parameter | Type | Description |
|---|---|---|
event_type * | string | Domoticz event type |
interpreter * | string | Domoticz event interpreter |
name * | string | New event script name |
xmlstatement * | string | Event source or Blockly XML |
eventstatus | string | 1 to enable the event, 0 to disable it |
update_event Update event script
Update script. Cross-ref: `domoticz://event/{event_id}`. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
event_id * | integer | Canonical Domoticz event ID |
event_type * | string | Domoticz event type |
interpreter * | string | Domoticz event interpreter |
name * | string | Event script name |
xmlstatement * | string | Replacement event source or Blockly XML |
confirm | boolean | Explicitly confirm this high-impact operation |
eventstatus | string | 1 to enable the event, 0 to disable it |
call_domoticz_api Call raw Domoticz API
Raw API call. Use if dedicated tools fail. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
kwargs * | object | Additional Domoticz query parameters |
param * | string | Domoticz command parameter |
confirm | boolean | Explicitly confirm this high-impact operation |
restart_system Restart Domoticz
Reboot server. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Explicitly confirm this high-impact operation |
rename_device Rename device
Rename device. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
new_name * | string | New device name |
idx | Numeric Domoticz idx; preferred over name when known | |
old_name | Current device name, used when idx is omitted |
delete_device Hide device
Hide device. Preferred: `idx`. Requires `confirm=True`.
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Explicitly confirm this high-impact operation |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |
create_virtual_sensor Create virtual sensor
Create dummy. Cross-ref: `domoticz://hardware`.
| Parameter | Type | Description |
|---|---|---|
hw_idx * | integer | Hardware idx that owns the new sensor |
sensorname * | string | New virtual sensor name |
sensortype * | integer | Domoticz virtual sensor type number |
update_device_value Update device value
Manual update. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name | |
nvalue | integer | Numeric Domoticz device value |
svalue | string | String Domoticz device value |
add_log_message Add Domoticz log message
Log message. level: 1=Normal, 2=Status, 4=Error. Cross-ref: `domoticz://logs`.
| Parameter | Type | Description |
|---|---|---|
message * | string | Message to add to the Domoticz log |
level | integer | Log level: 1 normal, 2 status, 4 error |
send_notification Send notification
Send notification.
| Parameter | Type | Description |
|---|---|---|
body * | string | Notification body |
subject * | string | Notification subject |
set_security_status Set security status
Arm panel. 0=Disarm, 1=Home, 2=Away. Requires `confirm=True`. Cross-ref: `domoticz://security`.
| Parameter | Type | Description |
|---|---|---|
seccode * | string | Domoticz security panel code |
secstatus * | integer | Security state: 0 disarmed, 1 armed home, 2 armed away |
confirm | boolean | Explicitly confirm this high-impact operation |
set_color_brightness Set color and brightness
Set RGB. Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
brightness * | integer | Brightness percentage |
hue * | integer | Hue in degrees |
idx | Numeric Domoticz idx; preferred over name when known | |
iswhite | boolean | Use white-light mode instead of RGB mode |
name | Case-insensitive Domoticz entity name |
set_color_temperature Set color temperature
Set normalized white temperature (0-100). Preferred: `idx`.
| Parameter | Type | Description |
|---|---|---|
kelvin * | integer | Domoticz normalized white-temperature level |
idx | Numeric Domoticz idx; preferred over name when known | |
name | Case-insensitive Domoticz entity name |