Skip to content

R Package Integration

Overview

The sensibo.sky R package provides a convenient interface to interact with Sensibo Smart Air Conditioner devices through the Sensibo API. This package allows R users to monitor and control their AC units programmatically.

Installation

You can install the package directly from GitHub using the devtools package:

# Install devtools if you haven't already
install.packages("devtools")
# Install sensibo.sky package
devtools::install_github("theclue/sensibo.sky")

Prerequisites

Before using the package, you’ll need:

  1. A Sensibo device properly set up and connected
  2. A Sensibo API key (obtain it from your Sensibo account)

Basic Usage

Here’s how to get started with the package:

# Load the package
library(sensibo.sky)
# Initialize the connection with your API key
sensibo <- Sensibo$new(api_key = "YOUR_API_KEY")
# Get all your devices
devices <- sensibo$devices()
# Get the state of a specific device
state <- sensibo$pod_state(pod_id = "YOUR_DEVICE_ID")
# Get measurements for a device
measurements <- sensibo$measurements(pod_id = "YOUR_DEVICE_ID")

Available Functions

The package provides several key functions:

  • devices(): List all your Sensibo devices
  • pod_state(): Get the current state of a specific device
  • measurements(): Retrieve temperature and humidity measurements
  • historical_measurements(): Get historical measurement data
  • ac_state(): Control your AC unit settings

Resources