Difference between revisions of "Device Object"

From Hubitat Documentation
Jump to: navigation, search
(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,...")
 
(Replaced content with " <big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big> <big> This document is available at: http://docs2.hubitat.com/en/devel...")
(Tag: Replaced)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==<code>eventsSince</code>==
 
  
Retrieve a list of events since a date/time.
+
<big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big>
  
'''Signature:'''
+
<big>
List<Event> eventsSince(Date startDate)
+
This document is available at: http://docs2.hubitat.com/en/developer/device-object
List<Event> eventsSince(Date startDate, Map options)
+
</big>
 
 
'''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])
 
 
 
 
 
==<code>Additional to be documented</code>==
 
List<Event> eventsBetween(Date startDate, Date endDate)
 
List<Event> eventsBetween(Date startDate, Date endDate, Map options = null)
 

Latest revision as of 04:02, 25 September 2022

We're moving! Please visit http://docs2.hubitat.com for the latest documentation.

This document is available at: http://docs2.hubitat.com/en/developer/device-object