sensibo.pod.set: Set the air conditioner (pod) state. NULL properties will be...

Description Usage Arguments Value Examples

Description

Set the air conditioner (pod) state. NULL properties will be left unchanged. Please bear in mind that valid values might depend of the A/C model.

Usage

1
2
3
sensibo.pod.set(pod, on = NULL, mode = NULL, fan = NULL,
  unit = NULL, temperature = NULL, swing = NULL,
  key = getOption("sensibo.key"))

Arguments

pod

(character) Pod unique id.

on

(logical) Set to TRUE to turn the pod on, FALSE to turn off instead.

mode

(character) Set the mode from 'cool', 'hot', 'dry' and 'fan'

fan

(character) Set the fan speed from 'low', 'medium', 'high' and 'auto'.

unit

(character) Set the temperature unit: 'C' for Celsius, 'F' for Fahrenheit.

temperature

(numeric) Set the target temperature

swing

(character) Set the swing mode from 'stopped' and 'rangeFull'

key

(character) API key from https://home.sensibo.com/me/api.

Value

A list with the updated state and the result of the command (Success/Failure).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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()

## Update the status of the first pod
pod.newstate <- sensibo.pod.set(pods.id[1], on = TRUE, mode = "cool", temperature = 26)

## End(Not run)

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