A beginner's guide
Explore Plans
Mobile menu Close menu
YoLinkYoLink

History of door sensor events

This query returns a list of when the door sensor state changed.

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 of when the door sensor state changed.
API endpoint slug
yolink.history_of_door_sensor_events
Runtime method
performQuery("yolink.history_of_door_sensor_events")

Query fields

Device ID Dropdown list

Label
Device
Helper text
Choose your device
Slug
deviceId
Required
true
Can have default value
false

Action Dropdown list

Label
Action
Helper text
Choose a device action
Slug
action
Required
true
Can have default value
true

Ingredients

Created atDate and time event was created.

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