Xiaomi Mi Smart Home

My xiaomi.things is based from docs but I have errors in the 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>
Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>
Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>
Provide a thing type ID and a thing ID in this format:
 <thingTypeId> <thingId>

Why? What’s wrong?
Thanks

there’s been a change in the thing-configuration:
you have to provide the Things within the Bridge, but with another synytax:

Bridge  mihome:bridge:34ce00xxxxxx			"Xiaomi Gateway Bridge"		@ "Rossbuehel OG"	[serialNumber="34ce00xxxxxx", ipAddress="192.168.xx.xx", port=9898, key="xxx", pollingInterval=1000 ] 
{
	Things:
		gateway			34ce00xxxxxx	"Xiaomi Mi Smart Home Gateway"	@ "Rossbuehel OG"	[itemId="34ce00xxxxxx"]
		sensor_motion_aq2	158d0001xxxxx	"Xiaomi Motion Sensor"		@ "Rossbuehel Eingang"	[itemId="158d0001xxxxx"]
		sensor_weather_v1	158d0001xxxxx	"Xiaomi Temp/humid/baro Sensor"	@ "Rossbuehel OG"	[itemId="158d0001xxxxx"]
		sensor_switch		158d0001xxxxx	"Xiaomi Mi Wireless Switch"	@ "Rossbuehel Eingang"	[itemId="158d0001xxxxx"]
		smoke			158d0001xxxxx	"Xiaomi Smoke Detector"		@ "Rossbuehel OG"	[itemId="158d0001xxxxx"]
}
1 Like

It works. Where is it into doc?

not updated, I’m afraid… there’s the old syntax there.

I reconfigured my old xiaomit things file to the new syntax. Now i get all my old things back, but additionally, i get a gateway and a sensor_switch in my paper ui inbox.

But they are online already in things…

What can i do? I want to keep the things-file manually.

Either leave those in your inbox or set “Auto ignore” to true.

But this is not fixing the problem, it´s only cosmetic.

is not cosmetic.

i have try to change to the new syntax … for no error in log. But after change the xiaomi sensors doesn’t work.

old version thing file:

Bridge mihome:bridge:7811dcb8e6xx "EG_Xiaomi Gateway" [ serialNumber="7811dcb8e6xx", ipAddress="192.168.0.1xx", port=9898, key="6416995F20xxxxxx", pollingInterval=6000 ] 
{
    Thing mihome:gateway:7811dcb8e6xx "EG_Xiaomi Mi Smart Home Gateway" @ "EgWz" [itemId="7811dcb8e6xx"]
    Thing mihome:sensor_switch:158d000210b5xx "EgWz Button" @ "EgWz" [itemId="158d000210b5xx"]
    Thing mihome:sensor_magnet:158d00026aefxx "EgWz Sensor Door" @ "EgWz" [itemId="158d00026aefxx"] // Türsensor Sitzplatz
    Thing mihome:sensor_magnet:158d00027b26xx "EgEz Sensor Door" @ "EgEz" [itemId="158d00027b26xx"] // Türsensor Türe Esszimmer
}

Bridge mihome:bridge:7811dcb8e8xx "OG_Xiaomi Gateway" [ serialNumber="7811dcb8e8xx", ipAddress="192.168.0.1xx", port=9898, key="23C9AD74xxxxxxxx", pollingInterval=6000 ] 
{
    Thing mihome:gateway:7811dcb8e8xx "OG_Xiaomi Mi Smart Home Gateway" @ "Og" [itemId="7811dcb8e8xx"]
}

Bridge mihome:bridge:7811dcb9e2xx "GG_Xiaomi Gateway" [ serialNumber="7811dcb9e2xx", ipAddress="192.168.0.1xx", port=9898, key="9878E232xxxxxxxx", pollingInterval=6000 ] 
{
    Thing mihome:gateway:7811dcb9e2xx "GG_Xiaomi Mi Smart Home Gateway" @ "Gg" [itemId="7811dcb9e2xx"]
}

Thing File with new Syntax:

Bridge mihome:bridge:7811dcb8e6xx "EG_Xiaomi Gateway" @ "EgWz" [serialNumber="7811dcb8e6xx", ipAddress="192.168.0.1xx", port=9898, key="6416995Fxxxxxxxx", pollingInterval=6000] 
{
    Things:
        gateway         7811dcb8e6xx    "EG_Xiaomi Mi Smart Home Gateway"   @ "EgWz" [itemId="7811dcb8e6xx"]
        sensor_switch   158d000210b5xx  "EgWz Button"                       @ "EgWz" [itemId="158d000210b5xx"]
        sensor_magnet   158d00026aefxx  "EgWz Sensor Door"                  @ "EgWz" [itemId="158d00026aefxx"] // Türsensor Sitzplatz
        sensor_magnet   158d00027b26xx  "EgEz Sensor Door"                  @ "EgEz" [itemId="158d00027b26xx"] // Türsensor Türe Esszimmer
}

Bridge mihome:bridge:7811dcb8e8xx "OG_Xiaomi Gateway" [ serialNumber="7811dcb8e8xx", ipAddress="192.168.0.1xx", port=9898, key="23C9AD74xxxxxxxx", pollingInterval=6000 ] 
{
    Things:
        gateway         7811dcb8e8xx    "OG_Xiaomi Mi Smart Home Gateway"   @ "Og"   [itemId="7811dcb8e8xx"]
}

Bridge mihome:bridge:7811dcb9e2xx "GG_Xiaomi Gateway" [ serialNumber="7811dcb9e2xx", ipAddress="192.168.0.1xx", port=9898, key="9878E232xxxxxxxx", pollingInterval=6000 ] 
{
    Things:
        gateway             7811dcb9e2xx    "GG_Xiaomi Mi Smart Home Gateway"   @ "Gg" [itemId="7811dcb9e2xx"]
}

Definition of 1st door sensor: (the same for old and new syntax)

Contact EgEz_SensorDoor_Status "EgEz Sensor Door Status" (gMySQL_Sensors) {channel="mihome:sensor_magnet:158d00027b26xx:isOpen"}

Entry of Door Sensor in Openhab.log (the door sensor is not included via thing file):
2018-08-25 15:51:56.392 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘mihome:sensor_magnet:158d00026aefxx’ to inbox.

With the old syntax, the door sensor works, when i change to the new syntax (only in thing-file), the door sensor doesn’t work. What’s the problem?

I have the syntax of

thing a b c
thing x y z

on

things:
a b c
x y z

changed and it seems to work. But the entries in the log are still:
Provide a thing type ID and a thing ID in this format: