Project

evohome

0.0
No release in over 3 years
Low commit activity in last 3 years
A gem to read temperature data from Honeywell's Evohome API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0
~> 4.0
~> 3.1

Runtime

~> 0.15.6
 Project Readme

Evohome

This gets all temperatures from you Evohome, it only reads the temperature and setpoint for now.

Installation

Add this line to your application's Gemfile:

gem 'evohome'

And then execute:

$ bundle

Or install it yourself as:

$ gem install evohome

Usage

require "evohome"

email = "email@example.com"
password = "secret"
application_id = "application_id"

evohome = Evohome.new(username: email, password: password, application_id: application_id)
evohome.connect!

loop do 
  values = evohome.thermostats.map { |t| t.inspect }
  system 'clear'
  puts values
  sleep 10
end

# <thermostat name='Badkamer' temperature='19.16' temperature_setpoint='18.0'">
# <thermostat name='Fien' temperature='17.0' temperature_setpoint='16.0'">
# <thermostat name='Hal' temperature='20.96' temperature_setpoint='21.0'">
# <thermostat name='Kantoor' temperature='10.14' temperature_setpoint='20.5'">
# <thermostat name='Keuken' temperature='18.51' temperature_setpoint='22.0'">
# <thermostat name='Slaapkamer' temperature='11.17' temperature_setpoint='7.5'">
# <thermostat name='Soof' temperature='12.97' temperature_setpoint='10.0'">
# <thermostat name='Washok' temperature='12.09' temperature_setpoint='10.0'">
# <thermostat name='Woonkamer' temperature='21.06' temperature_setpoint='22.5'">

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/evohome.