Author Topic: Bticino SCS MyHome Bussystem  (Read 7700 times)

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Bticino SCS MyHome Bussystem
« on: April 28, 2010, 06:38:06 am »
Hello,

in my home i am using the Bticino MyHome Bussystem http://www.bticino.com with the OpenWebNet protocol
http://www.myopen-legrand.com/modules.php?name=Downloads&d_op=viewdownload&cid=35

I can use thins command on my LinuxMCE Core to control the Bussystem:
example: echo "*1*1*13##" | netcat 192.168.1.1  20000

Is it possible to create some scenarios like light on or off so that I can use LinuxMCE with my Bussystem?
I looked around but I did not find some information how to integrate this.

Please post some links or other information.

Thank you!

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #1 on: April 28, 2010, 04:26:47 pm »
You need to create a device template, in order to do this. This tells the system what the device is, and what its capabilities are. You will also need to write a driver so the system can control it. Once you've done this, you can add the device to your device tree (either plug and play or manually) and attach devices on the device tree, so that LinuxMCE can control them.

Would you prefer to write the driver in C++, or Ruby?

-Thom

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #2 on: April 28, 2010, 06:16:34 pm »
Hello,

I think Ruby will be right for me.

Where do I find some documentation for this project.

-Johannes

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #3 on: April 28, 2010, 06:56:38 pm »
You should go to the wiki and look up these terms:

Generic Serial Device (GSD)

Device Template

DCE

Developers Guide

-Thom

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #4 on: April 29, 2010, 06:45:20 am »
Hi,

hmmm....I have some troubles to understand how the Generic Serial Device (GSD) with Ruby works.

Is there somewhere a simple (code) example that will push me in the right direction...

Sorry for this questions....

Thanks

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #5 on: April 29, 2010, 07:32:57 am »
look for Insteon PLM in the wiki. Which is a complete source code example.

You can also see it as part of the system, by looking at its device template in the web admin (I forget the device template number, but the device is called the Insteon PLM, you can view it in Advanced > Configuration > Device templates in the web admin.)

-Thom

aico

  • Veteran
  • ***
  • Posts: 74
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #6 on: May 01, 2010, 08:04:55 am »
Thank you Tom, that helped me...

but - how do I write this bash command "echo "*1*1*13##" | netcat 192.168.1.1  20000" in Ruby?

I also startet a new topic at http://www.myopen-bticino.it - but nobody did a Bticino MyHome and LinuxMCE integration.

So I hope that, with your help, we can but this two systems together.

Thank you....

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Bticino SCS MyHome Bussystem
« Reply #7 on: May 02, 2010, 06:07:30 am »
the GSD provides a way to create a device that communicates over a TCP socket.

You will need to add the TCP Port device data to your device Template, and fill it with the default value of 20000 (For your port)

You should look at the Panasonic IP Camera template for an example of a GSD device that talks via a TCP socket, you can borrow its code for your template.

-Thom