Toggle device ON/OFF
Remotely toggle a device on or off. For SmartSwitch devices, all gangs will be turned ON or OFF.
path Parameters
systemIdToggle device ON/OFF › Request Body
deviceIdUnique identifier of the device to be toggled
onStatusDesired power state. Use ON to turn the device on (all gangs for SmartSwitch), or OFF to turn it off (all gangs for SmartSwitch).
Toggle device ON/OFF › Responses
Device toggled successfully
_idPrimary ID of the Device
deviceTypeType of device (discriminator field)
macIdMAC ID of the Device (from IoT device)
deviceNameName of the Device
deviceNumberUnique device number for identification
onStatusStatus of the Device (ON / OFF / INACTIVE / ERROR)
locationPhysical location or address where the device is installed
remarksRemarks for the Device
batchNumberManufacturing batch number for tracking production groups
chipModelHardware chip model identifier used in the device
versionNumberFirmware version number currently running on the device
ssidNetwork SSID (Wi-Fi name) that the device is connected to
tenantTenant ID reference
Tagged Zone
roomRoom ID reference
systemSystem ID reference
createdAtDate Time of the Creation
updatedAtDate Time of the Update
lastSeenLast time the device was seen/reported
isLockedWhether the device is locked. When locked, the device on/off status cannot be toggled.
totalEnergyUsageTotal cumulative energy usage in kWh
totalEnergySavedTotal energy saved through optimization in kWh
autoUpdateAttemptsNumber of auto-update OTA attempts sent to this device
autoUpdateBlacklistedWhether device is blacklisted from auto-updates (max retries exceeded)
manualUpdateBlacklistWhether device is manually blacklisted from auto-updates by admin
inactivityNotificationEnabledWhether inactivity notifications are enabled for this device
deviceModelModel name or identifier of the device
deviceBrandBrand or manufacturer of the device
isSpareWhether the device is a spare/inventory device. Spare devices can be filtered out of user-facing dashboards.
Schedule configuration for the device. Contains recurring weekly schedules and one-time scheduled tasks.
realTimePowerReal-time power consumption in watts
realTimeCurrentReal-time current in amperes
lastAutoUpdateAttemptTimestamp of last auto-update OTA attempt
inactivityNotificationSentAtTimestamp when the last inactivity notification was sent for this device
Bulk toggle multiple devices ON/OFF
Remotely toggle multiple devices (plugs, MCBs, smart switches, aircon controls, water meters) on or off simultaneously. All devices receive the same power state. For SmartSwitch devices, all gangs will be turned ON or OFF. Devices that are locked or encounter errors during toggling will be silently skipped. Requires SUPERADMIN or ADMIN role.
path Parameters
systemIdBulk toggle multiple devices ON/OFF › Request Body
deviceIdsArray of device IDs to toggle
onStatusDesired power state for all devices. Use ON to turn all devices on (all gangs for SmartSwitch), or OFF to turn all devices off (all gangs for SmartSwitch).
Bulk toggle multiple devices ON/OFF › Responses
Bulk toggle operation completed successfully