Thanks @gersilex for the nice widget.
I imported this to my habpanel yesterday and I am trying to play with it a little bit.
Currently in my house I have temperature sensors in different rooms and what I am trying to do is to show a notification (with label and current temperature value) if the temperature is higher than a certain value.
I have succeeded in the first part (showing notification) but couldn’t be able to show the value.
Note: I tested this on the high temperature (above 27)
my items file:
Group:Switch:OR(ON, OFF) notifications "Notification group"
String notification_temperature_high "🌡️ Temperature is high [%s]" (notifications) ["glow", "btn-warning"]
Switch notification_temperature_low "🌡️ Temperature is low" (notifications) ["glow", "btn-info"]
my rule file:
rule "temp notification"
when
Item test_room_temp changed
then
if (test_room_temp.state > BR2AC_HIGH_TEMP.state)
{
notification_temperature_high.postUpdate(test_room_temp.state)
notification_temperature_low.postUpdate(OFF)
}
else if (test_room_temp.state < BR2AC_LOW_TEMP.state)
{
notification_temperature_low.postUpdate(ON)
notification_temperature_high.postUpdate(OFF)
}
else
{
notification_temperature_high.postUpdate(OFF)
notification_temperature_low.postUpdate(OFF)
}
end
Please not that you need a font that has these included. Most Android/IOS/IPadOS tablets have them and you like will display HABPanel on a Tablet. This means on my Windows computer they look really bad or are not displayed at all, but when viewing on a tablet, they are fine.
The site linked above uses illustrations of the characters to help you find the right one, even if you don’t have the font installed.