I understood that we can use different items files and rules files.
Can I also use two different things file?
I have a bus which I need to access for different functions. The only problem is a few physical switches have Physical address “1.1.9” while few have “1.1.10”.
This was my initial things file with just one localSourceAddr.
Bridge knx:ip:bridge [
ipAddress="127.0.0.1",
portNumber=3671,
localIp="192.168.1.22",
type="TUNNEL",
ignorelocalevents=true,
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="1.1.9"
] {
Thing knx:device:bridge:generic {
Type switch-control : controlSwitch1 "Control Switch Left1" [ ga="<0/0/51" ]
Type switch-control : controlSwitch2 "Control Switch Left2" [ ga="<0/0/52" ]
Type switch-control : controlSwitch3 "Control Switch Left3" [ ga="<0/0/53" ]
Type switch-control : controlSwitch4 "Control Switch Others" [ ga="<0/0/54" ]
Type switch-control : controlSwitch5 "Control Switch Centre" [ ga="<0/0/55" ]
}
}
When I try to modify it as below:
Thing knx:device:bridge:generic "Address 1" @ "KNX" [
ipAddress="127.0.0.1",
portNumber=3671,
localIp="192.168.1.22",
type="TUNNEL",
ignorelocalevents=true,
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="1.1.9"
] {
Type switch-control : controlSwitch1 "Control Switch Left1" [ ga="<0/0/51" ]
Type switch-control : controlSwitch2 "Control Switch Left2" [ ga="<0/0/52" ]
Type switch-control : controlSwitch3 "Control Switch Left3" [ ga="<0/0/53" ]
Type switch-control : controlSwitch4 "Control Switch Others" [ ga="<0/0/54" ]
Type switch-control : controlSwitch5 "Control Switch Centre" [ ga="<0/0/55" ]
Type switch-control : f1 "Signal Switch for Left1" [ ga="<0/0/3" ]
Type switch-control : f2 "Signal Switch for Left2" [ ga="<0/0/4" ]
Type switch-control : f3 "Signal Switch for Left3" [ ga="<0/0/5" ]
Type switch-control : f4 "Signal Switch for Others" [ ga="<0/0/6" ]
Type switch-control : f5 "Signal Switch for Centre" [ ga="<0/0/7" ]
Type dimmer-control : dimmer1 "Dimmer for Left_Lights1" [ ga="<0/0/3" ]
Type dimmer-control : dimmer2 "Dimmer for Left_Lights2" [ ga="<0/0/4" ]
Type dimmer-control : dimmer3 "Dimmer for Left_Lights3" [ ga="<0/0/5" ]
Type dimmer-control : dimmer4 "Dimmer for Centre_Lights" [ ga="<0/0/6" ]
Type dimmer-control : dimmer5 "Dimmer for Other_Lights" [ ga="<0/0/7" ]
}
Thing knx:device:bridge:generic "Address 2" @ "KNX"[
ipAddress="127.0.0.1",
portNumber=3671,
localIp="192.168.1.22",
type="TUNNEL",
ignorelocalevents=true,
readingPause=50,
responseTimeout=10,
readRetriesLimit=3,
autoReconnectPeriod=1,
localSourceAddr="1.1.10"
] {
Type switch-control : controlSwitch6 "All Lights" [ ga="<0/0/16" ]
Type switch-control : controlSwitch10 "Projector" [ ga="0/0/1+<0/0/2" ]
}
I get the following error:
==> /var/log/openhab2/events.log <==
2018-09-05 09:13:45.028 [hingStatusInfoChangedEvent] - 'knx:device:bridge:generic' changed from UNINITIALIZED to INITIALIZING
2018-09-05 09:13:45.034 [hingStatusInfoChangedEvent] - 'knx:device:bridge:generic' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR): The bridge must not be null and must be initialized
If I use two different things file, I get the following error:
2018-09-05 09:39:57.765 [WARN ] [ore.common.registry.AbstractRegistry] - ThingImpl with key 'knx:device:bridge:generic' already exists from provider GenericThingProvider! Failed to add a second with the same UID from provider GenericThingProvider!
What should I do?