You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
options = {schema.bool, dps.Number, returnAsEvent.bool}
schema returns the entire schema of the device if true
returnAsEvent will emit a data event instead of returning a promise
set(option)
option = {dps.number, set}
dps is which porperty to modify
set is value to set with type any
returns a promise that resolves to a bool of command success
Node-Scheduler
scheduleJob(cronString, functionToSchedule)
scheduleJob(Date, functionToSchedule)
scheduleJob(RecurrenceRule, functionToSchedule)
all of these functions return a variable, lets call it job
RecurrenceRule()
returns a new RecurrenceRule that can be used to schedule a job
fields: second, minute, hour, date, month, year, dayOfWeek
job.cancel()
job.cancelNext(reschedule: maybe a boolean?)
job.reschedule(spec)
Harmony Hub
HarmonyHub(ip)
returns promise that resolves to Harmony object
getAvailableCommands()
returns an object that contains an array of devices, which each include all of the devices controllable commands
getActivities()
returns an array containing the registered activities in the harmony hub