Project

domoticz

0.0
No commit activity in last 3 years
No release in over 3 years
Manage your Domoticz server from Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
 Project Readme

Domoticz Circle CI

Manage your Domoticz server from Ruby

This gem is work in progress!

Connect to your server

Domoticz.configure do |config|
  config.server = "http://127.0.0.1/"
  config.username = "user"
  config.password = "password"
end

Devices

List all devices

devices = Domoticz::Switch.all
# => [#<Domoticz::Switch:0x007fc51e203420 @name="Energy", @dimmer=nil, @idx="6", @type="P1 Smart Meter", @subtype="Energy">, #<Domoticz::Switch:0x007fc51e203308 @name="Gas", @dimmer=nil, @idx="7", @type="P1 Smart Meter", @subtype="Gas">, #<Domoticz::Switch:0x007fc51e2031c8 @name="Test switch", @dimmer=nil, @idx="8", @type="Lighting 1", @subtype="X10">]

Interact with a switch

switch = Domoticz::Devices.all.first
switch.on! # turn it on
switch.off! # turn it off
switch.toggle! # toggle switch

Contributing

  1. Fork it ( https://github.com/jankeesvw/domoticz/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request