Explore Plans
Mobile menu Close menu
eWeLink Smart HomeeWeLink Smart Home

Current power state

This query returns the on/off state of the device you choose.

Developer info

API endpoint slug
ewelink.power_state_query
Runtime method
performQuery("ewelink.power_state_query")

Query fields

Device list query Dropdown list

Label
Which device?
Helper text
This query returns the on/off state of the device you choose
Slug
device_list_query
Required
false
Can have default value
false

Ingredients

Query device nameName of eWeLink device.

Slug
devicename_is
Filter code
Ewelink.powerStateQuery.QueryDeviceName
Type
String
Example
E.g. eWeLinkSmartHomeDevice

Query power statepower state of the device.

Slug
power_state
Filter code
Ewelink.powerStateQuery.QueryPowerState
Type
String
Example
E.g on