This query monitors the UbiBot device's built-in light sensor readings and returns a list of whenever the light level rose above or dropped below the value in lux you provide. Note: this query will only return future events after this Applet is created.
API endpoint slug
ubibot.history_of_light_crossed_a_threshold
Runtime method
performQuery("ubibot.history_of_light_crossed_a_threshold"}
Query fields
Label
Channel ID
Helper text
Select a Channel from your account
Slug
channel_id
Required
true
Can have default value
false
Label
Condition
Helper text
Light level condition
Slug
condition
Required
true
Can have default value
true
Label
Value
Helper text
Light level in lux
Slug
value
Required
true
Can have default value
true
Ingredients
Slug
created_at
Filter code
Ubibot.historyOfLightCrossedAThreshold.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00
Slug
value
Filter code
Ubibot.historyOfLightCrossedAThreshold.Value
Type
String
Example
500
Slug
channel_id
Filter code
Ubibot.historyOfLightCrossedAThreshold.ChannelId
Type
String
Example
1510