Habpanel / Xiaomi Humidity Temperature Pressure sensor

Widget designed for 2x2 habpanel dashboard grid
Note: Use 100% of browser zoom




things/*.things file:
Thing mihome:sensor_weather_v1:YOUR ID "Xiaomi Temperature Sensor" [itemId="YOUR ID"]

items/*.items file:
//Xiaomi Temperature and Humidity Sensor
Number HT_Temperature "Temperature"  { channel="mihome:sensor_weather_v1:YOUR ID:temperature" }
Number HT_Humidity "Humidity"  { channel="mihome:sensor_weather_v1:YOUR ID:humidity" }
Number HT_Pressure "Pressure"  { channel="mihome:sensor_weather_v1:YOUR ID:pressure" }
Number HT_Battery "Battery"  { channel="mihome:sensor_weather_v1:YOUR ID:batteryLevel" }
Switch HT_BatteryLow "Battery Low"  { channel="mihome:sensor_weather_v1:YOUR ID:lowBattery" }

sitemaps/*.sitemap file:
Frame label="Xiaomi Huidity Sensor" {
   Text item=HT_Temperature label="Temperature [%.1f °C]"
   Text item=HT_Humidity label="Humidity [%.1f %%]" icon="humidity"
   Text item=HT_Pressure label="Pressure [%.1f kPa]" icon="pressure"
   Text item=HT_Battery label="Battery [%s %%]"
}

persistence/mysql.persist file:
HT_Temperature : strategy = everyChange, everyDay, restoreOnStartup
HT_Humidity : strategy = everyChange, everyDay, restoreOnStartup
HT_Pressure : strategy = everyChange, everyDay, restoreOnStartup
HT_Battery : strategy = everyChange, everyDay, restoreOnStartup