domoticz-mcp

v1.4.0
domoticz-mcp Checked 4 hours ago Published 2 months ago

A 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.

ParameterTypeDescription
flow_id *stringOpaque flow identifier returned by start_oauth_login

search_scripts_tool Search event scripts

Search string in scripts. Cross-ref: `domoticz://events`.

ParameterTypeDescription
query *stringCase-insensitive script source search term
limitintegerMaximum number of results to return
offsetintegerZero-based result offset

search_devices_tool Search devices

Search devices by name/status. Cross-ref: `domoticz://devices`.

ParameterTypeDescription
query *stringCase-insensitive device name or data search term
limitintegerMaximum number of results to return
offsetintegerZero-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.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
include_instantaneousbooleanInclude instantaneous power samples
nameCase-insensitive Domoticz entity name

get_weekly_energy_history Get weekly energy history

Read the last 7 days of counter history. Preferred: `idx`.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

get_monthly_energy_history Get monthly energy history

Read this month's counter history. Preferred: `idx`.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

toggle_switch Toggle switch

Toggle device. Preferred: `idx`. Cross-ref: `set_switch_state`.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

set_switch_state Set switch state

Set 'On'/'Off'. Preferred: `idx`. Cross-ref: `toggle_switch`.

ParameterTypeDescription
state *stringDesired switch state: On or Off (case-insensitive)
idxNumeric Domoticz idx; preferred over name when known
nameCase-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`.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
nameCase-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`.

ParameterTypeDescription
confirmbooleanExplicitly confirm this high-impact operation
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name
off_actionOff action URL or script:// path, or empty string to clear (omit or pass null to leave unchanged)
on_actionOn 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}`.

ParameterTypeDescription
level *integerBrightness percentage
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

set_temperature_setpoint Set temperature setpoint

Set target temp. Preferred: `idx`.

ParameterTypeDescription
setpoint *numberTarget temperature in degrees Celsius
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

control_blinds Control blinds

'Open'/'Close'/'Stop'. Preferred: `idx`.

ParameterTypeDescription
command *stringBlind movement command: Open, Close, or Stop (case-insensitive)
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

switch_scene Switch scene

Activate scene. 'On'/'Off'/'Toggle'. Preferred: `idx`. Cross-ref: `domoticz://scenes`.

ParameterTypeDescription
command *stringScene or group command: On, Off, or Toggle (case-insensitive)
idxNumeric Domoticz idx; preferred over name when known
nameCase-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`.

ParameterTypeDescription
name *stringNew user variable name
value *stringInitial user variable value
vtype *integerVariable 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`.

ParameterTypeDescription
name *stringExisting user variable name
value *stringNew user variable value
vtype *integerVariable type: 0 integer, 1 float, 2 string, 3 date, 4 time

delete_user_variable Delete user variable

Delete var. Preferred: `idx`. Requires `confirm=True`.

ParameterTypeDescription
confirmbooleanExplicitly confirm this high-impact operation
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

create_event Create event script

Create script. Cross-ref: `domoticz://docs/dzvents_syntax`.

ParameterTypeDescription
event_type *stringDomoticz event type
interpreter *stringDomoticz event interpreter
name *stringNew event script name
xmlstatement *stringEvent source or Blockly XML
eventstatusstring1 to enable the event, 0 to disable it

update_event Update event script

Update script. Cross-ref: `domoticz://event/{event_id}`. Requires `confirm=True`.

ParameterTypeDescription
event_id *integerCanonical Domoticz event ID
event_type *stringDomoticz event type
interpreter *stringDomoticz event interpreter
name *stringEvent script name
xmlstatement *stringReplacement event source or Blockly XML
confirmbooleanExplicitly confirm this high-impact operation
eventstatusstring1 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`.

ParameterTypeDescription
kwargs *objectAdditional Domoticz query parameters
param *stringDomoticz command parameter
confirmbooleanExplicitly confirm this high-impact operation

restart_system Restart Domoticz

Reboot server. Requires `confirm=True`.

ParameterTypeDescription
confirmbooleanExplicitly confirm this high-impact operation

rename_device Rename device

Rename device. Preferred: `idx`.

ParameterTypeDescription
new_name *stringNew device name
idxNumeric Domoticz idx; preferred over name when known
old_nameCurrent device name, used when idx is omitted

delete_device Hide device

Hide device. Preferred: `idx`. Requires `confirm=True`.

ParameterTypeDescription
confirmbooleanExplicitly confirm this high-impact operation
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name

create_virtual_sensor Create virtual sensor

Create dummy. Cross-ref: `domoticz://hardware`.

ParameterTypeDescription
hw_idx *integerHardware idx that owns the new sensor
sensorname *stringNew virtual sensor name
sensortype *integerDomoticz virtual sensor type number

update_device_value Update device value

Manual update. Preferred: `idx`.

ParameterTypeDescription
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name
nvalueintegerNumeric Domoticz device value
svaluestringString Domoticz device value

add_log_message Add Domoticz log message

Log message. level: 1=Normal, 2=Status, 4=Error. Cross-ref: `domoticz://logs`.

ParameterTypeDescription
message *stringMessage to add to the Domoticz log
levelintegerLog level: 1 normal, 2 status, 4 error

send_notification Send notification

Send notification.

ParameterTypeDescription
body *stringNotification body
subject *stringNotification subject

set_security_status Set security status

Arm panel. 0=Disarm, 1=Home, 2=Away. Requires `confirm=True`. Cross-ref: `domoticz://security`.

ParameterTypeDescription
seccode *stringDomoticz security panel code
secstatus *integerSecurity state: 0 disarmed, 1 armed home, 2 armed away
confirmbooleanExplicitly confirm this high-impact operation

set_color_brightness Set color and brightness

Set RGB. Preferred: `idx`.

ParameterTypeDescription
brightness *integerBrightness percentage
hue *integerHue in degrees
idxNumeric Domoticz idx; preferred over name when known
iswhitebooleanUse white-light mode instead of RGB mode
nameCase-insensitive Domoticz entity name

set_color_temperature Set color temperature

Set normalized white temperature (0-100). Preferred: `idx`.

ParameterTypeDescription
kelvin *integerDomoticz normalized white-temperature level
idxNumeric Domoticz idx; preferred over name when known
nameCase-insensitive Domoticz entity name