Difference between revisions of "Device Object"
(Created page with "==<code>eventsSince</code>== Retrieve a list of events since a date/time. '''Signature:''' List<Event> eventsSince(Date startDate) List<Event> eventsSince(Date startDate,...") |
|||
Line 28: | Line 28: | ||
List<Event> eventsBetween(Date startDate, Date endDate) | List<Event> eventsBetween(Date startDate, Date endDate) | ||
List<Event> eventsBetween(Date startDate, Date endDate, Map options = null) | List<Event> eventsBetween(Date startDate, Date endDate, Map options = null) | ||
+ | List<State> statesSince(String attributeName, Date startDate) | ||
+ | List<State> statesSince(String attributeName, Date startDate, Map options = null) | ||
+ | List<Event> events() | ||
+ | List<Event> events(Map options) | ||
+ | void sendEvent(Map properties) | ||
+ | void updateSetting(String name, Map options) | ||
+ | void updateSetting(String name, Long value) | ||
+ | void updateSetting(String name, Boolean value) | ||
+ | void updateSetting(String name, String value) |
Revision as of 15:45, 24 February 2019
eventsSince
Retrieve a list of events since a date/time.
Signature:
List<Event> eventsSince(Date startDate) List<Event> eventsSince(Date startDate, Map options)
Parameters:
- startDate - The date/time to list events since.
- options - Map with optional settings for the return value, possible value is max which is the maximum number of rows to return, default value is 10.
Returns:
A list of Events
Examples:
// Get events since 8:00 am today def events = eventsSince(timeToday("08:00"))
// Get a maximum of 5 events def events = eventsSince(timeToday("08:00"), [max:5])
Additional to be documented
List<Event> eventsBetween(Date startDate, Date endDate) List<Event> eventsBetween(Date startDate, Date endDate, Map options = null) List<State> statesSince(String attributeName, Date startDate) List<State> statesSince(String attributeName, Date startDate, Map options = null) List<Event> events() List<Event> events(Map options) void sendEvent(Map properties) void updateSetting(String name, Map options) void updateSetting(String name, Long value) void updateSetting(String name, Boolean value) void updateSetting(String name, String value)