Odd issue with a Heater rule and timers

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:

  1. Turn off the heater if month is JAN,FEB,MAR,APR,MAY,SEP,OCT,NOV,DEC
  2. Turn off the heater if it’s before 6:00 a.m. or after 9:00 a.m.
  3. Turn off the heater if it’s before 7:00 a.m. and weekend (i.e. SAT,SUN)
  4. Turn off the heater if the temperature is above 20°C
  5. Turn on the heater if none of the points 1 to 4 apply and the temperature is under 17°C
  6. will else do nothing

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 :slight_smile:

1 Like

OK, ill provide one tomorrow :slight_smile: 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. :wink:

1 Like