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