sensibo.pod.states: Get the specified air conditioner (pod) current and previous...

Description Usage Arguments Value Examples

Description

Get the specified air conditioner (pod) current and previous states.

Usage

1
sensibo.pod.states(pod, n = 10, key = getOption("sensibo.key"))

Arguments

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.

Value

A list with the requested states, starting from the current one.

Examples

 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)

sensibo.sky documentation built on June 24, 2019, 5:03 p.m.