Explore Plans
Mobile menu Close menu
iotty Smart Homeiotty Smart Home

Smart Switch turned on/off/pressed

This trigger fires when one of your iotty Smart Switch devices is turned on or off, or it is pressed (when its Gang Type on the iotty app is set as 'Gate').

Developer info

API endpoint slug
iottysmarthome.device_on_off

Trigger fields

Device ID Dropdown list

Label
Which iotty device was turned on, off, or pressed?
Slug
device_id
Required
true
Can have default value
false

Light state Dropdown list

Label
Check whether the iotty device is on, off, or has been pressed
Slug
light_state
Required
true
Can have default value
false

Ingredients

SourceWas the device turned on manually, by iotty App, or by some smart home platforms?

Slug
source
Filter code
Iottysmarthome.deviceOnOff.Source
Type
String
Example
1

Device nameThe name of your iotty device

Slug
device_name
Filter code
Iottysmarthome.deviceOnOff.DeviceName
Type
String
Example
Living Room Light

Created atThe exact date and hour when the event happened

Slug
created_at
Filter code
Iottysmarthome.deviceOnOff.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06.000+05:00

Light stateThe state of the iotty Smart Switch light (on or off)

Slug
light_state
Filter code
Iottysmarthome.deviceOnOff.LightState
Type
String
Example
on