Jan Wolf

Results 12 comments of Jan Wolf

Have the same issue https://github.com/neo4j/neo4j/issues/9663

Thanks, that sounds reasonable.👍 Is there a workaround? Enabling and disabling rules did not work. Only re-save them triggers a reinitialization. Maybe this can be done programmatically?

I like to track the last activation (e.g. Light) of an item with a given tag. Therefore a rule checks upon item changes, if every item of that tag is...

Actually I want to setup everything easily without manual creation of items (so people without detailed knowledge can setup their home easily. So thats why I make much use of...

Looks good, thanks! I have some questions: 1) Is the regenerated rule removed after reloading the original python rule? 2) The Rule UUID of a python rule is always different...

I am still experimenting with these functions. How do you create the original triggers here? ```` for trigger in RULE_TRIG[target.__name__]: when(trigger.format(group=RULE_TRIG_MAP.get(target.__name__, lambda: "")()))( target ) ```` Unfortunately, I always get...

Not easy, surfing through the community forums 🤔 I guess this library needs to save the file metadata in addition to the rule registry (at least the original triggers). This...

I added arrays of original triggers of each rule and add this to the following method call: ```` def reload_rules(tags=['core-reload'], triggers=[]): if len(triggers): for _rule in ruleRegistry.getByTags(tags): ruleRegistry.remove(_rule.getUID()) for trigger...

Ok, my approach will not solve the whole thing, but I was able to trigger a rule reload. I am using the following method and call it manually as soon...