We have moved at community.getvera.com

Author Topic: PLEG Error Message ": attempt to compare nil with number"  (Read 171 times)

Offline nicfurr

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
PLEG Error Message ": attempt to compare nil with number"
« on: December 10, 2018, 02:26:22 pm »
trigger   HWBoost   Whenever HW Booster is turned on      
device property   HWDegC   CurrentTemperature[urn:upnp-org:serviceId:TemperatureSensor1]      
condition   DHWSetPoint   (mHome ? (HWBoost ? 70 : (ItsEMorning ? 70 : 63):15))      null
condition   DHWHtgOn   HWDegC < (DHWSetPoint -10)      null
condition   DHWHtgOff   HWDegC >= DHWSetPoint      null
This is my programming to control hot water heater.
The format of the setpoint condition is the same a three others associated with heating zones: they work perfectly.
But this one brings up the error message" HWDegC >= DHWSetpoint: attempt to compare nil with number"
and leaves on and off conditions as 'nulls' because it is itself a 'null'
After hours of trying many variations I cannot see what's wrong: can anyone solve the problem?

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1464
  • Karma: +41/-36
Re: PLEG Error Message ": attempt to compare nil with number"
« Reply #1 on: December 10, 2018, 08:50:36 pm »
You may want to post this in the PLEG section of the forum. If you do, post a status report.  Many folks there can look over the status report and perhaps suggest help.
Vera 3, 1.7.1040, CT101, Everspring Motion, GE/Jasco Switch/Dimmer, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, LB60Z-1 bulb, Hue, Alexa, Zooz 4-1