Unexpected error for Rule 5.1 app after update


Unable to edit app to correct.

app:2312022-03-25 08:32:52.334 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:31:23.614 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:14:39.132 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:14:21.818 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:13:17.156 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:12:18.865 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:10:59.151 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

app:2312022-03-25 08:10:40.857 errorjava.lang.NullPointerException: Cannot get property 'time' on null object on line 9063 (method mainPage)

Either

  1. Roll back to prior release and take a screenshot of the rule, so we can see what's wrong.

or

  1. Remove the rule and recreate it.

Trying to roll back release but get an error on that too.

Clicked on click here link to restore previous version and get

I have exported rule
{"deviceReplacements":{"17":{"deviceName":"Sengled Light Bulb","deviceLabel":"Back Stairs Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"2":{"deviceName":"Sengled Light Bulb","deviceLabel":"Dining Room Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"18":{"deviceName":"Sengled Light Bulb","deviceLabel":"Gym Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"4":{"deviceName":"Sengled Light Bulb","deviceLabel":"Living Room East Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"84":{"deviceName":"Sengled Color Light Bulb","deviceLabel":"Passway Light","deviceTypeName":"Sengled Element Color Plus","deviceTypeNamespace":"hubitat"},"21":{"deviceName":"Sengled Light Bulb","deviceLabel":"Office Desk Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"6":{"deviceName":"Sengled Light Bulb","deviceLabel":"Front Entry Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"54":{"deviceName":"Sylvania RGBW Light Strip","deviceLabel":"Sink Light","deviceTypeName":"Advanced Zigbee RGBW Bulb","deviceTypeNamespace":"hubitat"},"7":{"deviceName":"Sengled Light Bulb","deviceLabel":"Living Room North Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"8":{"deviceName":"Sengled Light Bulb","deviceLabel":"Night Stand Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"10":{"deviceName":"Sengled Light Bulb","deviceLabel":"Living Room West Light","deviceTypeName":"Sengled Element Classic","deviceTypeNamespace":"hubitat"},"96":{"deviceName":"Tuya Lux Tempurature Humidity Sensor","deviceLabel":"Lux Tempurature Humidity Sensor","deviceTypeName":"Tuya Temperature Humidity Illuminance LCD Display with a Clock","deviceTypeNamespace":"kkossev"}},"appReplacements":{"231":{"appTypeName":"Rule-5.1","appTypeNamespace":"hubitat","appType":"sys","appName":"Rule-5.1","appLabel":"Update Lighting for Lux (Required Expression false)","parentAppInstalledAppId":"127","parentAppTypeName":"Rule Machine","parentAppTypeNamespace":"hubitat","parentAppName":"Rule Machine","parentAppLabel":"Rule Machine","childApps":{},"singleInstance":false}},"appData":{"231":{"state":{"parens":{"0":0,"3":0,"4":0,"5":0,"6":0},"actionDone":true,"ndx":23,"nestedBlock":[false],"installedRules":[{"229":"Away"},{"221":"Get Up"},{"232":"Home"},{"159":"Kitchen light at night"},{"188":"Living Room Reading"},{"226":"Office light at night"},{"189":"Passway light at night"},{"158":"Set mode to home when back door is unlocked and mode is away"},{"220":"Sleep"}],"selectActionsParams":{"label":"Update Lighting for Lux"},"editCondIf":null,"waitDone":{},"usesTime":false,"nestedIf":[false],"inIf":true,"trigCustoms":[],"repeating":null,"capabDone":true,"skipping":false,"lastEvtName":"931 Wendell Ave","predCapabs":[1,2],"locationBlocked":[],"inRepIf":null,"ruleNdx":7,"firstR":{"0":false,"3":false,"4":false,"5":false,"6":false},"actionList":["4","5","6","7","8","9","10","11","12","13","14","15","16"],"timeTriggers":[],"locVars":{},"allVarsO":["HeatDownTemp","HeatUpTemp","LuxThreashold","Sleep"],"actLabelIndent":"","certainTimes":[],"allVarsS":[],"allVarsT":[],"prevState":{"PB":"true","Sleep":"false","96":32},"blockIf":false,"eval":{"0":[1,"AND",2],"3":[12],"4":[15],"5":[18],"6":["15"]},"lastEvtText":"931 Wendell Ave is now in Home mode","capabstrue":{"4":"Illuminance of Lux Tempurature Humidity Sensor(166) changed ","5":"Mode becomes changed","6":{}},"installedCapabs":["Variable","Configuration","RelativeHumidityMeasurement","ColorMode","Initialize","Notification","ReleasableButton","Refresh","HoldableButton","SwitchLevel","ColorTemperature","DoubleTapableButton","Light","MotionSensor","Battery","Outlet","ColorControl","Actuator","PresenceSensor","Thermostat","LockCodes","PushableButton","ChangeLevel","Lock","PowerMeter","TemperatureMeasurement","Switch","IlluminanceMeasurement","Bulb","Sensor"],"nestedSkipAll":[false],"skipType":"else","lastEvtDate":"24-Mar-2022","parenLev":0,"nestedInIf":[null],"actions":{"11":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"","rule":5,"label":"IF (Mode is Home(T) [TRUE]) THEN\n","cond":0},"12":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"\t","rule":6,"label":"\tIF (Illuminance of Lux Tempurature Humidity Sensor(44) is < LuxThreashold(40)(F) [FALSE]) THEN\n","cond":0},"13":{"wait":null,"delay":"","modes":{},"method":"getOnOffSwitch","indent":"\t\t","rule":null,"label":"\t\tOn: Night Stand Light, Dining Room Light, Passway Light, Living Room North Light\n","cond":0},"14":{"wait":null,"delay":"","modes":{},"method":"getElse","indent":"\t\t","rule":null,"label":"\tELSE\n","cond":0},"15":{"wait":null,"delay":"","modes":{},"method":"getOnOffSwitch","indent":"\t\t","rule":null,"label":"\t\tOff: Night Stand Light, Dining Room Light, Passway Light, Living Room North Light\n","cond":0},"16":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"\t","rule":null,"label":"\tEND-IF\n","cond":0},"4":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"","rule":3,"label":"IF (Mode is Away(F) [FALSE]) THEN\n","cond":0},"5":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"\t","rule":4,"label":"\tIF (Illuminance of Lux Tempurature Humidity Sensor(44) is < LuxThreashold(40)(F) [FALSE]) THEN\n","cond":0},"6":{"wait":null,"delay":"","modes":{},"method":"getSetDimmer","indent":"\t\t","rule":null,"label":"\t\tDim: Gym Light, Living Room North Light: 44\n","cond":0},"7":{"wait":null,"delay":"","modes":{},"method":"getElse","indent":"\t\t","rule":null,"label":"\tELSE\n","cond":0},"8":{"wait":null,"delay":"","modes":{},"method":"getOnOffSwitch","indent":"\t\t","rule":null,"label":"\t\tOff: Back Stairs Light, Dining Room Light, Gym Light, Living Room East Light, Passway Light, Office Desk Light, Front Entry Light, Sink Light, Living Room North Light, Night Stand Light, Living Room West Light\n","cond":0},"9":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"\t","rule":null,"label":"\tEND-IF\n","cond":0},"10":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"","rule":null,"label":"END-IF\n","cond":0}},"clipList":[],"actNdx":17,"lastEvtValue":"Home","allVarsGT":[],"installed":true,"waitEvents":[],"private":"true","waitNdx":{},"allVars":{"LuxThreashold":{"attribute":"Variable","type":"Number","value":40,"deviceId":97},"Sleep":{"attribute":"Variable","type":"Boolean","value":false,"deviceId":88},"HeatUpTemp":{"attribute":"Variable","type":"Number","value":68,"deviceId":89},"HeatDownTemp":{"attribute":"Variable","type":"Number","value":62,"deviceId":90}},"simpleCond":false,"changedValues":true,"nestedRepIf":[],"lastEvtTime":"17:47","condOper":"cond","hasPredicate":true,"nestedElse":[null,null],"allVarsI":["HeatDownTemp","HeatUpTemp","LuxThreashold"],"formerState":"Sleep","varTriggersFixed":true,"skipAll":true,"needWaitCancel":false,"cutAction":[],"allVarsD":["HeatDownTemp","HeatUpTemp","LuxThreashold"],"stopped":false,"nestedLabel":[true],"oldInputAct":true,"inputAct":true,"lastEvtDevId":null,"token":3,"waitCondNdx":1,"hasElse":null,"capabsfalse":{"1":"Variable Sleep(false) = false","12":"Mode is Away","2":"Time between Sunrise+30 minutes(07:42) and Sunset-30 minutes(18:30)","15":"Illuminance of Lux Tempurature Humidity Sensor(85) is < LuxThreashold(70)","6":"Illuminance of Lux Tempurature Humidity Sensor(97) is < LuxThreashold(70)","18":"Mode is Home","9":"Mode is Away"},"stPrimed":false,"timeTriggersW":{},"todn":{"tod":false,"n":2},"allLocalVars":{},"timeFormat":"HH:mm","olddValues":true,"needWaitDone":false},"appSettings":[{"deviceList":null,"multiple":false,"name":"state_15","type":"decimal","value":"0"},{"deviceList":null,"multiple":true,"name":"copyAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"actSubType.6","type":"enum","value":"getSetDimmer"},{"deviceList":null,"multiple":false,"name":"butEndIf","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.7","type":"enum","value":"getElse"},{"deviceList":null,"multiple":false,"name":"pausRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.8","type":"enum","value":"getOnOffSwitch"},{"deviceList":null,"multiple":false,"name":"actSubType.9","type":"enum","value":"getEndIf"},{"deviceList":null,"multiple":false,"name":"cond","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"insertAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"isVar_15","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"actSubType.4","type":"enum","value":"getIfThen"},{"deviceList":null,"multiple":false,"name":"tstate4","type":"text","value":"changed"},{"deviceList":null,"multiple":false,"name":"butElse","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.5","type":"enum","value":"getIfThen"},{"deviceList":null,"multiple":false,"name":"endingA2","type":"time","value":""},{"deviceList":null,"multiple":false,"name":"editToken","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"uVar.3","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"uVar.6","type":"bool","value":""},{"deviceList":{"17":"Back Stairs Light","2":"Dining Room Light","18":"Gym Light","4":"Living Room East Light","84":"Passway Light","21":"Office Desk Light","6":"Front Entry Light","54":"Sink Light","7":"Living Room North Light","8":"Night Stand Light","10":"Living Room West Light"},"multiple":true,"name":"onOffSwitch.8","type":"capability.switch","value":null},{"deviceList":null,"multiple":false,"name":"stopRule","type":"button","value":""},{"deviceList":null,"multiple":true,"name":"modesX5","type":"enum","value":"[\"0\"]"},{"deviceList":null,"multiple":false,"name":"xVar_1","type":"enum","value":"Sleep"},{"deviceList":null,"multiple":false,"name":"delayAct.8","type":"enum","value":"none"},{"deviceList":null,"multiple":false,"name":"endSunsetOffset2","type":"number","value":"-30"},{"deviceList":null,"multiple":true,"name":"logging","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"editCond","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.5","type":"enum","value":"condActs"},{"deviceList":null,"multiple":false,"name":"actType.4","type":"enum","value":"condActs"},{"deviceList":null,"multiple":false,"name":"actType.7","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.6","type":"enum","value":"dimmerActs"},{"deviceList":null,"multiple":false,"name":"updateRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actType.9","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"hasRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayAct.6","type":"enum","value":"none"},{"deviceList":null,"multiple":false,"name":"actType.8","type":"enum","value":"switchActs"},{"deviceList":null,"multiple":false,"name":"uVar2.3","type":"bool","value":""},{"deviceList":null,"multiple":true,"name":"modes9","type":"enum","value":"[\"4\"]"},{"deviceList":null,"multiple":false,"name":"runAction","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"rCapab_15","type":"enum","value":"Illuminance"},{"deviceList":null,"multiple":false,"name":"uVar2.6","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"rCapab_18","type":"enum","value":"Mode"},{"deviceList":null,"multiple":false,"name":"editAct","type":"enum","value":""},{"deviceList":{"8":"Night Stand Light","2":"Dining Room Light","84":"Passway Light","7":"Living Room North Light"},"multiple":true,"name":"onOffSwitch.15","type":"capability.switch","value":null},{"deviceList":null,"multiple":false,"name":"atOrBetween2","type":"bool","value":"false"},{"deviceList":null,"multiple":true,"name":"cutAct","type":"enum","value":null},{"deviceList":{"8":"Night Stand Light","2":"Dining Room Light","84":"Passway Light","7":"Living Room North Light"},"multiple":true,"name":"onOffSwitch.13","type":"capability.switch","value":null},{"deviceList":null,"multiple":true,"name":"modes12","type":"enum","value":"[\"4\"]"},{"deviceList":null,"multiple":false,"name":"not15","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"not12","type":"bool","value":""},{"deviceList":null,"multiple":true,"name":"modes18","type":"enum","value":"[\"2\"]"},{"deviceList":null,"multiple":false,"name":"not18","type":"bool","value":""},{"deviceList":null,"multiple":true,"name":"deleteAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"oper","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"actionDone","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"tCapab5","type":"enum","value":"Mode"},{"deviceList":null,"multiple":false,"name":"actSubType.10","type":"enum","value":"getEndIf"},{"deviceList":null,"multiple":false,"name":"delayAct.13","type":"enum","value":"none"},{"deviceList":null,"multiple":false,"name":"tCapab6","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.12","type":"enum","value":"getIfThen"},{"deviceList":null,"multiple":false,"name":"delayAct.15","type":"enum","value":"none"},{"deviceList":null,"multiple":false,"name":"tCapab4","type":"enum","value":"Illuminance"},{"deviceList":null,"multiple":false,"name":"actSubType.11","type":"enum","value":"getIfThen"},{"deviceList":null,"multiple":false,"name":"actSubType.14","type":"enum","value":"getElse"},{"deviceList":null,"multiple":false,"name":"actSubType.13","type":"enum","value":"getOnOffSwitch"},{"deviceList":null,"multiple":false,"name":"actSubType.16","type":"enum","value":"getEndIf"},{"deviceList":null,"multiple":false,"name":"actSubType.15","type":"enum","value":"getOnOffSwitch"},{"deviceList":null,"multiple":false,"name":"not2","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"not1","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"useST","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"dimTrack.6","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"dimTrack.3","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"startingA2","type":"time","value":""},{"deviceList":null,"multiple":false,"name":"doneST","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"xVarR_15","type":"enum","value":"LuxThreashold"},{"deviceList":null,"multiple":false,"name":"refreshActions","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"dValues","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"hasAll","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"cancelCapab","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"origLabel","type":"text","value":"Update Lighting for Lux"},{"deviceList":null,"multiple":false,"name":"RelrDev_1","type":"enum","value":"="},{"deviceList":null,"multiple":false,"name":"eraseRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"rCapab_12","type":"enum","value":"Mode"},{"deviceList":null,"multiple":false,"name":"dimLA.6","type":"number","value":"44"},{"deviceList":null,"multiple":false,"name":"ReltDev4","type":"enum","value":"changed"},{"deviceList":null,"multiple":false,"name":"onOff.8","type":"bool","value":"false"},{"deviceList":null,"multiple":false,"name":"delete","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"isDev_15","type":"bool","value":"false"},{"deviceList":{"96":"Lux Tempurature Humidity Sensor"},"multiple":true,"name":"tDev4","type":"capability.illuminanceMeasurement","value":null},{"deviceList":null,"multiple":false,"name":"actType.10","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.12","type":"enum","value":"condActs"},{"deviceList":null,"multiple":false,"name":"actType.11","type":"enum","value":"condActs"},{"deviceList":null,"multiple":false,"name":"actType.14","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.13","type":"enum","value":"switchActs"},{"deviceList":null,"multiple":false,"name":"ending2","type":"enum","value":"Sunset"},{"deviceList":null,"multiple":false,"name":"actType.16","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"startSunriseOffset2","type":"number","value":"30"},{"deviceList":null,"multiple":false,"name":"actType.15","type":"enum","value":"switchActs"},{"deviceList":null,"multiple":false,"name":"actionCancel","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actType.17","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"RelrDev_15","type":"enum","value":"<"},{"deviceList":{"18":"Gym Light","7":"Living Room North Light"},"multiple":true,"name":"dimA.6","type":"capability.switchLevel","value":null},{"deviceList":null,"multiple":false,"name":"comments","type":"textarea","value":""},{"deviceList":null,"multiple":false,"name":"endSunriseOffset2","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"editST","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"state_1","type":"enum","value":"false"},{"deviceList":null,"multiple":false,"name":"onOff.15","type":"bool","value":"false"},{"deviceList":null,"multiple":false,"name":"onOff.13","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"starting2","type":"enum","value":"Sunrise"},{"deviceList":null,"multiple":false,"name":"rCapab_2","type":"enum","value":"Between two times"},{"deviceList":null,"multiple":false,"name":"cancelST","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"rCapab_1","type":"enum","value":"Variable"},{"deviceList":{"96":"Lux Tempurature Humidity Sensor"},"multiple":true,"name":"rDev_15","type":"capability.illuminanceMeasurement","value":null},{"deviceList":null,"multiple":false,"name":"dimRA.6","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"dimRA.3","type":"number","value":""}],"subscriptions":[{"handler":"stHandler","name":"variable:Sleep","type":"LOCATION","typeId":1,"typeName":"931 Wendell Ave","filter":"false"},{"handler":"afterSunriseHandlerST","name":"sunrise","type":"LOCATION","typeId":1,"typeName":"931 Wendell Ave","filter":"false"},{"handler":"beforeSunsetHandlerST","name":"sunsetTime","type":"LOCATION","typeId":1,"typeName":"931 Wendell Ave","filter":"false"}]}}}

It isn't restoring a backup that is needed, it is rolling back the hub platform software. Go you your-hub-ip:8081, and click on Restore Previous Version. Select 2.3.0 with highest release number.

Actually just tried to re-create app and I get error when setting required expression between two times for sunrise sunset

That is the only place I used time in the rule.

Doing restore now

That worked. App is ok now.

Please show the rule. The point of rolling back was so we could see what it is, so as to find what caused the error you reporting in the OP above.

1 Like

It is recreatable. Just create a rule 5.1 and select use required expression new condition between two times and select sunrise. It errors out.

You seem to be talking about two different things. I'm confused.

Are you saying:

  1. You cannot create a condition for the Required Expression of Between Sunrise and Sunset?

or

  1. Are you saying that if you have such a condition you can't import the rule?

I guess I'm confusing two different posts.

I am saying that after the update My rule no longer worked. I was getting an error null pointer to time. My rule has a required condition utilizing sunrise and sunset times.

I tried to re-create the rule before going back to last version of hubitat platform and found that when I tried to implement the required expression between two times for sunrise and sunset it gave me the error again. Therefore I reverted to older platform level and my rule now works.

All you have to do is create a test rule 5.1. Use the required expression, select between two times then sunrise and BAM error!!!!@

This is a Required Expression I created in 2.3.0, and then I updated to 2.3.1 with no problem.

Here is one I just created in 2.3.1:

As you can see, I cannot reproduce the problem. I don't know how you are creating an error.

I see. Then I guess it was just me. Anyhow I just re-updated back to hub-2.3.1.129 and the error is no longer there. A fluke?

I have a suspicion: I think your hub timezone was not set correctly (for who knows why?), and when you updated it got fixed. The error you showed, I believe, is thrown when there is no hub timezone. I'm going to put a catch in there to make that error say that.

2 Likes

Ok, Thanks bravenel

I have run in to the same problem where I use a condition between sunset and sunrise. But yesterday there is no sunrise or sunset since we are in the polarday where the sun is up 24 hours a day. I think this is the reason for the error

1 Like

Ah, I have always wondered about this situation. I never tested for it, nor could I really see how to. Could you post your rule and a screenshot of the Scheduled Jobs portion (bottom) of the App Status page (gear icon)?

2 Likes

Here is the rule and a screenshot of scheduled jobs. One way to test this for you is to set the latitude and longitude in the Hub details to 70N 23E like mine and the you will have Polar day too

{"deviceReplacements":{"817":{"deviceName":"GS-iliumCheck","deviceLabel":null,"deviceTypeName":"Virtual Switch","deviceTypeNamespace":"hubitat"},"577":{"deviceName":"weatherflow Tempest","deviceLabel":null,"deviceTypeName":"WeatherFlow Lite","deviceTypeNamespace":"augoisms"}},"appReplacements":{"655":{"appTypeName":"Rule-5.1","appTypeNamespace":"hubitat","appType":"sys","appName":"Rule-5.1","appLabel":"Gardin1_Init","parentAppInstalledAppId":"564","parentAppTypeName":"Rule Machine","parentAppTypeNamespace":"hubitat","parentAppName":"Rule Machine","parentAppLabel":"Rule Machine","childApps":{},"singleInstance":false}},"appData":{"655":{"state":{"parens":{"1":0,"2":0},"actionDone":true,"ndx":8,"dateFormat":"yyyy-MM-dd","nestedBlock":[],"installedRules":[{"650":"Gardin2_iliumCheck"},{"654":"Gardin3-Action"},{"651":"Gardin4_Styring"},{"652":"Gardin5_Sjekk"},{"653":"Gardin99_RestartPowerview"}],"selectActionsParams":{"label":"Gardin1_Init"},"editCondIf":null,"waitDone":{},"stopOnST":false,"usesTime":false,"nestedIf":[],"inIf":null,"trigCustoms":["illuminance"],"repeating":null,"capabDone":true,"skipping":false,"lastEvtName":"weatherflow Tempest","locationBlocked":[],"pbFixed":true,"inRepIf":null,"ruleNdx":3,"actionList":["1","2","4","5","6"],"firstR":{"1":false,"2":false},"timeTriggers":[],"locVars":{},"allVarsO":["G1-0","G1-100","G1-35","G1-45","G1-75","G1A","G1S","G2-0","G2-100","G2-35","G2-45","G2-75","G2A","G2S","G3-0","G3-100","G3-35","G3-45","G3-75","G3A","G3S","G4-0","G4-100","G4-35","G4-45","G4-75","G4A","G4S","G5-0","G5-100","G5-35","G5-45","G5-75","G5A","G5S","GLB-0","GLB-100","GLB-35","GLB-45","GLB-75","GLB1","GLS-0","GLS-100","GLS-35","GLS-45","GLS-75","GT-formiddag","GT-formiddagSlutt","GT-kveld","GT-morgenSlutt"],"actLabelIndent":"","certainTimes":[],"allVarsS":[],"allVarsT":["GT-formiddag","GT-formiddagSlutt","GT-kveld","GT-morgenSlutt"],"prevState":{"PB":"true","577":67941},"onlyTwo":{"n":2},"blockIf":false,"eval":{"1":[2,"OR","5"],"2":[5]},"lastEvtText":null,"capabstrue":{"1":"Illuminance of weatherflow Tempest(30673) changed "},"installedCapabs":["Configuration","RelativeHumidityMeasurement","ColorMode","Initialize","ContactSensor","Notification","ReleasableButton","Refresh","HoldableButton","SwitchLevel","ColorTemperature","SpeechSynthesis","Momentary","DoubleTapableButton","MotionSensor","Light","TamperAlert","Battery","Outlet","UltravioletIndex","Actuator","PresenceSensor","ColorControl","WindowShade","Thermostat","MusicPlayer","AudioVolume","PressureMeasurement","PushableButton","ChangeLevel","PowerMeter","TemperatureMeasurement","AccelerationSensor","Switch","IlluminanceMeasurement","SmokeDetector","Sensor"],"nestedSkipAll":[],"skipType":"if","lastEvtDate":"2022-05-13","nestedInIf":[],"actions":{"1":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"","rule":1,"label":"IF (Between November 10 and January 19(F) (F) [FALSE]) THEN\n","cond":0},"2":{"wait":null,"delay":"","modes":{},"method":"getExitRule","indent":"\t","rule":null,"label":"\tExit Rule\n","cond":0},"4":{"wait":null,"delay":"","modes":{},"method":"getElse","indent":"\t","rule":null,"label":"ELSE\n","cond":0},"5":{"wait":null,"delay":"","modes":{},"method":"getOnOffSwitch","indent":"\t","rule":null,"label":"\tOn: GS-iliumCheck\n","cond":0},"6":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"","rule":null,"label":"END-IF\n","cond":0}},"usesDate":false,"actNdx":7,"lastEvtValue":"547","allVarsGT":["GT-formiddag","GT-formiddagSlutt","GT-kveld","GT-morgenSlutt"],"installed":true,"waitEvents":[],"private":"true","waitNdx":{},"allVars":{"GLS-75":{"attribute":null,"type":"Number","value":20000,"deviceId":null},"G1-100":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G4-45":{"attribute":null,"type":"Number","value":46,"deviceId":null},"G3-35":{"attribute":null,"type":"Number","value":33,"deviceId":null},"GLS-100":{"attribute":null,"type":"Number","value":10000,"deviceId":null},"G3S":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G2-0":{"attribute":null,"type":"Number","value":0,"deviceId":null},"GT-kveld":{"attribute":null,"type":"DateTime","value":"9999-99-99T21:00:00.000+0200","deviceId":null},"G4-0":{"attribute":null,"type":"Number","value":0,"deviceId":null},"G2-100":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G4A":{"attribute":null,"type":"Number","value":46,"deviceId":null},"G1-45":{"attribute":null,"type":"Number","value":44,"deviceId":null},"G3-45":{"attribute":null,"type":"Number","value":44,"deviceId":null},"GLB-45":{"attribute":null,"type":"Number","value":50000,"deviceId":null},"G4S":{"attribute":null,"type":"Number","value":46,"deviceId":null},"GT-morgenSlutt":{"attribute":null,"type":"DateTime","value":"9999-99-99T08:00:00.000+0200","deviceId":null},"G5A":{"attribute":null,"type":"Number","value":46,"deviceId":null},"G1A":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G1-35":{"attribute":null,"type":"Number","value":33,"deviceId":null},"G2-45":{"attribute":null,"type":"Number","value":44,"deviceId":null},"G5-75":{"attribute":null,"type":"Number","value":75,"deviceId":null},"GLS-0":{"attribute":null,"type":"Number","value":47000,"deviceId":null},"G1-75":{"attribute":null,"type":"Number","value":74,"deviceId":null},"G5-35":{"attribute":null,"type":"Number","value":33,"deviceId":null},"G5S":{"attribute":null,"type":"Number","value":46,"deviceId":null},"GLB-35":{"attribute":null,"type":"Number","value":55000,"deviceId":null},"G1S":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G1-0":{"attribute":null,"type":"Number","value":0,"deviceId":null},"G3-0":{"attribute":null,"type":"Number","value":0,"deviceId":null},"G5-0":{"attribute":null,"type":"Number","value":0,"deviceId":null},"G2A":{"attribute":null,"type":"Number","value":100,"deviceId":null},"GT-formiddagSlutt":{"attribute":null,"type":"DateTime","value":"9999-99-99T14:30:00.000+0200","deviceId":null},"G5-100":{"attribute":null,"type":"Number","value":100,"deviceId":null},"GLB-75":{"attribute":null,"type":"Number","value":30000,"deviceId":null},"G2-35":{"attribute":null,"type":"Number","value":33,"deviceId":null},"GLS-45":{"attribute":null,"type":"Number","value":42000,"deviceId":null},"G4-75":{"attribute":null,"type":"Number","value":74,"deviceId":null},"G2-75":{"attribute":null,"type":"Number","value":74,"deviceId":null},"G5-45":{"attribute":null,"type":"Number","value":46,"deviceId":null},"G4-35":{"attribute":null,"type":"Number","value":33,"deviceId":null},"GLB-100":{"attribute":null,"type":"Number","value":14000,"deviceId":null},"G2S":{"attribute":null,"type":"Number","value":100,"deviceId":null},"G4-100":{"attribute":null,"type":"Number","value":100,"deviceId":null},"GLB-0":{"attribute":null,"type":"Number","value":65000,"deviceId":null},"G3A":{"attribute":null,"type":"Number","value":100,"deviceId":null},"GLB1":{"attribute":null,"type":"Number","value":15000,"deviceId":null},"GT-formiddag":{"attribute":null,"type":"DateTime","value":"9999-99-99T12:30:00.000+0200","deviceId":null},"G3-100":{"attribute":null,"type":"Number","value":100,"deviceId":null},"GLS-35":{"attribute":null,"type":"Number","value":35000,"deviceId":null},"G3-75":{"attribute":null,"type":"Number","value":74,"deviceId":null}},"simpleCond":false,"changedValues":true,"nestedRepIf":[],"lastEvtTime":"23:56","condOper":"cond","nestedElse":[],"allVarsI":["G1-0","G1-100","G1-35","G1-45","G1-75","G1A","G1S","G2-0","G2-100","G2-35","G2-45","G2-75","G2A","G2S","G3-0","G3-100","G3-35","G3-45","G3-75","G3A","G3S","G4-0","G4-100","G4-35","G4-45","G4-75","G4A","G4S","G5-0","G5-100","G5-35","G5-45","G5-75","G5A","G5S","GLB-0","GLB-100","GLB-35","GLB-45","GLB-75","GLB1","GLS-0","GLS-100","GLS-35","GLS-45","GLS-75"],"varTriggersFixed":true,"skipAll":true,"needWaitCancel":false,"cutAction":[],"allVarsD":["G1-0","G1-100","G1-35","G1-45","G1-75","G1A","G1S","G2-0","G2-100","G2-35","G2-45","G2-75","G2A","G2S","G3-0","G3-100","G3-35","G3-45","G3-75","G3A","G3S","G4-0","G4-100","G4-35","G4-45","G4-75","G4A","G4S","G5-0","G5-100","G5-35","G5-45","G5-75","G5A","G5S","GLB-0","GLB-100","GLB-35","GLB-45","GLB-75","GLB1","GLS-0","GLS-100","GLS-35","GLS-45","GLS-75"],"stopped":false,"rulesList":[],"nestedLabel":[],"oldInputAct":true,"inputAct":true,"lastEvtDevId":"577","waitCondNdx":1,"token":0,"hasElse":null,"capabsfalse":{"2":"Between November 10 and January 19","5":"Time between Sunset(22:52) and Sunrise(01:56)"},"stPrimed":true,"timeTriggersW":{},"todn":{"tod":false,"n":5},"allLocalVars":{},"timeFormat":"HH:mm","olddValues":true,"needWaitDone":false},"appSettings":[{"deviceList":null,"multiple":false,"name":"tCapab1","type":"enum","value":"Illuminance"},{"deviceList":null,"multiple":false,"name":"endDateType2","type":"enum","value":"mm-dd"},{"deviceList":null,"multiple":false,"name":"tCapab2","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actionDone","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"timeEnd2","type":"time","value":""},{"deviceList":null,"multiple":true,"name":"copyAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"actSubType.6","type":"enum","value":"getEndIf"},{"deviceList":null,"multiple":false,"name":"butEndIf","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"pausRule","type":"button","value":""},{"deviceList":null,"multiple":true,"name":"disableAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"cond","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"not2","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"insertAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"useST","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"startingA5","type":"time","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.1","type":"enum","value":"getIfThen"},{"deviceList":null,"multiple":false,"name":"tstate1","type":"text","value":"changed"},{"deviceList":null,"multiple":false,"name":"actSubType.2","type":"enum","value":"getExitRule"},{"deviceList":null,"multiple":false,"name":"startSunsetOffset5","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.4","type":"enum","value":"getElse"},{"deviceList":null,"multiple":false,"name":"butElse","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actSubType.5","type":"enum","value":"getOnOffSwitch"},{"deviceList":null,"multiple":false,"name":"endingA5","type":"time","value":""},{"deviceList":null,"multiple":false,"name":"startDateType2","type":"enum","value":"mm-dd"},{"deviceList":null,"multiple":false,"name":"refreshActions","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"dValues","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"hasAll","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"eraseTime2","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"cancelCapab","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actType.1","type":"enum","value":"condActs"},{"deviceList":null,"multiple":false,"name":"editToken","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"monthEnd2","type":"enum","value":"1"},{"deviceList":null,"multiple":false,"name":"stopRule","type":"button","value":""},{"deviceList":{"817":"GS-iliumCheck"},"multiple":true,"name":"onOffSwitch.5","type":"capability.switch","value":null},{"deviceList":null,"multiple":false,"name":"origLabel","type":"text","value":"Gardin1_Init"},{"deviceList":null,"multiple":false,"name":"ReltDev1","type":"enum","value":"changed"},{"deviceList":null,"multiple":false,"name":"eraseRule","type":"button","value":""},{"deviceList":null,"multiple":true,"name":"logging","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"editCond","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.2","type":"enum","value":"delayActs"},{"deviceList":null,"multiple":false,"name":"actType.5","type":"enum","value":"switchActs"},{"deviceList":null,"multiple":false,"name":"actType.4","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.7","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actType.6","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"updateRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayAct.5","type":"enum","value":"none"},{"deviceList":null,"multiple":false,"name":"hasRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"runAction","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"onOff.5","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"dayEnd2","type":"enum","value":"19"},{"deviceList":null,"multiple":false,"name":"delete","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"monthStart2","type":"enum","value":"11"},{"deviceList":{"577":"weatherflow Tempest"},"multiple":true,"name":"tDev1","type":"capability.illuminanceMeasurement","value":null},{"deviceList":null,"multiple":false,"name":"ending5","type":"enum","value":"Sunrise"},{"deviceList":null,"multiple":false,"name":"actionCancel","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"optSwitch.5","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"dayStart2","type":"enum","value":"10"},{"deviceList":null,"multiple":false,"name":"editAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"pointless","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"comments","type":"textarea","value":""},{"deviceList":null,"multiple":false,"name":"eraseTime","type":"button","value":""},{"deviceList":null,"multiple":true,"name":"cutAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"atOrBetween5","type":"bool","value":"false"},{"deviceList":null,"multiple":false,"name":"endSunriseOffset5","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"starting5","type":"enum","value":"Sunset"},{"deviceList":null,"multiple":false,"name":"rCapab_2","type":"enum","value":"Between two dates"},{"deviceList":null,"multiple":false,"name":"not5","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"rCapab_5","type":"enum","value":"Between two times"},{"deviceList":null,"multiple":true,"name":"deleteAct","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"oper","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"timeStart2","type":"time","value":""}],"subscriptions":[{"handler":"allHandler","name":"illuminance","type":"DEVICE","typeId":577,"typeName":"weatherflow Tempest","filter":"true"}]}}}