As this is my first post here, I should probably introduce myself.
I live in Sweden and have been wanting to automate my home for a few years. My choice of software has been Misterhouse since it's one of the oldest and biggest open source projects, and is written in perl which I know very well. But the more I've looked at the source, the more I've been thinking that there must be a better and more well structured project somewhere.
I started searching, and a few weeks ago I found DomotiGa. It has almost everything I want. The only downside is Gambas that I had never heard of before. But hey, why not learn something new! [:)]
That was supposed o be a short introduction. Sorry about that.
Let's get back on subject. I want to contribute to this project!
I'd like to start with with adding support for a Tellstick usb dongle (http://www.telldus.se/). In short it is a dongle which which can turn on/off and dim power outlet devices through radio (433.92 MHz). The downside is that it can only send commands to the device, not read the current state. The upside is the price, 3 devices cost under 20 euro and that it supports a lot of different makes and models (I even control my motorized projector screen).
The Tellstick software, called telldus-core, has a shared library with external functions, so it is very easy to communicate with from Gambas.
One thing though, that I need your input on, is that all devices needs to be added to a config file (called telltick.conf) for the software to be able to send commands to devices.
The config looks something like this:
Code: Select all
deviceNode = "/dev/tellstick"
device {
id = 1
name = "Window light"
protocol = "arctech"
model = "selflearning-switch"
parameters {
house = "953934"
unit = "1"
}
}
device {
id = 2
name = "Kitchen light"
protocol = "arctech"
model = "selflearning-switch"
parameters {
house = "953934"
unit = "2"
}
}
This is NOT good!
<b>How should this be handled?</b>
The shared library has functions for adding and removing devices in the config file, so one dirty solution could be to have an empty config and add the device that we want to send a command to, send the command, and then remove the device from the config.
What do you guys think??
I also would like to add contribute to adding a themeable web gui and an iPhone gui (web based), but that will have to wait until I've cracked the tellstick part.