Skip to content

Ruby Integration

Overview

The Ruby integration for Sensibo allows you to control your Sensibo devices programmatically using Ruby. This unofficial client library provides a simple interface to interact with the Sensibo API.

Installation

Add this line to your application’s Gemfile:

gem 'sensibo-ruby'

Or install it directly:

Terminal window
gem install sensibo-ruby

Quick Start

Here’s a basic example to get you started:

require 'sensibo'
# Initialize the client with your API key
client = Sensibo::Client.new(api_key: 'YOUR_API_KEY')
# Get all your devices
pods = client.pods
# Get state of a specific device
state = pods.first.state
# Turn on AC
pods.first.turn_on(
temperature: 23,
mode: 'cool',
fan_level: 'auto'
)

Features

  • 🔌 Easy device discovery and control
  • 🌡️ Temperature and mode management
  • 💨 Fan speed control
  • 📊 State monitoring
  • ⏰ Timer and schedule support

Resources

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -am 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

For questions and discussions about the Ruby integration:

  • Open an issue on GitHub
  • Join the discussion in the repository’s Discussions section
  • Check existing issues for similar problems and solutions