It may be my fault but anyhow, how can I clean this mess now? In the process of getting the best rule, I have modified, copied, and modified again and again several of my rules related to ikea blinds. Now it’s getting fairly close to what I really like but somehow, there are still some weird behaviour sometime. I just discovered the problem now because in the device F6 (this is how I called that one) it said that it is used by the rule machine related to all the other blinds. So I opened the RM for blind F1 and there was no reference to F6 in that one. Decided to edit it anyway. In editing, I see the conditions were mixed up. One of the condition was related to a deleted variable, and another condition was simply FALSE (blank condition I guess). I could delete the condition related to the deleted variable, but not the empty one.
Then, clicking on the gear icon, I could see a few lines in that list that were not related to this blind.
Is there a way to edit the RM in raw? Otherwise, how can I clean that up?
It's my understanding the "In Use By" is not accurate, it might have been part of the rule at one time but now is not doesn't mean it is causing any issues.
With that being said, yes it's possible a rule needs to be re-written as with significant edits, they can get wonky, Bruce has chimed in many times and when he says, the rule should work like it's written and to rewrite, the user most often comes back and says, that did it. I personally have had several that when rewritten fixed whatever was going on
My suggestion is to only re-create a rule if you feel it's not working as written, not all of them.
Not saying you don't have wonkiness in a rule, however the reference to another rule in the "in use by" is not causing the issues and conditions in any rule can be cleaned up just by selecting that section when editing the rule and use the delete option. You can also use the edit option to update parameters such as <50 in the rule can be easily changed to <55 by editing the condition rather than deleting the rule entry and recreating it
You may already know this, however just wanted to point it out
There is some behaviour with the blinds that I'm not sure if they are caused by the blinds not responding, or if it is because of the hidden crap left in the RM. I'm going to try the newly created ones for a while and see.
Thanks @aaiyar for this info about H2 database. Downloaded it and learning how to use it now
@JasonJoel this sounds interresting. I watched the youtube about Node-RED. Sounds more complex than coding groovy itself. Anyhow, I've got a few evenings to learn all that stuff. Thanks
Wow, you guys got me really interested. Going to read this now. I sure hope this is nothing that requires internet to run my devices... I’m aiming to freedom more and more.
I’ll stay with the rule machine then. It should be enough. I will try coding groovy and write drivers and apps. I have installed IntelliJ but didn’t figure out yet how to see the zigbee library and the HU library.