There’s no space between your xxxx
and "Xiaomi ..."
Thing mihome:sensor_magnet:xxxxxx "Xiaomi Door/Window Sensor - ..."
The same with bridge
There’s no space between your xxxx
and "Xiaomi ..."
Thing mihome:sensor_magnet:xxxxxx "Xiaomi Door/Window Sensor - ..."
The same with bridge
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.
Thank you very much
Bridge mihome:bridge:34ce00XXXXXX "Gateway 1" [ serialNumber="34ce00XXXXXX", ipAddress="192.168.1.120", port=9898, key="vre2l2riaeXXXXXX", pollingInterval=6000 ] {
Thing mihome:gateway:34ce00XXXXXX "Xiaomi Mi Smart Home Gateway 1" [itemId="34ce00XXXXXX"]
//Sensor_ht "Xiaomi Temperature Sensor" "Xiaomi Gateway 1"
Thing mihome:sensor_ht:158d000182642b "TH 1" [itemId="158d000182642b"]
Thing mihome:sensor_ht:158d000182e53f "TH 2" [itemId="158d000182e53f"]
Thing mihome:sensor_ht:158d000182eb02 "TH 3" [itemId="158d000182eb02"]
Thing mihome:sensor_ht:158d000182647f "TH 4" [itemId="158d000182647f"]
Thing mihome:sensor_ht:158d0001216ec3 "TH 5" [itemId="158d0001216ec3"]
Thing mihome:sensor_ht:158d0001a2bfda "TH 6" [itemId="158d0001a2bfda"]
//Sensor_magnet "Xiaomi Door Sensor" "Xiaomi Gateway 1"
Thing mihome:sensor_magnet:158d0001837f39 "Contacto 1" [itemId="158d0001837f39"]
Thing mihome:sensor_magnet:158d00014deed6 "Contacto 2" [itemId="158d00014deed6"]
Thing mihome:sensor_magnet:158d000183802f "Contacto 3" [itemId="158d000183802f"]
Thing mihome:sensor_magnet:158d0001a5e199 "Contacto 4" [itemId="158d0001a5e199"]
//Sensor_motion "Xiaomi Motion Sensor" "Xiaomi Gateway 1"
Thing mihome:sensor_motion:158d00014dca76 "Presencia 1" [itemId="158d00014dca76"]
Thing mihome:sensor_motion:158d000154a94d "Presencia 2" [itemId="158d000154a94d"]
Thing mihome:sensor_motion:158d0001592a7a "Presencia 3" [itemId="158d0001592a7a"]
Thing mihome:sensor_motion:158d00015c8782 "Presencia 4" [itemId="158d00015c8782"]
Thing mihome:sensor_motion:158d000113c693 "Presencia 5" [itemId="158d000113c693"]
Thing mihome:sensor_motion:158d000113c9e4 "Presencia 6" [itemId="158d000113c9e4"]
}
Bridge mihome:bridge:286c07XXXXXX "Gateway 2" [ serialNumber="286c07XXXXXX", ipAddress="192.168.1.124", port=9898, key="wgv6l8ijnuXXXXXX", pollingInterval=6000 ] {
Thing mihome:gateway:286c07XXXXXX "Xiaomi Mi Smart Home Gateway 2" [itemId="286c07f09916"]
//Sensor_ht "Xiaomi Temperature Sensor" "Xiaomi Gateway 2"
Thing mihome:sensor_ht:158d0001216dff "TH 7" [itemId="158d0001216dff"]
Thing mihome:sensor_ht:158d0001a2a9ce "TH 8" [itemId="158d0001a2a9ce"]
Thing mihome:sensor_ht:158d0001216d17 "TH 9" [itemId="158d0001216d17"]
Thing mihome:sensor_ht:158d0001216ec9 "TH 10" [itemId="158d0001216ec9"]
Thing mihome:sensor_ht:158d0001217171 "TH 11" [itemId="158d0001217171"]
Thing mihome:sensor_ht:158d00012171c7 "TH 12" [itemId="158d00012171c7"]
Thing mihome:sensor_ht:158d0001216e32 "TH 13_1" [itemId="158d0001216e32"]
Thing mihome:sensor_ht:158d0001235534 "TH 13_2" [itemId="158d0001235534"]
//Sensor_magnet "Xiaomi Door Sensor" "Xiaomi Gateway 2"
Thing mihome:sensor_magnet:158d00016fd932 "Contacto 7_1" [itemId="158d00016fd932"]
Thing mihome:sensor_magnet:158d00018378a9 "Contacto 7_2" [itemId="158d00018378a9"]
Thing mihome:sensor_magnet:158d0001837958 "Contacto 7_3" [itemId="158d0001837958"]
Thing mihome:sensor_magnet:158d00015cd423 "Contacto 8_1" [itemId="158d00015cd423"]
Thing mihome:sensor_magnet:158d0001875fb0 "Contacto 8_2" [itemId="158d0001875fb0"]
Thing mihome:sensor_magnet:158d0001837981 "Contacto 10" [itemId="158d0001837981"]
Thing mihome:sensor_magnet:158d00016c75b4 "Contacto 10_2" [itemId="158d00016c75b4"]
Thing mihome:sensor_magnet:158d00018379e0 "Contacto 11" [itemId="158d00018379e0"]
//Sensor_motion "Xiaomi Motion Sensor" "Xiaomi Gateway 2"
Thing mihome:sensor_motion:158d000113c688 "Presencia 7" [itemId="158d000113c688"]
Thing mihome:sensor_motion:158d000113c7d1 "Presencia 8" [itemId="158d000113c7d1"]
Thing mihome:sensor_motion:158d000154865b "Presencia 9" [itemId="158d000154865b"]
//Thing mihome:sensor_motion:158d0001XXXXXX "Presencia 10" [itemId="158d0001XXXXXX"]
//Thing mihome:sensor_motion:158d0001XXXXXX "Presencia 11" [itemId="158d0001XXXXXX"]
//Thing mihome:sensor_motion:158d0001XXXXXX "Presencia 12" [itemId="158d0001XXXXXX"]
}
Hi,
I also still have this issue. Seems to be not fixed until now.
I has the issue as well, once i changed to the correct thing config, the errors are gone:
Bridge mihome:bridge:34ce00000000 "Xiaomi Gateway Bridge" @ "Eerste verdieping" [serialNumber="34ce00000000", ipAddress="IPADDRESS", port=9898, key="KEY", pollingInterval=1000 ] {
Things:
sensor_magnet 158d00016fd9xx "Xiaomi Door Sensor Voordeur" @ "Begane grond" [itemId="158d00016fd9xx"]
gateway 34ce00907exx "Xiaomi Mi Smart Home Gateway" @ "Eerste verdieping" [itemId="34ce00907exx"]
sensor_motion 158d00015e7bxx "Xiaomi Motion Sensor Overloop" @ "Zolder" [itemId="158d00015e7bxx"]
sensor_motion 158d000121c4xx "Xiaomi Motion Sensor Kantoor" @ "Eerste verdieping" [itemId="158d000121c4xx"]
sensor_motion_aq2 158d00016db7xx "Xiaomi Motion Sensor Keuken" @ "Begane grond" [itemId="158d00016db7xx"]
sensor_magnet 158d0001d839xx "Xiaomi Door Sensor Achterdeur" @ "Begane grond" [itemId="158d0001d839xx"]
sensor_magnet 158d00019fe7xx "Xiaomi Door Sensor Kantoor" @ "Eerste verdieping" [itemId="158d00019fe7xx"]
sensor_magnet 158d0001d825xx "Xiaomi Door Sensor Spacecave" @ "Zolder" [itemId="158d0001d825xx"]
sensor_weather_v1 158d0001e412xx "Xiaomi Temp/humid/baro Sensor Keuken" @ "Begane grond" [itemId="158d0001e412xx"]
sensor_switch 158d00016c0axx "Xiaomi Mi Wireless Switch Kantoor" @ "Eerste verdieping" [itemId="158d00016c0axx"]
}
OH 2.1 can’t communicate Mi Gateway with enabled iptables.
Which rules for iptables will open Mi Gateway?
The binding requires port 9898 to be open.
See the binding documentation at http://docs.openhab.org/addons/bindings/mihome/readme.html#full-example
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…?
I get the errors again, i´m on 2.3 snapshot #1232.
Any idea?
Bridge mihome:bridge:f0b429cxxxxx "Xiaomi Mi Smart Home Bridge" [ serialNumber="f0b429cxxxxx", ipAddress="192.168.xx.xx", port=9898, key="xxxxxqntud5xxxxx", pollingInterval=6000 ] {
Thing mihome:gateway:f0b429cxxxxx "Xiaomi Mi Smart Home Gateway" [ itemId="f0b429cxxxxx" ]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 1" [ itemId="158d00015xxxxx" ]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 2" [itemId="158d00015xxxxx"]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 3" [itemId="158d00015xxxxx"]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 4" [itemId="158d00015xxxxx"]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 5" [itemId="158d00015xxxxx"]
Thing mihome:sensor_ht:158d00015xxxxx "Xiaomi Mi Temperature & Humidity Sensor 6" [itemId="158d00015xxxxx"]
Thing mihome:sensor_ht:158d00018xxxxx "Xiaomi Mi Temperature & Humidity Sensor 7" [itemId="158d00018xxxxx"]
Thing mihome:sensor_ht:158d00018xxxxx "Xiaomi Mi Temperature & Humidity Sensor 8" [itemId="158d00018xxxxx"]
Thing mihome:sensor_weather_v1:158d00017xxxxx "Xiaomi Aqara Temperature & Humidity Sensor 9" [itemId="158d00017xxxxx"]
Thing mihome:sensor_weather_v1:158d00017xxxxx "Xiaomi Aqara Temperature & Humidity Sensor 10" [itemId="158d00017xxxxx"]
Thing mihome:sensor_switch:158d00013xxxxx "Xiaomi Mi Wireless Switch 1" [itemId="158d00013xxxxx"]
Thing mihome:86sw2:158d00012xxxxx "Xiaomi Aqara Wireless Wall Switch 1" [itemId="158d00012xxxxx"]
Thing mihome:sensor_magnet:158d00012xxxxx "Xiaomi Mi Contact 1" [itemId="158d00012xxxxx"]
Thing mihome:sensor_plug:158d00020xxxxx "Xiaomi Steckdose" [itemId="158d00020xxxxx"]
}
SAme here
Switching to GUI generated things solved that for me … much more comfortable than flat files.
I want to keep my good old text-file based configuration.
Same for me. But I only use GUI config for things, all others are text files.
Did anyone get this to work? I’m on openhabian 2.3 and definitely not wanting to go back to jsondb / gui for things as that failed me badly twice.
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.
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 !
Cheers
Chris
After changing things file to new format the errors gone out but in the interface is the discovered items
Things:
sensor_magnet_aq2 158d000237c9c0 "Xiaomi Aqara Door/Window Sensor MyRoom" [itemId="158d000237c9c0"]
Thing mihome:sensor_magnet_aq2:158d000237c9c0 "Xiaomi Aqara Door/Window Sensor MyRoom" [itemId="158d000237c9c0"]
if i specify it in two formats i don’t see it in discovery elements, WHY?
Your bridge and gateway have different id’s
(the documentation shows they can all be the same)
How did you determine the gateway id?
mihome:bridge:34ce00000000
gateway 34ce00907exx
Can someone tell me, if i have to still use a rule to get the xiaomi wireless switch (round one) working?
when xxx triggered
then
…
Or is this working with a switch item now? I can´t get my wireless switch working. In mi home app i can see the actions inside the log, but in openhab, i don´t get anything. My other sensors (temp) work.
It’s a button (Taster ,DE) and not a switch (Schalter ,DE). Therefore it has not a state and as a stateless device it’s only controllable via rules.
Now i got it working again. I copied the new item format from a temp-sensor (sensor_ht) and only changed the id, so the button was still called sensor_ht instead of sensor_switch…
Now it works again.