Description Usage Arguments Value Examples
Get info from a specific state of a given air conditioner (pod).
1 | sensibo.pod.state(pod, state, key = getOption("sensibo.key"))
|
pod |
(character) Pod unique id. |
state |
(character) State id to be retrieved. |
key |
(character) API key from https://home.sensibo.com/me/api. |
A list with the requested state details.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## 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
pod.current <- sensibo.pod.states(pods.id[1], n = 1)
## Get more details of the given state (if available)
pod.state.details <- sensibo.pod.state(pods.id[1], pod.current[1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.