Hello,
anybody using Xiaomi/Honeywell smoke detector?
i already using the Xiaomi Gateway with some temperature sensors and switch buttons. but now i added some Smoke Detectors.
The Binding found all connected detectors and i add some items/sitemaps on openhab.
But i can’t read the values. only battery value is 100%
Frame label="Wonhnzimmer" {
Text item=WZSmokeDetector_Density label="Luftdichte [%.1f]"
Text item=WZSmokeDetector_Alarmihome label="Feueralarm"
Text item=WZSmokeDetector_Battery label="Batterie [%.1f %%]"
Text item=WZSmokeDetector_Status label="Status [%s]"
Text item=WZSmokeDetector_BatteryLow label="Batterie leer [%s]"
}
After restarting everything works fine. - but smoke sensor still have no output.
I didn’t use Items in PaperUi because i add all Items in config file.
Here are the Screenshot with of the thing:
It still not working.
Why i should remove the binding configuration? I use Weather sensors and switches too and it works with the same way:
Number MasterBedroom_Humidity "Luftfeuchtigkeit" <humidity> (MasterBedroom, gHumidity) { channel="mihome:sensor_weather_v1:158d0001f55be1:humidity"}
Number MasterBedroom_Temperature "Temperatur" <temperature> (MasterBedroom, gHumidity) { channel="mihome:sensor_weather_v1:158d0001f55be1:temperature"}
Number MasterBedroom_Battery "Batterie" <battery> (MasterBedroom, gBattery) { channel="mihome:sensor_weather_v1:158d0001f55be1:batteryLevel"}
Actually OH2 log only errors. I remember that i have modify some config files for disabling Info-Logs. only State changes and errors are logged. But i didn’t get any errors now
What does PaperUI,Control show?
Post the state changes please.
I think, you don’t need this definition for 2.3., because you use things and channels in PaperUI, so I would check, if it works without.
PaperUi didn‘t show the Smoke Detector Items in Control-Board, it only shows in BasicUi. I will make some smoke tests to get more results of smoke detectors.
I am not sure if your case is the same as mine. However, I am going to share my workaround that could help someone else.
I am using Xiaomia Smoke Detector with deConz Raspbee, nothing is properly transmitted to OpenHAB but the “Last Updated” item. When any change happens with the Smoke Detector (like fire alarm is on), only the Last Updated value will change.
I used that as a trigger and made a rule to get the value of the $.state.fire using HTTP Get.
rule "Check Fire Alarm Status"
when
Item TestSwitch changed
then
val String myString = sendHttpGetRequest("http://192.168.1.12:80/api/E4618457B9/sensors/5")
val String isFire = transform("JSONPATH", "$.state.fire", myString)
sendTelegram("myMobile", "Fire Alarm of Test Smoke Detector is " + isFire)
end