I have updated to release OH2.1 binding and followed the setup doc for the binding. After adding all things I get following error in the openhab.log:
[INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘xiaomi.things’, using it anyway:
Provide a thing type ID and a thing ID in this format:
" thingTypeId thingId"
It is hard to tell (it would be easier if you used code fences, sixth icon from the right) but you could be lacking a space between your Thing ID and the Label and again between the label and the [itemId=].
I don’t know if that is a copy and paste artifact or the spaces are indeed missing. The spaces must be there though.
For problems like these, particularly when they are syntax errors, the first thing you should do is load the files into ESH Designer and look for red underlines.
Good afternoon, colleagues, I have the same problem. I think I have it as in the example, but it shows me the following error
2017-09-12 19:38:36.867 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘xiaomi.things’, using it anyway:
Provide a thing type ID and a thing ID in this format:
Can someone show me where I have the error?
Randomly load the Gateway and the second to load this almost 4 minutes until it starts loading the items.
I got my Things running with this one also - but the auto-detect ones still keep coming up in the Inbox. Because the ones from the Things file go with mihome:sensor_switch:34ce00000000:158d00016fd9xx, whereas the auto-detected ones go with mihome:sensor_switch:158d00016fd9xx only. No big deal, but is there a way to define the Things in the file that way? I don’t think so, as they fail connecting to the bridge then…?
still using the Syntax from above and it’s working (despite the auto-detect coming up and populating PaperUI with the exact same Things, but no side effects):
Thank you, Thomas, I finally got it to work with your suggestion AND - this might help others in my situation - fixing all Items.
The things were recognised in PaperUI once I defined them as @ricadelic suggested.
The channels where however not linked to the items, nothing was working
Things that I added experimentally again via Inbox worked and were linked. I noticed that they had a shorter channel than the ones I defined in the text file.
I re-read this thread and stumbled upon @binderth post about reappearing items and the additional channel component - THAT WAS IT!
-> I needed to add this additional channel component referencing the gateway/bridge to the Items I had defined (a long time before I went on the Things-file-way-of-life)
So THIS:
Contact XiaomiKontaktsensorBadFenster_IsOpen "BA Fenster Open Status" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:7811dcb25336:158d0002011819:isOpen"}
DateTime XiaomiKontaktsensorBadFenster_LastOpened "BA Fenster Last Time Opened [%1$tY-%1$tm-%1$td %1$tH:%1$tM]" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:7811dcb25336:158d0002011819:lastOpened"}
Number XiaomiKontaktsensorBadFenster_IsOpenAlarmTimer "BA Fenster Alarm Timer" (GR_Xiaomi_Sensoren_Kontakt, GR_Xiaomi_Sensoren_Kontakt_AlarmTimer) {channel="mihome:sensor_magnet:7811dcb25336:158d0002011819:isOpenAlarmTimer"}
Number XiaomiKontaktsensorBadFenster_BatteryLevel "BA Fenster Batterieladung" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:7811dcb25336:158d0002011819:batteryLevel"}
Switch XiaomiKontaktsensorBadFenster_LowBattery "BA Fenster Niedriger Batteriestatus" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:7811dcb25336:158d0002011819:lowBattery"}
Switch XiaomiKontaktsensorBadFenster_OpenState "Das Badezimmerfenster" (GR_Xiaomi_Sensoren_Kontakt_OpenState)
instead of this:
Contact XiaomiKontaktsensorBadFenster_IsOpen "BA Fenster Open Status" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:158d0002011819:isOpen"}
DateTime XiaomiKontaktsensorBadFenster_LastOpened "BA Fenster Last Time Opened [%1$tY-%1$tm-%1$td %1$tH:%1$tM]" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:158d0002011819:lastOpened"}
Number XiaomiKontaktsensorBadFenster_IsOpenAlarmTimer "BA Fenster Alarm Timer" (GR_Xiaomi_Sensoren_Kontakt, GR_Xiaomi_Sensoren_Kontakt_AlarmTimer) {channel="mihome:sensor_magnet:158d0002011819:isOpenAlarmTimer"}
Number XiaomiKontaktsensorBadFenster_BatteryLevel "BA Fenster Batterieladung" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:158d0002011819:batteryLevel"}
Switch XiaomiKontaktsensorBadFenster_LowBattery "BA Fenster Niedriger Batteriestatus" (GR_Xiaomi_Sensoren_Kontakt) {channel="mihome:sensor_magnet:158d0002011819:lowBattery"}
Switch XiaomiKontaktsensorBadFenster_OpenState "Das Badezimmerfenster" (GR_Xiaomi_Sensoren_Kontakt_OpenState)
Thanks to the great openhab community my Xiaomis are up and running again! T H A N K Y O U !