Hi,
I have I Xiaomi Gateway and two Temp and Hum sensor with pressure (V2).
Configuration like this:
Bridge mihome:bridge:7811dcb7e00d "Xiaomi Gateway" @ "Xiaomi" [ serialNumber="7811dcb7e00d", ipAddress="XXXXXXXXXX", port=9898, key="XXXXXXXX", pollingInterval=6000 ] {
Thing mihome:gateway:7811dcb7e00d "Xiaomi Mi Smart Home Gateway" @ "Xiaomi" [itemId="7811dcb7e00d"]
Thing mihome:sensor_weather_v1:158d0001f508a6 "Xiaomi Aqara Temperature, Humidity & Pressure Sensor TH1" @ "Xiaomi" [itemId="158d0001f508a6"]
Thing mihome:sensor_weather_v1:158d0001fa5b23 "Xiaomi Aqara Temperature, Humidity & Pressure Sensor TH2" @ "Xiaomi" [itemId="158d0001fa5b23"]
}
In Karaf console:
mihome:bridge:7811dcb7e00d (Type=Bridge, Status=ONLINE, Label=Xiaomi Gateway, Bridge=null)
mihome:gateway:7811dcb7e00d (Type=Thing, Status=ONLINE, Label=Xiaomi Mi Smart Home Gateway, Bridge=mihome:bridge:7811dcb7e00d)
mihome:sensor_weather_v1:158d0001f508a6 (Type=Thing, Status=ONLINE, Label=Xiaomi Aqara Temperature, Humidity & Pressure Sensor TH1, Bridge=mihome:bridge:7811dcb7e00d)
mihome:sensor_weather_v1:158d0001fa5b23 (Type=Thing, Status=ONLINE, Label=Xiaomi Aqara Temperature, Humidity & Pressure Sensor TH2, Bridge=mihome:bridge:7811dcb7e00d)
But from time to time I lose connection with one sensor. In the original mobile application MiHome, I see that the sensor is unavailable. But unfortunately in mihome binding thing is still online.
Where does the original application know that the sensor is unavailable and can you implement such functionality in mihome binding?
I use stable version of OpenHab2:
majherek@atom:~$ dpkg -l |grep openhab
ii openhab2 2.2.0-1 all openhab2
ii openhab2-addons 2.2.0-1 all openhab2-addons
openhab> feature:list |grep -i mihome
openhab-binding-mihome │ 2.2.0 │ x │ Started │ openhab-addons-2.2.0 │ Xiaomi Mi Smart Home Binding