KNX1 to KNX2 Migration Steps

openhab2
knx
knx2
Tags: #<Tag:0x00007fd30f9e40c8> #<Tag:0x00007fd3118a7e60> #<Tag:0x00007fd3118a7c30>

(philippe s) #21

Fuzzy, what DPT are the GA’s?
I also have a bunch of GA that are not tied to any target and seem to work.
My only issue so far is with scene DPT (17.001 and 18.001), the rest so far seems to work.


(Udo Hartmann) #22

See https://github.com/openhab/openhab2-addons/issues/3686


(markus_pfleger) #23

Hi,

I also want to migrate to knx2. I updated to openhab 2.3 and it seems I have both bindings installed now. What I am wondering now, is it possible to have some of my items still on knx1 and some of them already in knx2?

I have quite a huge config and will not be able to migrate all at once. So what I wanted to do is take one item of my knx1 config. Create a new items file for my knx2 config and migrate them one by one. Will this work that way?

Thanks


(Udo Hartmann) #24

Did you enable legacy bindings before upgrading to OH2.3? Otherwise, openHAB should have uninstalled knx1.

I don’t know if it’s possible to to use knx1 and knx2 competitively, though there is no real reason why that shouldn’t be possible. Of course both knx1 and knx2 will need a separate communication to the knx bus, so if using a knx/IP tunneling interface, you will need at least 2 tunnels (most modern interfaces support up to 5 tunnels)
Another thing is, you will have to ensure there is no overlapping in group addresses between knx1 and knx2.


(Angelos) #25

I believe that this would be a problem, since both (KNXv1 & KNXv2) use the same Service PID name space (org.openhab.knx) in the ConfigAdmin, so you wouldn’t be able to setup 2 sets of parameters.


(Udo Hartmann) #26

Oh, I thought the knx1 binding was renamed to knx1 and that this renaming took place also for configuration?!?


(Angelos) #27

This naming convention (knx1) applies for some areas (like for the addons.cfg)
I just checked in the console (in 2 different OH2 installations, one with knx1 and another with knx2) and both store their config on the same pid config:list "(service.pid=org.openhab.knx)"

It seems like a design/planning “mistake” :slight_smile: but most likely this is intended (because the developers don’t want to allow a parallel installation of a legacy 1.x and 2.x binding)


(Christian) #28

Hi,
finally got KNX2 working (fresh & clean OH2.3 install). Quick question: I’ve got integrated temperature sensors in my room switches - do I have to create a [Thing device] for each of them in my knx.things or can I use something like a generic one to retrieve all temperature-GAs within one?

Thanks & BR,
CSI


(Udo Hartmann) #29

You are free to define a generic Thing or use individual ones…

As I want to benefit from ping-device, I defined all knx devices in my knx.things file and set up all sensors where they belong to, but that is only my definition :slight_smile:


(Christian) #30

Hi @Udo_Hartmann! Many thanks for your reply - sounds like a plan :slight_smile:!