After a while away from OH, I’m back to it - started with a long overdue upgrade that I’d been putting off since OH5 appeared.
I pretty much have things back up and running, but stumbling across problems and things I just can’t remember how to do - my search abilities are a bit rusty too as I get back to figuring out the right term/vocabulary needed to get an answer.
TimeOfDay - I’ve got an old version of the TimeOfDay script - not the rule Template version I can that’s available for OH5… I can’t remember how to install things from the market place. I need to add something somewhere, but am beaten finding the instructions to both install the rule template, and also the couple of DateTime widgets suggested - the UI Addons is pretty much empty, I assume I need to enable the market place somehow?
In MainUI go to Settings → Community Marketplace and toggle that on.
To install and use a rule template:
Navigate to MainUI → Add-on store → Automation → Scroll down to Rule Templates and find the one you want. Or you can search. It’s called “Time Based State Machine”
Click “Add”
Navigate to MainUI → Rules and click + to create a new rule and fill out the ID, name, and description.
Open “Create new rule from scratch (or expand to select a template)” and select “Time Based State Machine”
Fill out the form, selecting your TimeOfDay Item and TimesOfDay Group.
Save.
To install and use a MainUI Widget
Navigate to MainUI → Add-on Store → User Interface → Scroll down to the widget you want or search.
Click “Add”
Anywhere you can apply a MainUI Widget (e.g. default standalone widget Item metdata, on a Page, etc.) the list of installed widgets will be presented among the list of default widgets.
Fill out the form and save.
To update a rule template and the rule(s) created from a template
Navigate to Add-on Store → Automation → Installed and remove the template to be updated and readd the template.
Navigate to Settings → Rules → Filter → Marketpalce
Select the rule(s) created from the updated template
Click “regenerate” at the bottom to rebuild the rules with the existing parameters and the new template.
To change the settings of a rule created from a template
Navigate to Settings → Rules → The rule you want to change
Click the “regenerate” icon
Re-fill out the form with your new settings
Save
We will need logs. There are still some sporadic reports of users who are having the forum respond with “too many requests” when trying to install stuff from the marketplace. There’s not enough info here to say if that’s your problem or not.
For my rule templates for OH 5.1+ you can bypass the marketplace. You can just download the YAML file and save it to $OH_CONF/yaml. My latest rule templates use the new YAML file format which makes that possible. The older marketplace entries can only be installed through the marketplace itself though.
Thanks @rlkoshak the log entry I’m getting, and a search, suggests its a known issue:
20:08:07.767[WARN] [org.openhab.core.addon.marketplace.internal.community.CommunityMarketplaceAddonService] - Unable to retrieve marketplace add-ons: Server returned HTTP response code: 429 for URL: https://community.openhab.org/c/marketplace/69/l/latest?page=19