Openhab KNX datatype 5.005 ratio problem

Hi,

I’m reading some data on KNX and when i should receive value 20 openhab changes it to 51.
Does anyone know why?

Item

Number item_pingpong_read "Pingpong read" {autoupdate="true", knx="<5.005:10/5/5"}

Rule

rule "TEST KOMUNIKACIJE"
        when
                Time cron "0/15 * * * * ?"
        then
                logInfo("PP", "Test 1")
                var pingpong = item_pingpong_read.state
                logInfo("PP", "Test 2")
                if(pingpong == 20) {
                        logInfo("Pingpong", "Pingpong deluje")
                        sendCommand(item_pingpong_write, 10)
                } else {
                        logInfo("Pingpong", "Napaka")
                        sendCommand(item_com_err, 1)
                }
        end

Console output

7:42:30.044 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_com_err' received command 1
17:42:35.354 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong_read' received command 20
17:42:35.366 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong_read changed from 51 to 20
17:42:35.369 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong_read' received command 51
17:42:35.382 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong_read changed from 20 to 51
17:42:35.462 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong_read' received command 51
17:42:35.576 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong_read' received command 51
17:42:35.686 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong_read' received command 51

That log doesn’t show any log from your rule. It coves only to seconds, your rule runs only every 15 seconds!

I cannot give you whole console output because at the moment Raspberry is configured and it is in operation somewhere else but problem is that when i send value 20 with ETS to 10/5/5 openhab receives it but then suddenly it also recieves value 51 which was not sent from anywhere i i guess that it is datatype problem

Are you sure the DPT is correct (5.005)? I would look in that direction.

Do you have ETS software? What if you try to change the value on the KNX bus using ETS?

Usually your KNX device comes with some documentation, including DPT’s of your GA’s.

Sending value 1 from ETS to KNX 10/5/5 address

Karaf console:

13:59:15.976 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 1
13:59:15.986 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
13:59:15.986 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong changed from 51 to 1
13:59:16.005 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong changed from 1 to 51
13:59:16.096 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
13:59:16.206 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
13:59:16.318 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51

Item

Number item_pingpong "Pingpong" {knx="5.005:10/5/5" }

More detailed log

14:24:14.627 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending connection state request, attempt 1
14:24:14.973 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:24:24.971 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:24:25.682 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 15.15.241
14:24:25.687 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 15.15.242
14:24:25.701 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 1
14:24:25.713 [INFO ] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send message to 10/5/5, wait for confirmation
14:24:25.716 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: cEMI L-Data.req from 14.10.10 to 10/5/5, low priority hop count 6 repeat tpdu 00 80 01
14:24:25.718 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
14:24:25.719 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending cEMI frame seq 143, wait for cEMI.con, attempt 1 (channel 51) 06 10 04 20 00 16 04 33 8f 00 11 00 bc e0 ea 0a 55 05 02 00 80 01
14:24:25.726 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: received cEMI L-Data.con with req 135
14:24:25.729 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong changed from 51 to 1
14:24:25.733 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: confirmation of 10/5/5
14:24:25.740 [INFO ] [marthome.event.ItemStateChangedEvent] - item_pingpong changed from 1 to 51
14:24:25.741 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send to 10/5/5 succeeded
14:24:25.749 [DEBUG] [tuwien.auto.calimero                ] - process 192.168.1.122:3671: group write to 10/5/5 succeeded
14:24:25.752 [INFO ] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send message to 10/5/5, wait for confirmation
14:24:25.756 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: cEMI L-Data.req from 14.10.10 to 10/5/5, low priority hop count 6 repeat tpdu 00 80 33
14:24:25.759 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending cEMI frame seq 144, wait for cEMI.con, attempt 1 (channel 51) 06 10 04 20 00 16 04 33 90 00 11 00 bc e0 ea 0a 55 05 02 00 80 33
14:24:25.762 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: received cEMI L-Data.con with req 136
14:24:25.766 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: confirmation of 10/5/5
14:24:25.769 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send to 10/5/5 succeeded
14:24:25.773 [DEBUG] [tuwien.auto.calimero                ] - process 192.168.1.122:3671: group write to 10/5/5 succeeded
14:24:25.796 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 15.15.242
14:24:25.811 [INFO ] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send message to 10/5/5, wait for confirmation
14:24:25.805 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
14:24:25.814 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: cEMI L-Data.req from 14.10.10 to 10/5/5, low priority hop count 6 repeat tpdu 00 80 33
14:24:25.816 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending cEMI frame seq 145, wait for cEMI.con, attempt 1 (channel 51) 06 10 04 20 00 16 04 33 91 00 11 00 bc e0 ea 0a 55 05 02 00 80 33
14:24:25.817 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: received cEMI L-Data.con with req 138
14:24:25.818 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: confirmation of 10/5/5
14:24:25.819 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send to 10/5/5 succeeded
14:24:25.820 [DEBUG] [tuwien.auto.calimero                ] - process 192.168.1.122:3671: group write to 10/5/5 succeeded
14:24:25.909 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 15.15.242
14:24:25.916 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
14:24:25.920 [INFO ] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send message to 10/5/5, wait for confirmation
14:24:25.921 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: cEMI L-Data.req from 14.10.10 to 10/5/5, low priority hop count 6 repeat tpdu 00 80 33
14:24:25.923 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending cEMI frame seq 146, wait for cEMI.con, attempt 1 (channel 51) 06 10 04 20 00 16 04 33 92 00 11 00 bc e0 ea 0a 55 05 02 00 80 33
14:24:25.925 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: received cEMI L-Data.con with req 140
14:24:25.927 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: confirmation of 10/5/5
14:24:25.928 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send to 10/5/5 succeeded
14:24:25.929 [DEBUG] [tuwien.auto.calimero                ] - process 192.168.1.122:3671: group write to 10/5/5 succeeded
14:24:26.018 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 15.15.242
14:24:26.026 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'item_pingpong' received command 51
14:24:26.030 [INFO ] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send message to 10/5/5, wait for confirmation
14:24:26.033 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: cEMI L-Data.req from 14.10.10 to 10/5/5, low priority hop count 6 repeat tpdu 00 80 33
14:24:26.036 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending cEMI frame seq 147, wait for cEMI.con, attempt 1 (channel 51) 06 10 04 20 00 16 04 33 93 00 11 00 bc e0 ea 0a 55 05 02 00 80 33
14:24:26.040 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: received cEMI L-Data.con with req 142
14:24:26.042 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: confirmation of 10/5/5
14:24:26.043 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: send to 10/5/5 succeeded
14:24:26.045 [DEBUG] [tuwien.auto.calimero                ] - process 192.168.1.122:3671: group write to 10/5/5 succeeded
14:24:34.971 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:24:44.970 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:24:54.968 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:25:04.967 [DEBUG] [tuwien.auto.calimero                ] - calimero.link.192.168.1.122:3671: indication from 1.1.60
14:25:12.378 [WARN ] [e.sshd.server.channel.ChannelSession] - Unknown pty opcode value: 42
14:25:14.629 [DEBUG] [tuwien.auto.calimero                ] - KNXnet/IP Tunneling 192.168.1.122:3671: sending connection state request, attempt 1

Hi,
Very strange. I can only say it is unrelated to OpenHAB, since sending a “1” via ETS is returning a “51” on the KNX bus.

I propose you post your question on this forum: https://knx-user-forum.de. Many KNX experts are active there and I’m sure they will be able to help you.

Good luck!
Dries

1 Like