sensibo.pod.set {sensibo.sky} | R Documentation |
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.
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
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
## 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)
[Package sensibo.sky version 1.0.0 Index]