Domotiga and KNX/EIB configure problem
Moderator: RDNZL
Re: Domotiga and KNX/EIB configure problem
Hi,
I am having the exact same problem as WEDOS-KNX , my KNX On/Off devices are addressed 1/0/XX and if tested
from DomotiGa they are 2/0/XX in vbusmonitor1..
I am using Berker GmbH & Co. KG:KNX-USB Data Interface
Any solution or workaround yet ?
Thanks,
Ace
P.S.
Promising project, keep up the good work
!
I am having the exact same problem as WEDOS-KNX , my KNX On/Off devices are addressed 1/0/XX and if tested
from DomotiGa they are 2/0/XX in vbusmonitor1..
I am using Berker GmbH & Co. KG:KNX-USB Data Interface
Any solution or workaround yet ?
Thanks,
Ace
P.S.
Promising project, keep up the good work
!
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
I have no eib/knx hw to test. Is it possible to test this without? Or can you provide me some data strings/logs so i can simulate this?
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
Hi,
I am not sure how we can simulate this without KNX HW @ your end..
I will try to explain this in more detail...
I am using EIBD to interface with the KNX bus.
(Berker GmbH & Co. KG:KNX-USB Data Interface)
http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd
I start it up with: eibd -d -D -S -T -i usb:1:4:1:0
then I monitor the bus with: Vbusmonitor1 ip:localhost
Now I start DomotiGa > Main > Devices
and add a new device (domoticaforum.eu/download/file.php?mode ... amp;id=776)
Name: Guestroom
Device: KNX/EIB On/Off
Type: EIS 1
Interface KNX/EIB Interface
Address: 1/0/6
Value1: Off
Value2: On
Save
DomotiGa > Main > Control > (Click on) Guestroom [On/Off]
And in the Vbusmonitor:
LPDU: BC 00 00 10 06 F1 00 81 25 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
LPDU: BC 00 00 10 06 F1 00 80 24 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 00
See how DomotiGa changes the KNX address and is incorrect in the bus output:
1/0/6 becomes 2/0/6
If the address is:
2/0/6 it changes to 4/0/6
3/0/6 it changes to 6/0/6
4/0/6 it changes to 8/0/6
and etc....
(If I use groupswrite ip:localhost 1/0/6 1 or groupswrite ip:localhost 1/0/6 0
I can turn the light on and off so I know it works
)
Hope this helps....
Thanks,
Ace
P.S.
If I try to use the XML-RPC server, it does not start and
give me this error in the log:
2010/11/02 01:59:55 ERROR: XML-RPC server FAILED to start on Port 9009
2010/11/02 01:59:55 UDP Broadcasts are enabled on Port 19009
Any idea ?
I am not sure how we can simulate this without KNX HW @ your end..
I will try to explain this in more detail...
I am using EIBD to interface with the KNX bus.
(Berker GmbH & Co. KG:KNX-USB Data Interface)
http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd
I start it up with: eibd -d -D -S -T -i usb:1:4:1:0
then I monitor the bus with: Vbusmonitor1 ip:localhost
Now I start DomotiGa > Main > Devices
and add a new device (domoticaforum.eu/download/file.php?mode ... amp;id=776)
Name: Guestroom
Device: KNX/EIB On/Off
Type: EIS 1
Interface KNX/EIB Interface
Address: 1/0/6
Value1: Off
Value2: On
Save
DomotiGa > Main > Control > (Click on) Guestroom [On/Off]
And in the Vbusmonitor:
LPDU: BC 00 00 10 06 F1 00 81 25 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
LPDU: BC 00 00 10 06 F1 00 80 24 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 00
See how DomotiGa changes the KNX address and is incorrect in the bus output:
1/0/6 becomes 2/0/6



If the address is:
2/0/6 it changes to 4/0/6
3/0/6 it changes to 6/0/6
4/0/6 it changes to 8/0/6
and etc....
(If I use groupswrite ip:localhost 1/0/6 1 or groupswrite ip:localhost 1/0/6 0
I can turn the light on and off so I know it works

Hope this helps....
Thanks,
Ace
P.S.
If I try to use the XML-RPC server, it does not start and
give me this error in the log:
2010/11/02 01:59:55 ERROR: XML-RPC server FAILED to start on Port 9009
2010/11/02 01:59:55 UDP Broadcasts are enabled on Port 19009
Any idea ?
- Attachments
-
- NewDevice
- DomotigaKNX.gif (40.87 KiB) Viewed 13289 times
Re: Domotiga and KNX/EIB configure problem
Enable debugging on the EIB interface, and see what interface it says there
Re: Domotiga and KNX/EIB configure problem
wwolkers,
I am not sure what you mean or how I can do this...
I am using a Pc running a Linux (Debian) + EIDB software (http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd)
connected by USB to the Berker KNX interface.
With the vbusmonitor command I monitor what is going on in the KNX bus.
I see that the DomotiGa app changes the value if it is not 0/XX/XX
In my setup it is 1/0/6 in DomotiGa but when the app sends the command to the KNX bus it is 0/0/6
LPDU: BC 00 00 10 06 F1 00 81 25 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
LPDU: BC 00 00 10 06 F1 00 80 24 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 00
And as the command from DomotiGa is now 2/0/6 not the correct value: 1/0/6 nothing happens.
Regards,
Ace
I am not sure what you mean or how I can do this...
I am using a Pc running a Linux (Debian) + EIDB software (http://www.auto.tuwien.ac.at/~mkoegler/index.php/eibd)
connected by USB to the Berker KNX interface.
With the vbusmonitor command I monitor what is going on in the KNX bus.
I see that the DomotiGa app changes the value if it is not 0/XX/XX
In my setup it is 1/0/6 in DomotiGa but when the app sends the command to the KNX bus it is 0/0/6
LPDU: BC 00 00 10 06 F1 00 81 25 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
LPDU: BC 00 00 10 06 F1 00 80 24 :L_Data low from 0.0.0 to 2/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 00
And as the command from DomotiGa is now 2/0/6 not the correct value: 1/0/6 nothing happens.
Regards,
Ace
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
I think wwolkers means enable debug in KNX/EIB settings menu of DomotiGa and then capture/copy output as seen in Debug log window while switching EIS 1 device.
I have added new code to CEIB.class in svn, so it would be nice if you can do the above with the old/current code, and retry it with the new code.
There are 2 routines used to calculate the addresses, if this works for switching an EIS 1 device, we must adapt the other types too to use this code.
Can you try both versions and post or e-mail the debug output?
For the problem where you cannot start XMLRPC, first make sure you are using the latest Gambas 2.21 version from svn, as older versions had a bug in gb.xmlrpc component.
Also make sure port 9009 is not in use by any other process, to check run netstat -an|grep ":9009" before running domotiGa, it shouldn't return anything.
If nothing is using it, it there a firewall active?
I have added new code to CEIB.class in svn, so it would be nice if you can do the above with the old/current code, and retry it with the new code.
There are 2 routines used to calculate the addresses, if this works for switching an EIS 1 device, we must adapt the other types too to use this code.
Can you try both versions and post or e-mail the debug output?
For the problem where you cannot start XMLRPC, first make sure you are using the latest Gambas 2.21 version from svn, as older versions had a bug in gb.xmlrpc component.
Also make sure port 9009 is not in use by any other process, to check run netstat -an|grep ":9009" before running domotiGa, it shouldn't return anything.
If nothing is using it, it there a firewall active?
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
Yup, I meant what Ron says 
Sorry, currently I don't have a PC running with linux, so no domotiga of gambas available to check or debug stuff.

Sorry, currently I don't have a PC running with linux, so no domotiga of gambas available to check or debug stuff.
Re: Domotiga and KNX/EIB configure problem
Hi RDNZL,
I am not sure if this is what you mean but.. I started DomotiGa up with the Orginal CEIB.class
and pressed the on off 4 times:
Also.. I cant send private messages.. or email:
Compose message
We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature.
Ace
I am not sure if this is what you mean but.. I started DomotiGa up with the Orginal CEIB.class
and pressed the on off 4 times:
Code: Select all
OLD CEIB.class
2010/11/03 14:28:31 [KNX/EIB] EIS1: Guestroom Off
2010/11/03 14:28:32 [KNX/EIB] EIS1: Guestroom Off
2010/11/03 14:28:33 [KNX/EIB] EIS1: Guestroom On
2010/11/03 14:28:34 [KNX/EIB] EIS1: Guestroom On
2010/11/03 14:28:37 [Devices] Device with address '%0/1/0%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:28:37 [Devices] Device with address '%1/0/11%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:28:37 [Devices] Device with address '%0/1/1%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:28:37 [Devices] Device with address '%1/2/11%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:28:42 [Devices] Device with address '%0/2/4%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:28:59 [Devices] Device with address '%1/3/11%' and interface 'KNX/EIB Interface' not found!
Then I downloaded the new CEIB.class from SVN and renamed the old to CEIBORG.class
and put the new one in the same dir and pressed the on off 4 times:
NEW CEIB.class
2010/11/03 14:36:54 [KNX/EIB] EIS1: Guestroom Off
2010/11/03 14:36:56 [KNX/EIB] EIS1: Guestroom Off
2010/11/03 14:37:06 [KNX/EIB] EIS1: Guestroom On
2010/11/03 14:37:08 [KNX/EIB] EIS1: Guestroom On
2010/11/03 14:37:11 [Devices] Device with address '%0/B/0%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:11 [Devices] Device with address '%0/B/1%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:11 [Devices] Device with address '%0/B/2%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/4%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/5%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/6%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/7%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/8%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/10%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/18%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/20%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:12 [Devices] Device with address '%0/B/44%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:13 [Devices] Device with address '%0/B/45%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:13 [Devices] Device with address '%0/B/47%' and interface 'KNX/EIB Interface' not found!
2010/11/03 14:37:13 [Devices] Device with address '%0/B/49%' and interface 'KNX/EIB Interface' not found!
Compose message
We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature.
Ace
Last edited by Bwired on Wed Nov 03, 2010 6:16 pm, edited 1 time in total.
Reason: Please use the Code button if you post long listings etc.
Reason: Please use the Code button if you post long listings etc.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
@ace: That looks completely wrong... no easy fixing, or I have to add numerous debug lines with raw packet data.
I have looked at the prices of a KNX USB interface an EIS 1 switch, but those prices are too steep to buy just for a short use.
Anyone who can lend me some KNX hardware to get this fixed?
Maybe a webshop owner?
Or someone, who is willing to make it's interface/eibd socket reachable over the internet using a port forward with just a test device connected?
BTW: you can find my e-mail address in the README file of DomotiGa or just use the form on domotiga.nl to get initial contact.
I have looked at the prices of a KNX USB interface an EIS 1 switch, but those prices are too steep to buy just for a short use.
Anyone who can lend me some KNX hardware to get this fixed?
Maybe a webshop owner?
Or someone, who is willing to make it's interface/eibd socket reachable over the internet using a port forward with just a test device connected?
BTW: you can find my e-mail address in the README file of DomotiGa or just use the form on domotiga.nl to get initial contact.
Regards, Ron.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
Ace was so kind of letting me connect with my DomotiGa over the internet to the KNX bus of his house.
And after some debugging I suceeded to get it work.
I stopped when he got frightnened when I switched his light on and off
Knowing he lives in Iceland made it even more fun.
Thanks again...
And after some debugging I suceeded to get it work.
I stopped when he got frightnened when I switched his light on and off

Knowing he lives in Iceland made it even more fun.
Thanks again...
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
Yeah.. you got me real scared there Ron !
Snowstorm outside, currency falling, lights blinking !
I almost lost it
Anyway the EIB1 devices are starting to work so we are getting somewhere !
Glad I can help.
Ace
Snowstorm outside, currency falling, lights blinking !
I almost lost it

Anyway the EIB1 devices are starting to work so we are getting somewhere !
Glad I can help.
Ace
Re: Domotiga and KNX/EIB configure problem
Hi guys,
just wanted to let you know that with a lot of hard work Ron managed to get KNX to work with DomotiGa
The following devices have been tested and are known to work:
EIB1: Switches
EIB2: Dimmers
EIB3: Time
EIB4: Date
EIB5: Values (weather stations etc)
Ace
just wanted to let you know that with a lot of hard work Ron managed to get KNX to work with DomotiGa

The following devices have been tested and are known to work:
EIB1: Switches
EIB2: Dimmers
EIB3: Time
EIB4: Date
EIB5: Values (weather stations etc)
Ace
Re: Domotiga and KNX/EIB configure problem
Hello Ace, Ron,
Great to see that you succeeded to get the KNX part working.
I've just finished reinstalling my laptop and downloaded the latest version of Domotiga.
Tested some lights and they work, yeaah! Even with the events, triggers etc, no problem.
But, EIB2 devices give me some trouble. I don't understand the addressing of the dimmers.
I've got just one group address for a dimmer (ie 1/0/2) you expect three (0/1/2|0/1/3|0/1/4) ?!
When i enter my dimmer address three times (ie 1/0/2|1/0/2|1/0/2), domotiga does send telegrams on dim steps, but noting happens. Turning the device of and on again results in a fully dimmed light.
Please shed some light in my darkness
Great to see that you succeeded to get the KNX part working.
I've just finished reinstalling my laptop and downloaded the latest version of Domotiga.
Tested some lights and they work, yeaah! Even with the events, triggers etc, no problem.
But, EIB2 devices give me some trouble. I don't understand the addressing of the dimmers.
I've got just one group address for a dimmer (ie 1/0/2) you expect three (0/1/2|0/1/3|0/1/4) ?!
When i enter my dimmer address three times (ie 1/0/2|1/0/2|1/0/2), domotiga does send telegrams on dim steps, but noting happens. Turning the device of and on again results in a fully dimmed light.
Please shed some light in my darkness

Regards, Perry.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
Hi peevee,
What kind of dimmers do you have (brand/model)?
"address" of a type 2 item is the combination of three addresses: "position"|"control"|"value"
Depending if you are provided brighter,darker,stop commands, direct dim values or ask for status a different address is used.
Did you program your knx group addresses yourself? If not, maybe ask your engineer for more info about your setup.
But I haven't figured out the whole deal yet myself, i'm coding without having the actual hardware myself, someone in Iceland is helping me
, but if anyone can donate me a KNX Handbook V1.1 it will help me a lot!...
What kind of dimmers do you have (brand/model)?
"address" of a type 2 item is the combination of three addresses: "position"|"control"|"value"
Depending if you are provided brighter,darker,stop commands, direct dim values or ask for status a different address is used.
Did you program your knx group addresses yourself? If not, maybe ask your engineer for more info about your setup.
But I haven't figured out the whole deal yet myself, i'm coding without having the actual hardware myself, someone in Iceland is helping me

Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
Hi Ron,
The brand of dimmer is Hager, type TXA213.
I've programmed the addresses myself 1/0/0 for the on/off switch, 1/0/2 for dimming up/down.
In domotiga i now entered the following address 1/0/0|1/0/2|1/0/2.
Switching on and off works, dimming doesn't. But if i understand you correct, i need to program a third address which returns status (value)?
Did some debugging:
If i look with the vbusmonitor, the telegram from domotiga is two characters longer for dimming than it is when i send the telegram using the command line (groupswrite ip:127.0.0.1 1/0/2 FE). The command line command actually dims the light.
First line is dimming from domotiga, the second from command line.
I can make my system available for testing if you'd like. Just let me know if and when you would like to make some tests.
I'm also from Holland so communicating won't be a problem.
With regard to the EIB telegrams, i found this "calculator" http://eib.bertshtml.de/, perhaps you can use it.
The brand of dimmer is Hager, type TXA213.
I've programmed the addresses myself 1/0/0 for the on/off switch, 1/0/2 for dimming up/down.
In domotiga i now entered the following address 1/0/0|1/0/2|1/0/2.
Switching on and off works, dimming doesn't. But if i understand you correct, i need to program a third address which returns status (value)?
Did some debugging:
If i look with the vbusmonitor, the telegram from domotiga is two characters longer for dimming than it is when i send the telegram using the command line (groupswrite ip:127.0.0.1 1/0/2 FE). The command line command actually dims the light.
Code: Select all
$ vbusmonitor1 ip:127.0.0.1
LPDU: BC 00 00 08 02 F2 00 80 FE C5 :L_Data low from 0.0.0 to 1/0/2 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write FE
LPDU: BC 00 00 08 02 F1 00 BE 06 :L_Data low from 0.0.0 to 1/0/2 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 3E
I can make my system available for testing if you'd like. Just let me know if and when you would like to make some tests.
I'm also from Holland so communicating won't be a problem.
With regard to the EIB telegrams, i found this "calculator" http://eib.bertshtml.de/, perhaps you can use it.
Last edited by peevee on Fri Dec 10, 2010 12:44 am, edited 1 time in total.
Regards, Perry.