Home automation Myhome Legrand/bticino

Hi,

I own a home automation system “MyHome” legrand / bticino. It is possible to control the system through a USB interface. The protocol is open. When I plug the interface on the Vera, she is recognized as a serial port (FTDI). So far so good.
My wish is to create virtual device to control my system myhome. In a second time with the state feedback.
I’ve looked around the wiki, but I do not know where to start. I’m starting with vera.
Thank you for your help.

http://hpics.li/67c5633

related specifications of the USB interface and protocol:

nobody has an idea to help me? I try already to just send an ASCII string to the serial port, but I happen or not.
I use the command "send () ", I have an XML error. I use luup test

thank you for helping a beginner

You may want to look here:

[ul][li]http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand[/li][/ul]

and here:

[ul][li]http://wiki.micasaverde.com/index.php/Luup_Somfy_Walkthrough[/li][/ul]

I attached some files for a plugin that sends a message on the serial port and writes the received response.
You can find how to install plugins here:

[ul][li]http://wiki.micasaverde.com/index.php/Install_LUUP_Plugins[/li][/ul]

I understand, I install the plugin simpleserial. To test, I write the command in Lua Test Code Luup:

luup.call_action(“urn:micasaverde-com:serviceId:SimpleSerial1”, “Send”, tostring (lul_data), lul_device)

I replace lul_data by my frame ascii and lul_device by the module number

true or false?

thank you

You can test it with luup.call_action in Test Lua Code, or you can use the plugin’s interface.

I replace lul_data by my frame ascii and lul_device by the module number

Correct. However, the plugin appends \r\n (crlf) automatically at the end of the frame, so if your device doesn’t like this, you can change it in I_SimpleSerial.xml:

<settings>
    <commUse>rs232</commUse>
    <protocol>crlf</protocol>
</settings>

I installed the plugin but it does not work …

how do I know if my USB interface / bus myhome is well recognized by vera?

that putting in place of crlf?

If the serial port is recognized then it should work. What message did you receive after you sent the packet? (you have to leave the current tab, then enter again for the Received variable to update the value)

it nothing happens when I send the packet. received no message, no notification sends good

I remove the line protocol I_SimpleSerial

rs232

after the LUA engine will not start: first picture
but when I open the module I received a message: second picture

I think there is a problem with crlf

when I send the message, I have command failed

Don’t remove the protocol line, but try various protocols instead:
cr
stxetx
raw

Look here for more info:
http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand#settings

I tried all possibilities, nothing works. I had to make a mistake somewhere else.
I’m sorry I’m not very good at

you read the pdf on the protocol openwebnet?

Yes, unfortunately the line ending is not specified, so I assume that it’s CR-LF. That plugin is not the best way to test if the serial connection works, for this I recommend looking in LuaUPnP.log for lines starting with 51 and 52.

Lines starting with 51 are the sent messages, and lines starting with 52 are the received messages. Look here to find how to view the logs: http://wiki.micasaverde.com/index.php/Logs

You must enable Verbose Logging first with the following command:
[tt]VerboseLogging enable[/tt]

And disable it after finishing:
[tt]VerboseLogging disable[/tt]

Hi,

Any updates here?

Thanks

[quote=“Jpcolin, post:12, topic:168478”]Hi,

Any updates here?

Thanks[/quote]

Please do not mass post asking for an update. You already posted in two other threads regarding the same subject.

  • Garrett

Sorry did not ment to bother, I tought posters would get notify by mail of new reply and get back to it :wink:

Not completely true as this is an option that would require being enabled.

  • Garrett

Hi there.

I’m interested in Vera too and I also own a bticino myhome installation.

Did you manage to make anything work?

I would use it with the ip gateway MH200N

Hi,

No not yet i have yet to buy my vera lite to do some tryouts, but i’m affraid i wont manage to do it on my own!
Do you have any skills to do this?

regards

I’m a programmer, but before buying I’d like to know if it’s possible to do what I want to do…