Appearance
Home Assistant integration
This section documents the homeassistant integration side of this.
Installation
Via HACS
- Ensure HACS is installed in your Home Assistant setup. If not, follow the HACS installation guide.
- Open the HACS panel in Home Assistant.
- Click on the
FrontendorIntegrationstab. - Click the
+button and search forRunelite. - Click
Installto add the component to your Home Assistant setup. - Restart Home Assistant after the installation completes.
Manual Installation
- Navigate to your Home Assistant configuration directory (where your
configuration.yamlis located). - Create a folder named
custom_componentsif it doesn't exist. - Inside the
custom_componentsfolder, create another folder namedrunelite. - Clone this repository or download the source code and copy all files from the
custom_components/runelite/from the repository directory to the newly createdrunelitefolder. - Restart Home Assistant to load the custom component.
After following these steps, your directory structure should look like this:
markdown
custom_components/
runelite/
__init__.py
config_flow.py
manifest.json
sensor.py
services.py
...Configuration
Add Integration
- Go to the Settings → Devices & Services page in Home Assistant.
- Click Add Integration and search for
runelite. - Follow the on-screen instructions to complete the setup.
- Provide your OSRS username
- You can provide your farming tick offset, this can be found in the timers plugin in runelite. Set this to 0 if you can't find it.
- You can create entities for multiple usernames.
After completing the config flow, the integration will automatically create sensors under a hub for all the timers. And one for the farming tick offset, you can change the sensor's value to change it.
Accompanying runelite plugin
I have built a custom runelite plugin to automatically update these entities. It will also automatically set the correct farming tick offset.
It can be found on the plugin hub named "Homeassistant", or check the repository.
Find docs about configuration options here