sensibo.pod.state: Get info from a specific state of a given air conditioner...

Description Usage Arguments Value Examples

Description

Get info from a specific state of a given air conditioner (pod).

Usage

1
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

 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)

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