sensibo.pod.state {sensibo.sky} | R Documentation |
Get info from a specific state of a given air conditioner (pod).
Description
Get info from a specific state of a given air conditioner (pod).
Usage
sensibo.pod.state(pod, state, key = getOption("sensibo.key"))
Arguments
pod |
(character) Pod unique id. |
state |
(character) State id to be retrieved. |
key |
(character) API key from https://home.sensibo.com/me/api. |
Value
A list with the requested state details.
Examples
## 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)
[Package sensibo.sky version 1.0.0 Index]