Error when trying to open up a rule

Iā€™m getting the following error when trying to open one of my rules on C7 2.2.5.224.

@bravenel - tagging you in case this is something that you want to know about. If this is the case, let me know if you need any more information.

My next step will be to see if I can restore from a backup that I created a while back.

@bravenel, in case you are interested in reproducing it, I have been able to export the rule and confirm it works when imported on a second hub.

It requires the following devices to be setup or present on the hub:

The Exported rule:

Alarm - Alarm if water in Kitchen Water Filter Bucket.json

{"deviceReplacements":{"322":{"deviceName":"Ring Generic Camera with Siren","deviceLabel":"Ring Indoor Cam - Dining Room","deviceTypeName":"Ring Virtual Camera with Siren","deviceTypeNamespace":"ring-hubitat-codahq"},"4390":{"deviceName":"Kitchen Water Filter Leak Sensor on Server","deviceLabel":null,"deviceTypeName":"Zigbee - Aqara Water Leak Sensor","deviceTypeNamespace":"hubitat"},"58":{"deviceName":"Kitchen","deviceLabel":"Kitchen Group","deviceTypeName":"Group Bulb Dimmer","deviceTypeNamespace":"hubitat"},"149":{"deviceName":"Manon's iPhone","deviceLabel":null,"deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"198":{"deviceName":"iPad Mini 5","deviceLabel":"S\u00e9bastien\u2019s iPad Mini","deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"134":{"deviceName":"Bass","deviceLabel":"S\u00e9bastien\u2019s iPhone","deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"150":{"deviceName":"Xavier's iPhone 11 Pro","deviceLabel":null,"deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"151":{"deviceName":"iPhone Dimitri","deviceLabel":"Dimitri\u2019s iPhone","deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"267":{"deviceName":"S\u00e9bastien\u2019s iPad Pro 2020","deviceLabel":null,"deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"62":{"deviceName":"S\u00e9bastien\u2019s iPad Pro 2","deviceLabel":null,"deviceTypeName":"Mobile App Device","deviceTypeNamespace":"hubitat"},"1894":{"deviceName":"hueBridgeGroup","deviceLabel":"Den Couch Lamp","deviceTypeName":"hueBridgeGroup","deviceTypeNamespace":"hubitat"}},"appReplacements":{"4340":{"appTypeName":"Rule-4.0","appTypeNamespace":"hubitat","appName":"Rule-4.0","appLabel":"Alarm - Alarm if water in Kitchen Water Filter Bucket clone","parentAppTypeName":"Rule Machine","parentAppLabel":"Rule Machine","singleInstance":false}},"appData":{"4340":{"state":{"actionListMain":["1","19","4","15","17","16","2","3","7","8","9","13","14","11","12"],"actionDone":true,"parens":{"1":0,"2":0},"hasRuleAct":false,"selectActionsParams":{"thisStr":"Main","label":"Alarm - Alarm if water in Kitchen Water Filter Bucket"},"editCondIf":null,"waitDone":{"Main.15":{"1":true}},"waitBV":{},"doneWaitEvents":false,"insertN":0,"usesTime":true,"inIf":false,"trigCustoms":,"repeating":,"capabDone":true,"lastEvtName":"Kitchen Water in Filter Bucket","skippingMain":false,"skipAllMain":true,"locationBlocked":,"hasAll":false,"inRepIf":false,"ndx.false":9,"lvList":,"editToken":false,"ruleNdx":3,"firstR":{"1":false,"2":false},"allVarsO":["FujitsuMini-SplitOnFanToDry"],"timeTriggers":,"actLabelIndent":"","howManyT":18,"certainTimes":,"subscribedVariables":,"paramsDone":false,"prevState":{"2625":"dry","PB":"true","801":"dry"},"eval":{"1":[2],"2":["NOT","3"]},"capabstrue":{"1.true":"Kitchen Water in Filter Bucket changed","2.true":{},"-1.true":{}},"wasEndSR":false,"blockIfMain":false,"parenLev":0,"lastEvtDate":"30-Jan-2021","actionsMain":{"11":{"wait":null,"delay":"","modes":{},"method":"getMsg","indent":"\t","rule":0,"label":"\tNotify Manon's iPhone, S\u00e9bastien\u2019s iPhone, Xavier's iPhone 11 Pro, S\u00e9bastien\u2019s iPad Mini, Dimitri\u2019s iPhone, S\u00e9bastien\u2019s iPad Pro 2020, S\u00e9bastien\u2019s iPad Pro 2: '%device% is %value% since %date% at %time%'\n","cond":0},"12":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"","rule":0,"label":"END-IF\n","cond":0},"13":{"wait":null,"delay":"","modes":{},"method":"getSetColorTemp","indent":"\t","rule":0,"label":"\tColor Temperature: Den Couch Lamp: 5000: 100\n","cond":0},"14":{"wait":null,"delay":"0:00:01","modes":{},"method":"getOffSwitch","indent":"\t","rule":0,"label":"\tOff: Den Couch Lamp --> delayed: 0:00:01\n","cond":0},"15":{"wait":1,"delay":"","modes":{},"method":"getWaitEvents","indent":"\t\t","rule":0,"label":"\t\tWait for events: When time is 07:00\n","cond":0},"16":{"wait":null,"delay":"","modes":{},"method":"getEndIf","indent":"\t","rule":0,"label":"\tEND-IF\n","cond":0},"17":{"wait":null,"delay":"","modes":{},"method":"getExitRule","indent":"\t\t","rule":0,"label":"\t\tIF (Kitchen Water Filter Leak Sensor dry TRUE) Exit Rule\n","cond":8},"19":{"wait":null,"delay":"","modes":{},"method":"getMsg","indent":"\t","rule":0,"label":"\tNotify Manon's iPhone, S\u00e9bastien\u2019s iPhone, Xavier's iPhone 11 Pro, S\u00e9bastien\u2019s iPad Mini, Dimitri\u2019s iPhone, S\u00e9bastien\u2019s iPad Pro 2020, S\u00e9bastien\u2019s iPad Pro 2: 'Warning! %device% is reporting %value% since %date% at %time%. Immediate action is required!'\n","cond":0},"1":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"","rule":1,"label":"IF (Kitchen Water Filter Leak Sensor wet(F) [FALSE]) THEN\n","cond":0},"2":{"wait":null,"delay":"","modes":{},"method":"getSetDimmer","indent":"\t","rule":0,"label":"\tDim: Kitchen Group: 100\n","cond":0},"3":{"wait":null,"delay":"","modes":{},"method":"getSetColor","indent":"\t","rule":0,"label":"\tSet color: Den Couch Lamp ->Blue ->Level: 100\n","cond":0},"4":{"wait":null,"delay":"","modes":{},"method":"getIfThen","indent":"\t","rule":2,"label":"\tIF (NOT Time between 07:00 and 23:00(T) [FALSE]) THEN\n","cond":0},"7":{"wait":null,"delay":"","modes":{},"method":"getMsg","indent":"\t","rule":0,"label":"\tNotify Manon's iPhone, S\u00e9bastien\u2019s iPhone, Xavier's iPhone 11 Pro, S\u00e9bastien\u2019s iPad Mini, Dimitri\u2019s iPhone, S\u00e9bastien\u2019s iPad Pro 2020, S\u00e9bastien\u2019s iPad Pro 2: 'Warning! %device% is reporting %value% since %date% at %time%. Immediate action is required!'\n","cond":0},"8":{"wait":null,"delay":"","modes":{},"method":"getElse","indent":"\t","rule":0,"label":"ELSE\n","cond":0},"9":{"wait":null,"delay":"","modes":{},"method":"getSetDimmer","indent":"\t","rule":0,"label":"\tDim: Kitchen Group: 15 --> fade: 10\n","cond":0}},"nestedInIf":,"actNdx":20,"hasRule":false,"installed":true,"lastEvtValue":0,"private":"true","waitEvents":,"capabActDone":false,"waitNdx":{"Main.15":1},"skipTypeMain":"if","gvList":["FujitsuMini-SplitOnFanToDry"],"hasDevice":null,"hasCondition":false,"ndx.true":2,"editingRule":0,"allVars":{"FujitsuMini-SplitOnFanToDry":{"val":"false","type":"Boolean"}},"hasWaits":false,"simpleCond":false,"nestedRepIf":,"nestedBlockMain":,"condOper":"cond","lastEvtTime":"17:09","waitB":{},"inRepeat":false,"waitMethod":"allHandlerW","cutAction":,"stopped":false,"hasWaitEvent":false,"nestedIfMain":,"nestedLabel":,"waitBL":{},"paramNdx":1,"lastEvtDevId":"801","howMany":7,"hasCompleteRule":false,"varUseList":{},"waitCondNdx":2,"token":2,"doneToken":false,"hasElse":false,"nestedSkipAllMain":,"capabsfalse":{"17.false":"cond","9.false":{},"2.false":"Kitchen Water Filter Leak Sensor wet","-1.false":{},"8.false":"Kitchen Water Filter Leak Sensor dry","3.false":"Time between 07:00 and 23:00"},"timeTriggersW":{},"timeFormat":"HH:mm","waitConds":,"insertToken":false},"appSettings":[{"deviceList":null,"multiple":false,"name":"pausRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"state8","type":"enum","value":"dry"},{"deviceList":null,"multiple":false,"name":"cond","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"state2","type":"enum","value":"wet"},{"deviceList":null,"multiple":false,"name":"insertAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"tstate1","type":"enum","value":"changed"},{"deviceList":null,"multiple":false,"name":"endingA3","type":"time","value":"23:00"},{"deviceList":null,"multiple":false,"name":"ranMsgMain.19","type":"bool","value":"false"},{"deviceList":null,"multiple":false,"name":"ranMsgMain.18","type":"bool","value":""},{"deviceList":{"322":null},"multiple":true,"name":"sirenMain.5","type":"capability.alarm","value":null},{"deviceList":null,"multiple":false,"name":"anotherWait","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"editToken","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayMinMain.14","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"colorLevelMain.3","type":"text","value":"100"},{"deviceList":null,"multiple":false,"name":"ranMsgMain.11","type":"bool","value":""},{"deviceList":{"4390":null},"multiple":true,"name":"rDev2","type":"capability.waterSensor","value":null},{"deviceList":null,"multiple":false,"name":"dimTrackMain.9","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"insertToken1","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"dimTrackMain.2","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"insertToken2","type":"enum","value":""},{"deviceList":{"4390":null},"multiple":true,"name":"rDev8","type":"capability.waterSensor","value":null},{"deviceList":null,"multiple":true,"name":"logging","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"editCond","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"updateRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"hasRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delaySecMain.14","type":"text","value":"1"},{"deviceList":null,"multiple":false,"name":"runAction","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"dimLAMain.2","type":"text","value":"100"},{"deviceList":null,"multiple":false,"name":"rCapab8","type":"enum","value":"Water sensor"},{"deviceList":{"58":null},"multiple":true,"name":"dimAMain.2","type":"capability.switchLevel","value":null},{"deviceList":null,"multiple":false,"name":"rCapab3","type":"enum","value":"Time of day"},{"deviceList":null,"multiple":false,"name":"rCapab2","type":"enum","value":"Water sensor"},{"deviceList":null,"multiple":false,"name":"ranMsgMain.7","type":"bool","value":""},{"deviceList":{"58":null},"multiple":true,"name":"dimAMain.9","type":"capability.switchLevel","value":null},{"deviceList":null,"multiple":false,"name":"cancelActMain.14","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"rCapab9","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"editAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"atOrBetween3","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"tCapab-1","type":"enum","value":"Certain Time"},{"deviceList":null,"multiple":false,"name":"cutAct","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.7","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.9","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.3","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.2","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"dimLAMain.9","type":"text","value":"15"},{"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":"actTypeMain.20","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"tCapab1","type":"enum","value":"Water sensor"},{"deviceList":null,"multiple":false,"name":"tCapab2","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"actionDone","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.9","type":"enum","value":"Set dimmer level"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.7","type":"enum","value":"Send or Speak a Message"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.8","type":"enum","value":"ELSE"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.3","type":"enum","value":"Set color and level"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.4","type":"enum","value":"IF (conditions) THEN"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.1","type":"enum","value":"IF (conditions) THEN"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.2","type":"enum","value":"Set dimmer level"},{"deviceList":null,"multiple":false,"name":"not2","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"actTypeMain.19","type":"enum","value":"Send, Speak or Log a Message, Send HTTP Request"},{"deviceList":null,"multiple":false,"name":"not1","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"actTypeMain.14","type":"enum","value":"Control Switches, Push Buttons"},{"deviceList":null,"multiple":false,"name":"actTypeMain.15","type":"enum","value":"Delay or Repeat Actions, Wait"},{"deviceList":null,"multiple":false,"name":"actTypeMain.16","type":"enum","value":"Conditional Actions"},{"deviceList":null,"multiple":false,"name":"actTypeMain.17","type":"enum","value":"Delay or Repeat Actions, Wait"},{"deviceList":null,"multiple":false,"name":"sirenActMain.5","type":"enum","value":"siren"},{"deviceList":null,"multiple":false,"name":"actTypeMain.11","type":"enum","value":"Send, Speak or Log a Message, Send HTTP Request"},{"deviceList":{"149":null,"198":null,"134":null,"150":null,"151":null,"267":null,"62":null},"multiple":true,"name":"noteMain.11","type":"capability.notification","value":null},{"deviceList":null,"multiple":false,"name":"actTypeMain.12","type":"enum","value":"Conditional Actions"},{"deviceList":null,"multiple":false,"name":"startingA3","type":"time","value":"07:00"},{"deviceList":null,"multiple":false,"name":"actTypeMain.13","type":"enum","value":"Set Dimmers and Bulbs"},{"deviceList":{"149":null,"198":null,"134":null,"150":null,"151":null,"267":null,"62":null},"multiple":true,"name":"noteMain.18","type":"capability.notification","value":null},{"deviceList":{"149":null,"198":null,"134":null,"150":null,"151":null,"267":null,"62":null},"multiple":true,"name":"noteMain.19","type":"capability.notification","value":null},{"deviceList":null,"multiple":false,"name":"refreshActions","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.15","type":"bool","value":"false"},{"deviceList":null,"multiple":false,"name":"doneWaits","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.13","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"hasAll","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.14","type":"bool","value":"true"},{"deviceList":null,"multiple":false,"name":"delayActMain.19","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"cancelCapab","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"delayActMain.17","type":"bool","value":""},{"deviceList":{"1894":null},"multiple":true,"name":"offSwitchMain.14","type":"capability.switch","value":null},{"deviceList":null,"multiple":false,"name":"delayActMain.11","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"delayHorMain.14","type":"number","value":""},{"deviceList":null,"multiple":false,"name":"atTime-1","type":"time","value":"07:00"},{"deviceList":null,"multiple":false,"name":"origLabel","type":"text","value":"Alarm - Alarm if water in Kitchen Water Filter Bucket clone"},{"deviceList":null,"multiple":false,"name":"eraseRule","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"colorMain.3","type":"enum","value":"Blue"},{"deviceList":null,"multiple":false,"name":"dimRAMain.9","type":"text","value":"10"},{"deviceList":null,"multiple":false,"name":"sirenActMain.10","type":"enum","value":"off"},{"deviceList":null,"multiple":false,"name":"delete","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"dimRAMain.2","type":"text","value":""},{"deviceList":null,"multiple":false,"name":"ctLevelMain.13","type":"text","value":"100"},{"deviceList":null,"multiple":false,"name":"ending3","type":"enum","value":"A specific time"},{"deviceList":{"149":null,"198":null,"134":null,"150":null,"151":null,"267":null,"62":null},"multiple":true,"name":"noteMain.7","type":"capability.notification","value":null},{"deviceList":null,"multiple":true,"name":"tDev1","type":"capability.waterSensor","value":null},{"deviceList":null,"multiple":false,"name":"actionCancel","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"time-1","type":"enum","value":"A specific time"},{"deviceList":null,"multiple":false,"name":"rCapab-1","type":"enum","value":""},{"deviceList":null,"multiple":false,"name":"msgMain.19","type":"textarea","value":"Warning! %device% is reporting %value% since %date% at %time%. Immediate action is required!"},{"deviceList":{"1894":null},"multiple":true,"name":"bulbsMain.3","type":"capability.colorControl","value":null},{"deviceList":null,"multiple":false,"name":"actTypeMain.9","type":"enum","value":"Set Dimmers and Bulbs"},{"deviceList":null,"multiple":false,"name":"speakMain.11","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"comments","type":"textarea","value":""},{"deviceList":null,"multiple":false,"name":"speakMain.7","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"msgMain.18","type":"textarea","value":"Warning! %device% is reporting %value% since %date% at %time%. Immediate action is required!"},{"deviceList":null,"multiple":false,"name":"msgMain.11","type":"textarea","value":"%device% is %value% since %date% at %time%"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.12","type":"enum","value":"END-IF"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.13","type":"enum","value":"Set color temperature and level"},{"deviceList":null,"multiple":false,"name":"speakMain.19","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.11","type":"enum","value":"Send or Speak a Message"},{"deviceList":null,"multiple":false,"name":"speakMain.18","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"starting3","type":"enum","value":"A specific time"},{"deviceList":null,"multiple":false,"name":"useCondMain.17","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"doneToken","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"newToken2","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"not3","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.19","type":"enum","value":"Send or Speak a Message"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.16","type":"enum","value":"END-IF"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.17","type":"enum","value":"Exit Rule"},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.14","type":"enum","value":"Turn switches off"},{"deviceList":null,"multiple":false,"name":"not8","type":"bool","value":""},{"deviceList":null,"multiple":false,"name":"actSubTypeMain.15","type":"enum","value":"Wait for Events"},{"deviceList":null,"multiple":false,"name":"timeFormat","type":"enum","value":"HH:mm"},{"deviceList":null,"multiple":false,"name":"actTypeMain.2","type":"enum","value":"Set Dimmers and Bulbs"},{"deviceList":null,"multiple":false,"name":"actTypeMain.1","type":"enum","value":"Conditional Actions"},{"deviceList":{"1894":null},"multiple":true,"name":"ctMain.13","type":"capability.colorTemperature","value":null},{"deviceList":null,"multiple":true,"name":"deleteToken2","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"actTypeMain.4","type":"enum","value":"Conditional Actions"},{"deviceList":null,"multiple":false,"name":"msgMain.7","type":"textarea","value":"Warning! %device% is reporting %value% since %date% at %time%. Immediate action is required!"},{"deviceList":null,"multiple":false,"name":"actTypeMain.3","type":"enum","value":"Set Dimmers and Bulbs"},{"deviceList":null,"multiple":true,"name":"deleteToken1","type":"enum","value":null},{"deviceList":null,"multiple":false,"name":"actTypeMain.8","type":"enum","value":"Conditional Actions"},{"deviceList":null,"multiple":false,"name":"ctLMain.13","type":"text","value":"5000"},{"deviceList":null,"multiple":false,"name":"cancelInsert","type":"button","value":""},{"deviceList":null,"multiple":false,"name":"actTypeMain.7","type":"enum","value":"Send, Speak or Log a Message, Send HTTP Request"},{"deviceList":{"322":null},"multiple":true,"name":"sirenMain.10","type":"capability.alarm","value":null}],"subscriptions":}}}

Note: By restoring the rule on the original hub, I have been able to accomplish my objective which was to modify some of the devices being used. (I moved from using HubConnect to HubMesh.)

Doesn't this mean that the error went away?

Unfortunately not. The newly imported rule cannot be opened.

I should have said "... and confirm the error can be reproduced when imported on a second hub."

1 Like

I'm also seeing this exact error after updating to 2.2.5.126. A restore seems to reproduce the issue so it could have potentially also hit in the update to 2.2.4 a while back as my backup would have landed in that timeframe and I haven't tried to edit this rule since then... Any advice?

Update: I've gone all the way back to backups from version 2.2.3 and the error remains... no more backups... :confused: Rule screen shot below...

Thanks.

Tagging @bravenel in case this new information can be of use.

Something happened to corrupt these rules, It's pretty much not possible to identify what caused it. Most common cause is hitting back button while editing a rule, but there could be other causes. Given that we can't tell what caused it, there's really nothing to be done about it. Such a rule has to be removed, and recreated -- there is no other way to correct the problem.

If anyone comes up with a reproducible failure, that would be worth looking into. By that I mean, take specific steps and get an error.

So, there's not a way to look at the text string to see what's hosed up and manually zap it? Dang. :frowning:

It would be kinda cool to have some sort of "external" rule editor/fixer tool that could take an exported, corrupted rule and let you put the pieces together and/or edit it-then make something you could import anew. :slight_smile:

1 Like

It depends on the error. For some this is possible. For the one reported above it is not.

Thanks for the input!

Will keep that in mind. This one is a rule thatā€™s been there untouched for a while, as far as I can recall. I think it still works, just canā€™t edit it. Shouldnā€™t be too much of an issue to re-create it.

Quick update - I restored the DB to a version where I know the rule worked (to get the detais and screen-shot it...) - And I was unable to open it. This makes me think that the error may be linked to a platform update...? Is there a way to debug this?

The error was still present in the earliest Platform I am able to restore to. I'll have to see if I can find a way to move to an earlier platform for testing...

2 Likes

@Sebastien, yes, I have exactly the same story on my side -- in fact, this is the second time I have noticed a problem like this after an update. Previously I was not certain that I had not done something wrong but the reason I went to the "broken" rule above was because it stopped working right after a platform update. It had been running for months w/out change prior to that.

Hmmm... I bet this is a real stretch but I'll toss it out here anyways... I am now wondering if I just happened to run the update roughly in the same time window when the broken rule was scheduled to run. I obviously can't be 100% certain but I do know the timing is very close... :thinking:

I found a way to reproduce the failure.

In an effort to be able to get a screenshot of my rule, I changed my hub platform to 2.2.3.148, I am able to access the rule in that version. (Same Database)

Changing the platform to 2.2.4.158 and the error in the first post appears.

3 Likes

Which is an inscrutable error.

Please export the rule on 2.2.4.158, and send it to me by PM.

2 Likes

@bravenel: I've been able to reproduce @Sebastien's steps. The only difference in my case is I dropped back to 2.3.3.148 and the broken rule loaded w/out any issues. Upgrading to any of the 2.5.X.Y updates (all I currently have available beyond 2.3.3.148) brings the error back when I attempt to open the rule.

3 Likes

Bruce (@bravenel), thank you so very much for adding the ability to export a block of RM rules (even containing a mix of 4.0 and 4.1 rules) and then import them, changing a device on import.

A few days ago, Litter Robot changed their cloud API, breaking Dominic Meglioā€™s (@dman2306ā€™s) port of the (originally-SmartThings) Litter Robot integration, which the SmartThings author (Nathan Spencer) has abandoned in favor of Home Assistant, leaving the group of us on Hubitat with Litter Robots stuck.

Dominic Meglio was able to re-work the Hubitat Litter Robots integration to accommodate the new API, but each of us had a bunch of rules to automate the Litter Robot, and those rules broke in the process of deleting the old integration and installing the fixed one.

The ability to export the old rules and then import them back after installing the fixed integration, painlessly replacing the old driver with the new one, was great, and saved a lot of work recreating the lengthy rules.

Thanks.

As a remark, not your problem but something to note, if the rule export is done on an iOS mobile device (iPad, iPhone), iOS helpfully (?) appends ā€œ.txtā€ to the exported file name (whether for a single rule or a block of rules), making it impossible for RM to select the (now, .txt) file for import. The workaround is to go to a (non-mobile device) computer and delete the added .txt extension, leaving the .json extension, which RM can select and import.

Again, thanks.

I was wondering why it wouldnā€™t import from my iPad! I never noticed the .txt extension... Thanks for the info!

We can thank Steve Jobs for this.

2 Likes