I have a problem to get the textual config in a .thing to run. Auto discovery runs fine.
- I use the 2.2.0 SNAPSHOT Build #1035
- Receiver is a RX-A2060
I started with two things definitions for the yamahaAV and the Main_Zone:
Thing yamahareceiver:yamahaAV:rx-a2060 [ HOST="RX-A2060.fritz.box" ]
Thing yamahareceiver:zone:rx-a2060:Main_Zone [ HOST="RX-A2060.fritz.box"]
The Receiver got online and worked well. The Thing for Main_Zone alway had the status ‘UNINITIALIZED’ in the PaperUI. To compare the differences between the manual and the discovered items are, I jumped to the Karaf Console
yamahareceiver:yamahaAV:9ab0c000_f668_11de_9976_00a0dedcff7e (Type=Bridge, Status=ONLINE, Label=Yamaha Receiver RX-A2060, Bridge=null)
yamahareceiver:zone:9ab0c000_f668_11de_9976_00a0dedcff7e:Main_Zone (Type=Thing, Status=ONLINE, Label=RX-A2060 Main_Zone Discover, Bridge=yamahareceiver:yamahaAV:9ab0c000_f668_11de_9976_00a0dedcff7e)
yamahareceiver:yamahaAV:rx-a2060 (Type=Bridge, Status=ONLINE, Label=Yamaha Receiver, Bridge=null)
yamahareceiver:zone:rx-a2060:Main_Zone (Type=Thing, Status=UNINITIALIZED (HANDLER_CONFIGURATION_PENDING), Label=Yamaha Receiver Zone, Bridge=null)
As you see the discovered Main_Zone thing has the yamahaAV thing as a bridge assigned, the manual not. And if I look in the PaperUI, there is no Zone assigned for the manual configured Thing.
After figuring this out I tried to define the yamahaAV as the bridge for the Main_Zone like
Bridge yamahareceiver:yamahaAV:rx-a2060 [ HOST="RX-A2060.fritz.box" ]
{
Thing yamahareceiver:zone:rx-a2060:Main_Zone [ HOST="RX-A2060.fritz.box"]
}
Now I get warnings in the log
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
but the bridge is assigned.
receiver:zone:rx-a2060:Main_Zone (Type=Thing, Status=UNINITIALIZED (HANDLER_CONFIGURATION_PENDING), Label=Yamaha Receiver Zone, Bridge=yamahareceiver:yamahaAV:rx-a2060)
I still does not work and in the PaperUI is no zone assigned to the Main_Zone Thing.
Can anyone please send an example for a working .thing file.
Thanks a lot!