/*Fibaro Flood Sensors - Test */
Number Fibaro_Bath_Battery "Bath flood sensor battery [%d]" (Sensors, FF_Bath) {zwave="3:0:command=battery"}
String Fibaro_Bath_Batcode "Bath fs battery [MAP(battery.map):%s]" (Sensors, FF_Bath)
Number Fibaro_Bath_Temp "Bath temperature [%.1f °C]" (Sensors, FF_Bath, Chart) {zwave="3:2:command=sensor_multilevel"}
Switch Fibaro_Bath_AlarmGen "Bath tamper alarm" (Sensors, FF_Bath) {zwave="3:0:command=sensor_alarm, alarm_type=0,respond_to_basic=true"}
Switch Fibaro_Bath_AlarmFlood "Bath flood alarm" (Sensors, FF_Bath) {zwave="3:0:command=sensor_alarm, alarm_type=5,respond_to_basic=true"}
rule "Fibaro Bath Flood Sensor Battery Rating"
when
Item Fibaro_Bath_Battery changed or
System started
then
if (Fibaro_Bath_Battery.state == Undefined || Fibaro_Bath_Battery.state == Uninitialized)
return false
else {
var Number vp = Fibaro_Bath_Battery.state as DecimalType
var Number b
if (vp > 90) {b = 5}
else if (vp > 70) {b = 4}
else if (vp > 30) {b = 3}
else if (vp > 10) {b = 2}
else {b = 1}
postUpdate(Fibaro_Bath_Batcode, b)
logInfo("Rules", "Fibaro Bath FS Battery Rating completed")
}
end
Switch item=Fibaro_Bath_AlarmGen visibility=[Fibaro_Bath_AlarmGen=="ON"]
Switch item=Fibaro_Bath_AlarmFlood visibility=[Fibaro_Bath_AlarmFlood=="ON"]
- What I see, and this makes me happy, does this really mean there is a TEMP sensor???? Because I was pretty sure - but with my old system I could not manage to get the TEMP out of the system.....great