Page 1 of 10
OpenWebNet developing..?
Posted: Friday 04 November 2016 1:49
by spugna85
Hi,
i have a Bticino system installed in my house.
I believe that integrating most of the functionality of the OpenWebNet would be very useful.
I do not understand why now it has only been developed for the management of blinds.
Someone is working to implement features on lights / switches, temperature sensors and status of the alarm system?
If someone is doing it, I could help test the various features, but also to develop......
ps. sorry for my bad english Q_Q
Re: OpenWebNet developing..?
Posted: Friday 04 November 2016 8:25
by gizmocuz
Please have a look at our github page, click on the OpenWebNet file, and via the history button you know who developed this
Since this is an opensource project, i would say, please start developing and debugging
Could you also change the function names to english ? Else i will be forced to remove hardware support for this very soon
If possible also correct the comments, looks like it is google translated
Re: OpenWebNet developing..?
Posted: Sunday 06 November 2016 4:05
by spugna85
I already translated the functions names and I implemented the lights/switches management.
Please do not remove the hardware support, this is very useful to me
Re: OpenWebNet developing..?
Posted: Monday 07 November 2016 7:55
by ceceghini
I also have a Btcino system, If you need a help for test or develop.
I have no knowledge of c++ but I'm a programmer.
we can get some idea from Grasshopper project
Re: OpenWebNet developing..?
Posted: Tuesday 08 November 2016 9:36
by spugna85
Any help is good. I sent you a private message.
Re: OpenWebNet developing..?
Posted: Wednesday 09 November 2016 11:16
by ceceghini
I could not send private message.
I have downloaded last version with our modification
I you give me you email in private message we could comunicate throught email.
Re: OpenWebNet developing..?
Posted: Wednesday 09 November 2016 12:25
by spugna85
I sent you my email. I wait for your contact ..
Re: OpenWebNet developing..?
Posted: Monday 14 November 2016 18:42
by Siem
Hi guys, I just found your topic. Many thanks for taking the time to develop the OpenWebNet functionality.
How is the development going?
Perhaps this could help you get some inspiration:
https://github.com/openhab/openhab/tree ... ng.bticino
Re: OpenWebNet developing..?
Posted: Monday 14 November 2016 18:49
by spugna85
Thanks, I will check it.
Lights and blinds already work.
Right now I'm working to add the temperature sensors.
Re: OpenWebNet developing..?
Posted: Sunday 04 December 2016 18:20
by Siem
How is it going? Is it already possible to use the lights in the current release or beta version?
Currently Domoticz crashes when I setup OpenWebnet.
Re: OpenWebNet developing..?
Posted: Sunday 04 December 2016 19:48
by Derik
What are the options with Openwebnet in Domoticz?
What hardware do i need?
Re: OpenWebNet developing..?
Posted: Wednesday 07 December 2016 2:35
by spugna85
@Siem
I just made a pull-request that includes:
- Scanning of shutters, lights and temperature sensors (on the hardware start)
- Automatic addition of discovered devices
- Shutters with 3 control buttons (open, stop, close)
- Other bug fixes
Now manually add a device may not work correctly
I hope that these changes will soon be included in Beta version
Re: OpenWebNet developing..?
Posted: Wednesday 07 December 2016 2:43
by spugna85
@Derik
You must have an official bticino gateway (example F454 web server) with the correct IP range set to accept openwebnet connections.
Some devices like MH202 or LN4890 may still be usable for this type of connection.
Re: OpenWebNet developing..?
Posted: Thursday 08 December 2016 19:21
by Siem
spugna85 wrote:@Siem
I just made a pull-request that includes:
- Scanning of shutters, lights and temperature sensors (on the hardware start)
- Automatic addition of discovered devices
- Shutters with 3 control buttons (open, stop, close)
- Other bug fixes
Now manually add a device may not work correctly
I hope that these changes will soon be included in Beta version
Great news!
Re: OpenWebNet developing..?
Posted: Monday 12 December 2016 20:22
by Siem
Hi Spugna,
Tonight I installed the latest beta of Domoticz (version 3.6132 - 2016-12-12).
I enabled "Myhome OpenWebNet" (Data Timeout: Disabled).
Unfortunately Domoticz crashes as soon as it receives a message from the MH200N:
*#13**22*20*43*31*001*01*12*12*2016##
The MH200N sends these kind of messages every 30 seconds:
*#13**22*20*44*01*001*01*12*12*2016##
*#13**22*20*44*31*001*01*12*12*2016##
This is what I see, when Domoticz crashes:
2016-12-12 20:14:13.005 COpenWebNet: connected to: 10.0.0.10:20000
2016-12-12 20:14:13.005 EventSystem: Started
2016-12-12 20:14:13.008 Error: COpenWebNet: Who=(null) not yet supported!
2016-12-12 20:14:13.008 COpenWebNet: received=*#*1## : ACK FRAME
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::at: __n (which is 0) >= this->size() (which is 0)
Aborted
Could it be a bug, or is your code not in this beta yet?
Many thanks,
Siem
Re: OpenWebNet developing..?
Posted: Monday 12 December 2016 21:08
by spugna85
Hi Siem!
I confirm to you that the code is not in the beta version. I'm waiting the merge.
However, the problem that you have could not be resolved.
I have always used the F454. I have also MH202, i will try this to see if i have a problem like yours.
Re: OpenWebNet developing..?
Posted: Tuesday 13 December 2016 0:13
by spugna85
I try with my MH202 and i get this:
2016-12-12 23:55:00.000 COpenWebNet: connected to: 192.168.0.98:20000
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
But this is so because is not a official gateway.
You can connect domoticz correctly with MH200N? perhaps because is a old gataway and not required the new authentication.
I don't known if I can debug this...
I think that MH200N messages with who=WHO_GATEWAY_INTERFACES_MANAGEMENT (13), are not managed correctly.
EDIT:
I was able to replicate the problem by a time request to the gateway and the system crashed.
I added the fix for this bug to the pull-request.
Re: OpenWebNet developing..?
Posted: Tuesday 13 December 2016 9:27
by spugna85
Hi Siem,
I wanted to tell you that the beta version 3.6136 includes all the latest changes in OpenWebNet. I hope you can test everything as soon as possible, I wait for your feedback.
I warn you that when you stop the hardware openwebnet sometimes the system crashes.
I will have to correct this problem when I have have some time.
Re: OpenWebNet developing..?
Posted: Tuesday 13 December 2016 21:40
by Siem
It works now
I am going to give it a thorough test tomorrow.
Re: OpenWebNet developing..?
Posted: Wednesday 14 December 2016 12:40
by Siem
Siem wrote:It works now
I am going to give it a thorough test tomorrow.
I tested in Domoticz 3.6147:
Switches work!
Dimming not, I can only switch dimmers on or off. Sliding doesn't work. If I slide a dimmer that has been switched on, the light will turn off instead of dimming to a certain level.
Do you have dimming already implemented in 3.6147? if so I can look into the OpenWebNet messages to see what is going on there and compare it to working dimmer messages.