Create virtual sensor
create_virtual_sensorCreate a virtual sensor in Domoticz by providing hardware index, sensor name, and sensor type. Use it to add custom sensors for monitoring and controlling smart home devices.
Instructions
Create dummy. Cross-ref: domoticz://hardware.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hw_idx": "<hw_idx>",
"sensorname": "<sensorname>",
"sensortype": "<sensortype>"
},
"name": "create_virtual_sensor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hw_idx | Yes | Hardware idx that owns the new sensor | |
| sensorname | Yes | New virtual sensor name | |
| sensortype | Yes | Domoticz virtual sensor type number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional Domoticz response title | |
| status | Yes | Status returned by Domoticz, normally OK |