Another question…
What’s the Item definition for FibaroEye1Temp
?
You could add another logInfo right after the val:
val currentTemp = FibaroEye1Temp.state as Number
logInfo("FibaroEye1Temp","set currentTemp to {}",currentTemp)
Another question…
What’s the Item definition for FibaroEye1Temp
?
You could add another logInfo right after the val:
val currentTemp = FibaroEye1Temp.state as Number
logInfo("FibaroEye1Temp","set currentTemp to {}",currentTemp)
Hi Udo, as below
/*ZWave Motion Sensor Near Bifolds*/
Group FibaroEye1 "Motion Sensor" (Zwave)
Number FibaroEye1Lux "Motion Sensor [%.2f Lux]" <sun> (FibaroEye1) { channel="zwave:device:512:node10:sensor_luminance" }
Number FibaroEye1Battery "Motion Sensor [%.1f %%]" <battery> (FibaroEye1) { channel="zwave:device:512:node10:battery-level" }
Number FibaroEye1Temp "Motion Sensor [%.1f C]" <temperature>(FibaroEye1) { channel="zwave:device:512:node10:sensor_temperature" }
Number FibaroEye1Motion "Motion Sensor Motion [%s]" (FibaroEye1) { channel="zwave:device:512:node10:sensor_binary" }
Switch FibaroEye1Alarm "Motion Sensor Alarm [%s]" <fire> (FibaroEye1) { channel="zwave:device:512:node10:alarm_general" }
Switch FibaroEye1AlarmBurglar "Motion Sensor Alarm b [%s]" <fire> (FibaroEye1) { channel="zwave:device:512:node10:alarm_burglar" }
Number FibaroEye1Seismic "Motion Sensor Seismic [%f]" (FibaroEye1) { channel="zwave:device:512:node10:sensor_seismicintensity" }
if (bHeat==1 && Heater.state.toString != "ON") Heater.sendCommand("HeaterOn")
if (bHeat==0 && Heater.state.toString != "OFF") Heater.sendCommand("HeaterOff")
If the Item Heater is used to send another String, you would have to compare to the other string!
if (bHeat==1 && Heater.state.toString != "HeaterOn") Heater.sendCommand("HeaterOn")
if (bHeat==0 && Heater.state.toString != "HeaterOff") Heater.sendCommand("HeaterOff")
The idea is, not to send a command at all when the item has the correct state yet.
The rule will:
This is exactly the (desired) behavior of the rules posted in Odd issue with a Heater rule and timers
I can assure you it does NOT turn the heater on, ever. Its quite happy to turn it off though - that works fine!
Well, in fact, I’ve never seen a log between 6:00 a.m. and 9:00 a.m. (at MON-FRI, JUN-AUG) where the temperature was less than 17°C
OK, ill provide one tomorrow Ill change the temp to 18 to ensure it happens
Tomorrow is Saturday, so the time frame will be 7:00 a.m. to 9.00 a.m.