About this query
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- This query returns a list instances of when your WeMo Light Switch was turned on or off with a long press over two seconds.
- API endpoint slug
- wemo_light_switch.history_of_long_presses
- Runtime method
- performQuery("wemo_light_switch.history_of_long_presses")
Query fields
Macaddress Dropdown list
- Label
- Which light switch?
- Helper text
- Name of your WeMo switch.
- Slug
- macaddress
- Required
- true
- Can have default value
- false
Ingredients
Long press atThe date and time the switch was pressed with a long press.
- Slug
- created_at
- Filter code
- WemoLightSwitch.historyOfLongPresses.LongPressAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Switch nameThe name of the WeMo switch device.
- Slug
- device_name
- Filter code
- WemoLightSwitch.historyOfLongPresses.SwitchName
- Type
- String
- Example
- Kitchen Switch