Get all devices, including the hidden ones
Get a specific device using the idx device property value.
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
Get all devices of a certain type.
Parameter | Description |
---|---|
filter | a supported device type |
orderBy | device property to use during order by |
filter
is an item ofdomoticz.deviceTypes.*
likedomoticz.deviceType.LIGHT
Get Domoticz Favorites Devices
Change state of a Light/Switch device.
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
command | A Domoticz device command On/Off/... case sensitive ! |
Toggle a Light/Switch device.
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
Rename the device
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
newName | New name of the device |
Change protection mode of the device. An administrator password is needed in a popup to switch a protected device.
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
state | true/false |
Update the temperature associated to the device (Termometers).
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
temperature | Numeric value of the temperature |
Update the temperature associated to the device (Termometers).
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
humidityPercent | Percent of humidity, ex: 45% |
humidityState | 0: Normal, 1: Confortable, 2: Dry, 3: Wet |
Update the temperature associated to the device (Termometers).
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
humidityPercent | Atmospheric Pressure |
humidityState | a deviceHumidityType |
Use a
domoticz.deviceHumidityTypes.*
(or if your device is a 'General' type, use one ofdomoticz.deviceHumidityGeneralTypes.*
instead.
This is a generic device update, used by update devices methods above. You can use this method if there's no specific method for an update.
Refer to the Domoticz API to find what to use as sValue
and nValue
.
Parameter | Description |
---|---|
idx | idx value of the device in Domoticz |
sValue | sValue param of API calls |
nValue | nValue param of API call (default:0) |