Cheers for that.
The AI bots will need to suck up a LOT of your rules to fill a Large Language Model, given your concise coding ![]()
Perfect - Thanks - Found the appropriate section in there, but in all honesty, I think I could just about use it in its entirety, by just modifying it to allow passing of another parameter for the Metadata item name, for which I want to update the duration (instead of expire) - Can handle that part ok (I think!!)
Just trying to get my head around the UI widget side of things now. Maybe I am getting ahead of myself here, but what I was exploring tonight was:
- On opening, Widget calls a (new) rule with the itemname and metadata name, which then reads the metadata, and passes back its value to the widget, which is stored in a widget variable
- User can modify existing widget value, and clicks tick (save)
- The action is then executed to call the modified expire_updater rule with itemname, metadata name, and value
- Live happily ever after
From reading through some posts on the forum, it looks like there is only a rule action option upon clicking the save, and no option to execute a different rule upon opening the rule to bring in a value.
I did see your feedback on https://community.openhab.org/t/send-data-from-rule-to-widget/149550, but that more appears to be looking to ‘push data’ from a rule into a widget… My thinking was to ‘pull data’ from a rule into the widget on opening.
Not so concerned about ongoing updates and the like - The only thing I would expect to be updating the metadata is this Widget itself. (Or via settings in Main UI, and if I happened to be doing both at the same time, I deserve whatever carnage ensues!!)
Problem is, from what I can see, I think bullet point 1 from above does not exist in Main UI- ‘Executing a rule upon opening/starting a widget’
Again - Probably getting ahead of myself here - already written some test rules to pull the various timer duration from metadata I created, so perhaps step 1 is update all my rules to use that, and just manage it via item settings, then worry about a nice way to present that to a user for editing etc…!!
Cheers