Dears GoodMorning. The problem seems to be solved (not 100%) but not the cause.
As per hypothesis problem seems to be generated by cloning button of the app
- 3.JPG (16.13 KiB) Viewed 9210 times
For some reason, this button has cloned also the id of the app instance and system went confused.
(with previous release of the app this never happened)
At first we try to modify id as per short indication…thinking about how interpreting that. Changing only cloned id generated a disaster. In fact reading at the above figure, new sequence was
[…]
Id244
Id245(previous cloned id229)
Id246(previous cloned id230)
Id231
Id232
Id247(previous cloned id233)
What we understood is that system wants singular id and probably also in sequence (but not sure) because Id231 and Id232 probably gave it problems to resolve the instance of the app.
Reading through the single line configjson-xxxxxx.json file is not immediate.The above image let me to hypnotizing something but I was on the wrong way because id is not a prefix and not a postfix. (I confess, I’m not a json exper) Anyway with the help of a json beautifier and some specific tool it was possible to format the file in a human readable way. In this way we could state that a LogicalRule instance is something like the following
{ "instanceId": "0",
"moduleId": "LogicalRules",
"active": true,
"title": "LR Disattiva Deuclima 2",
"params": {
"triggerOnDevicesChange": true,
"eventSource": [],
"logicalOperator": " none",
"tests": [],
"action": {
"switches": [{
"device": "ZWayVDev_zway_87-0-37",
"status": "off",
"sendAction": false
}],
"dimmers": [],
"thermostats": [],
"locks": [],
"scenes": [],
"notification": []
},
"mail_helper": "Currently, no email notification is possible because the EMailMe app is not installed/activated.",
"mail_button": "Activate EMailMe",
"mail_confirm": "ATTENTION! <br /> When leaving the current configuration, all previous settings are lost. <br /><br /> NOTE: <br /> You can continue with 'Cancel' without configuring the EMailMe app, create it afterwards, and add it then in the Logical Rule configuration.",
"conditions": {
"logicalOperator": "and",
"tests": [{
"testType": "multilevel",
"testMultilevel": {
"device": "ZWayVDev_zway_136-0-49-5",
"testOperator": "<",
"testValue": 50
}
}]
},
"triggers": {
"triggerOnDevicesChange": true,
"eventSource": []
}
},
"id": 252,
"creationTime": 1504382898,
"category": "automation_basic"
},
Where something is still strange because EmailMe app is installed and activated….
At the end, to come back to an apparently stable condition, I needed to individuate instances with problems (the ones which generated previous error-previous post), delete them and reinstall them again as a new instances without using clone button.
Now, even if the id sequence is not strictly ascendant (this is only for Logical Rules instances), system seems to work stable.
Questions for the experts:
Could you please provide us with more detail on how the system generate APP ids?
Is there another file (which one?) where the system keeps data or it read only from the configjson?