Description Usage Arguments Value Examples
Get the specified air conditioner (pod) current and previous states.
1 | sensibo.pod.states(pod, n = 10, key = getOption("sensibo.key"))
|
pod |
(character) Pod unique id. |
n |
(integer) The number of states to get (max 20); n=1 will get only the current state. |
key |
(character) API key from https://home.sensibo.com/me/api. |
A list with the requested states, starting from the current one.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# Assuming that a valid Sensibo Sky API Key was created on https://home.sensibo.com/me/api
# and added to a 'sensibo.sky' global option.
#
# options("sensibo.key" = <Your Sensibo API Key>)
## Getting the list of pods available to the user
pods.id <- sensibo.pods()
## Getting the current state of the first pod
## Even if we're asking for the current state only, a list is returned anyway
pod.current <- sensibo.pod.states(pods.id[1], n = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.