Freedomotic - Bticino OpenWebNet over MH202

294 views
Skip to first unread message

Patrick Koglbauer

unread,
Oct 14, 2017, 4:03:25 AM10/14/17
to Freedomotic - IoT and Smart Spaces Framework
Hi,

I'm on it to change my homecontrol at my mobile from Grasshopper to Freedomotic

The MH202 is the new logic module and its needs to connect IP, Port, Password (like in Bticino Software).
It also works at the same we with Raspberry and Grasshopper os.

Have anyone already expierience with MH202 and Freedomotic as gateway?

LG Patrick

alberto mengoli

unread,
Oct 14, 2017, 8:22:40 AM10/14/17
to freedom-...@googlegroups.com
Hi Patrick,
welcome to Freedomotic;excuse me,but I don't know if I have understood correctly your question; you are moving from Grasshopper to Freedomotic as supervision software of your bticino system which is using a MH202 bticino "scenario handler" as gateway OWN. Is it? Because Freedomotic uses an OWN plugin to connect to quite every kind of bticino gateways (except serial L4686SDK), but, and this is the unclear part of your question, unlike original bticino software, doesn't need of userid or password; about access with uid and pswd there is a proprietary algorithm, reserved only to original bticino software, which is not public, and we can't use a reverse engeneering hacked product as part of our open source framework. I'm sure you agree with me that It would not be neither ethical nor legal. There is a very simple way to do the trick (recommended by bticino): using original software Ti-MH202 you can easily set a range of trusted IP addresses in which devices can access the own gateway without needing of userid or password. I use for my bticino system a web server F453AV as a own gateway without problem, but you surely can configure Freedomotic own plugin for your MH202 in the same easy way  :)  You can refer to the readthedocs documentation for own plugin configuration or to me if you have problems. Best regards, Alberto 

--
You received this message because you are subscribed to the Google Groups "Freedomotic - IoT and Smart Spaces Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domotics+unsubscribe@googlegroups.com.
To post to this group, send email to freedom-domotics@googlegroups.com.
Visit this group at https://groups.google.com/group/freedom-domotics.
For more options, visit https://groups.google.com/d/optout.

Patrick Koglbauer

unread,
Oct 14, 2017, 8:51:01 AM10/14/17
to Freedomotic - IoT and Smart Spaces Framework
Hi Alberto,

Thanks for your fast answer :).
i don't have a readme for own in the folder of freedomotics and plugins.

do u send me the readme files or a sample file?

thanks and best regards
Patrick
p...@outlook.at

yeah I'm using the grasshopper with OWN Protocol


Am Samstag, 14. Oktober 2017 14:22:40 UTC+2 schrieb amenak77:
Hi Patrick,
welcome to Freedomotic;excuse me,but I don't know if I have understood correctly your question; you are moving from Grasshopper to Freedomotic as supervision software of your bticino system which is using a MH202 bticino "scenario handler" as gateway OWN. Is it? Because Freedomotic uses an OWN plugin to connect to quite every kind of bticino gateways (except serial L4686SDK), but, and this is the unclear part of your question, unlike original bticino software, doesn't need of userid or password; about access with uid and pswd there is a proprietary algorithm, reserved only to original bticino software, which is not public, and we can't use a reverse engeneering hacked product as part of our open source framework. I'm sure you agree with me that It would not be neither ethical nor legal. There is a very simple way to do the trick (recommended by bticino): using original software Ti-MH202 you can easily set a range of trusted IP addresses in which devices can access the own gateway without needing of userid or password. I use for my bticino system a web server F453AV as a own gateway without problem, but you surely can configure Freedomotic own plugin for your MH202 in the same easy way  :)  You can refer to the readthedocs documentation for own plugin configuration or to me if you have problems. Best regards, Alberto 
2017-10-14 10:00 GMT+02:00 Patrick Koglbauer <k0nt...@gmail.com>:
Hi,

I'm on it to change my homecontrol at my mobile from Grasshopper to Freedomotic

The MH202 is the new logic module and its needs to connect IP, Port, Password (like in Bticino Software).
It also works at the same we with Raspberry and Grasshopper os.

Have anyone already expierience with MH202 and Freedomotic as gateway?

LG Patrick

--
You received this message because you are subscribed to the Google Groups "Freedomotic - IoT and Smart Spaces Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domoti...@googlegroups.com.
To post to this group, send email to freedom-...@googlegroups.com.

alberto mengoli

unread,
Oct 14, 2017, 10:46:42 AM10/14/17
to freedom-...@googlegroups.com
Hi Patrick,
Excuse me! Mauro made a great work with freedomotic online manuals (readthedocs); we have either user version or developer version; here is the link to user's own plugin http://freedomotic-user-manual.readthedocs.io/en/latest/plugins/openwebnet.html  but, unfortunately, as you can see, that part of docs is missing; we are powerful but not omnipotent  ;) so let me do a mini user manual. First of all, you must download the own plugin from the marketplace; you go to freedomotic main menu-->plugin-->install from market than search and download own plugin

​now you see own plugin in plugin list window

To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domotics+unsubscribe@googlegroups.com.
To post to this group, send email to freedom-domotics@googlegroups.com.

alberto mengoli

unread,
Oct 14, 2017, 10:57:08 AM10/14/17
to freedom-...@googlegroups.com
Hi again,
now go to "...root_freedomotic\freedomotic...\plugins\devices\openwebnet" and open with a word processor the file named "openwebnet-manifest"; this is the result:

you must change the highlined value with "127.0.0.1" that's the ip value for MH202 if I don't make mistakes​

alberto mengoli

unread,
Oct 14, 2017, 11:14:56 AM10/14/17
to freedom-...@googlegroups.com
Hi,
now you have quite finished; if all goes well, once the own plugin links to own gateway, the joindevice function, that's the autodetect finding objects function, should populate the jfrontend background with the right objects. You can see object's properties by right-clicking it. At the moment, only lights are fully supported, but we hope that soon all own object will be. If you'll need object's detailed config, I'll be glad to give it to you; if you want to move the objects, you must go to "main menu-->objects-->modify objects mode": in edit mode you can drag/drop icons, then you can return to normal-mode in the same way. It's all by now, because I don't want to create informations overload, but you can do many other things such as change background/background mode, create a second floor, etc. Let me know if I can be helpful; best redards, Alberto

alberto mengoli

unread,
Oct 14, 2017, 11:31:55 AM10/14/17
to freedom-...@googlegroups.com
One last thing,
As (I hope) you can see, ligt's on/off status is aligned to te real status; if you click on icon light you switch on/off the real one and vice versa (switch on phisical light and so will do framework's icon); but this is not the most interesting thing; due to its modular structure, freedomotic can create mesh systems in a very transparent way: it is sufficient to install the right plugin and the problem is handled low-level; moreover, there is also a sophisticated "engine of conditions" (see automations editor) by wich you can trigger preset conditions and create adguate reactions. And much more. Best regards, Alberto

Patrick Koglbauer

unread,
Oct 14, 2017, 6:01:16 PM10/14/17
to Freedomotic - IoT and Smart Spaces Framework
Hi Guys,

I've tested it in serveral variants :) and also with me grasshopper

When i delete the password if the gateway in my grasshopper -> he doesn't work anymore.
Also i have tried to delete the password of the MH202 at own and this parameter is a must have

enclosed here is a docu of the own protocol and here are both possibilitys (with pass and without)

https://openwebnet.github.io/rx-openwebnet/com/github/niqdev/openwebnet/OpenWebNet.html

What do u think?

best regards

Patrick

Patrick Koglbauer

unread,
Oct 14, 2017, 6:29:38 PM10/14/17
to Freedomotic - IoT and Smart Spaces Framework
I use a MH202 with standard firmware
IP  Gateway                 192.168.88.40/24
IP  Freedomotic           192.168.88.80/24
IP  Grasshopper          192.168.88.45/24

So it shouldn't or is not a prob of the ip range :)

At Freedomotic don't appear automated  genereted light points
When i set the light manuely i see that he have a switching time of 86ms but no reaction of my bticino system.




Am Samstag, 14. Oktober 2017 17:31:55 UTC+2 schrieb amenak77:

alberto mengoli

unread,
Oct 15, 2017, 5:47:28 AM10/15/17
to freedom-...@googlegroups.com
Hi Patrick,
Maybe there are some misunderstandings; you try to access the gateway with password throught Grasshopper that uses an hacked algorythm from original bticino software. Obviously if you delete a password the software denies connection. You must use a program that DOESN'T USE THAT ALGORITHM. So 1) download freedomotic rc4 2) run freedomotic and download own plugin from marketplace 3) modify plugin own-manifest file and change default web server ip 192.168.1.35 with 127.0.0.1 ; for what I know you are obliged to use this ip address to connect with MH202. If all goes well and your pc ip address is within trusted ip range, when run Freedomotic you are already connected to the gateway. Let me know, Alberto

To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domotics+unsubscribe@googlegroups.com.
To post to this group, send email to freedom-domotics@googlegroups.com.

Patrick Koglbauer

unread,
Oct 15, 2017, 7:28:16 AM10/15/17
to Freedomotic - IoT and Smart Spaces Framework
I have monitored my connection with wireshark.
It seems so that the connection between freedomotic and MH202 is ok
Enclosed i have attached a wireshark snapshot

What i have done:
-Started actual rc4 realease of Freedomotic
- install own plug in
-Config Own Plug in -> changed IP Adress 192.168.88.40
-Config of light point -> see screenshot (is addressing correct?)

When i switch a light point i see at wireshark a tcp connection, so this should work.

Sry the noob questions :D
Wireshark.JPG
Freedomotic.JPG

alberto mengoli

unread,
Oct 15, 2017, 9:59:29 AM10/15/17
to freedom-...@googlegroups.com
Hi Patrick
Have you modified own-manifest file placed into own plugin folder? And changed server ip address into 127.0.0.1 ?  Yes the first tag about light configuration is right; I'll send you complete configuration of every tag soon.  A.

To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domotics+unsubscribe@googlegroups.com.
To post to this group, send email to freedom-domotics@googlegroups.com.

alberto mengoli

unread,
Oct 15, 2017, 10:34:31 AM10/15/17
to freedom-...@googlegroups.com
Hi again,
For some reasons join device doesn't work; no problem; you can configure ights manually. There are 6 tags from upper to down: let it be as they are tag 4 and tag 6.
Here is number one:

Number two:

​​Number three:

​No number four; Number five:

​No number six; let me know if all goes well (hope so); best regards, Alberto

Patrick Koglbauer

unread,
Oct 15, 2017, 5:17:41 PM10/15/17
to Freedomotic - IoT and Smart Spaces Framework
I have found the log function :)
Enclosed you will find my log entry

Do u understand what is happining there? its italiano :D
I have done manualy config of the lights and it doesnt work


best regard
Log.JPG

Patrick Koglbauer

unread,
Oct 15, 2017, 5:57:28 PM10/15/17
to Freedomotic - IoT and Smart Spaces Framework
So i have investigate a lot today :D

MH202 is not working like a normal Bticino Gateway - it seems so that there is a pass required

A Post from myopen-legrand Forum

What do u think guys about that?
Sry for steeling your time

br Patrick

alberto mengoli

unread,
Oct 15, 2017, 9:11:54 PM10/15/17
to freedom-...@googlegroups.com
Hi Patrick,
Let me disagree! No pass required. The log is clear to me (which I am italian) :)  and says: "NON effettuo controllo sulla password, mi aspetto ACK" that means "it is NOT done password control, it is expected an ACK" It means that you are correctly set in trusted range ip addresses control mode (without password), but 1) either your pc ip is not in the tange of the trusted ip 2) or you try to address to the wromg gateway ip address. In effect it is probable point two (even if I suggest you to ckeck again with Ti-MH202 ip addresses range setted) because it tries to connect to the server to 192.168.44.... at port 20000, while it should be, if I don't make mistakes, 127.0.0.1 at port 20000. So, again, have you changed server ip address in the own-manifest file? It is the line highlined in red in the second figure I sent to you first time. If the connection to server is OK, when the program send initialization frame for WHO=1 (lights) it is expected an ACK that is an acknowledge, otherwise receives a NACK, that is not acknowledge and the connection fails. To finish I remember to you that due to techical choises, the connection to server is normally limited to 20 seconds so to them (BT and LG guys) you should repeat the procedure every time you send a frame to the server, but thanks to Mauro, the own plugin creator, own plugin has a watchdog so you are not bothered by this  ;) If you have a little time, as I'm sure you are part of myopen community, like me, go to the international part to the thread "virtual development kit beta testers" You will find it useful. I am Amenak77, the madman who published 99 posts to debug their VDK, a simulator of a real bticino system :) I'll check again about MH202 ip address. Let me know and best regards Alberto

To unsubscribe from this group and stop receiving emails from it, send an email to freedom-domotics+unsubscribe@googlegroups.com.
To post to this group, send email to freedom-domotics@googlegroups.com.

alberto mengoli

unread,
Oct 15, 2017, 9:47:22 PM10/15/17
to freedom-...@googlegroups.com
Hi Patrick
I checked and MH202 is NOT a own gateway but only a scenario manager. In effect even if it seems from log file a trusted ip setting it throws a string that changes every time. You should need of the famous propietary access algorithm that have only original bticino programs; as I said, Grasshopper hacked the code but as an open source group we can't be part of something neither ethical nor legal. Sorry but I can not be of help. At the moment you need of a own gateway, then there will be any problem using freedomotic software. Best regards, Alberto
Reply all
Reply to author
Forward
0 new messages