Skip to content

Commit

Permalink
Merge pull request davidusb-geek#104 from GeoDerp/patch-6
Browse files Browse the repository at this point in the history
Update README.md from emhass/README.md
  • Loading branch information
davidusb-geek authored Oct 25, 2024
2 parents 509e0c4 + 5b9cd18 commit 6d43ec7
Showing 1 changed file with 57 additions and 10 deletions.
67 changes: 57 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- markdown file presented on the main addon info tab -->

# EMHASS Add-on

### A Home Assistant Add-on for the EMHASS module: Energy Management for Home Assistant
Expand Down Expand Up @@ -42,24 +44,69 @@ For any Issues/Feature Requests for the EMHASS core module, create a new issue h
</a>
</div>


## Installation

To install add the EMHASS Add-on repository in the Home Assistant store, follow [these steps](https://www.home-assistant.io/common-tasks/os/#installing-third-party-add-ons)
The steps to install EMHASS as an Home Assistant addon:

1) Add the EMHASS-Add-on repository to the HAOS add-on store

- To install add the EMHASS Add-on repository in the Home Assistant store, follow [these steps](https://www.home-assistant.io/common-tasks/os/#installing-third-party-add-ons)

- This will be: Configuration > Add-ons & Backups open the add-on store > Add the URL of the repository (e.g https://github.com/davidusb-geek/emhass-add-on) and then press "Add".

2) Install the EMHASS Add-on
- Look for the EMHASS Add-on tab and when inside the Add-on click on `install`.
- The installation may take some time depending on your hardware.

This will be: Configuration > Add-ons & Backups open the add-on store > Add the URL of the repository (e.g https://github.com/davidusb-geek/emhass-add-on) and then press "Add".
3) Start the EMHASS addon
- Once installed, head into the EMHASS addon
- click `start` to start the EMHASS web server
- For consistent use, it is recommended that you enable: `Show in sidebar`,`Watchdog` and `Start on boot `

Look for the EMHASS Add-on tab and when inside the Add-on click on `install`.
4) Open the EMHASS web interface, and configure parameters
- Click `OPEN WEB UI` to enter the EMHASS web server
- Click the cog icon ⚙️ to to enter the emhass configuration page
- Insert your user specific parameters
- For users who wish to use `Solcast` or `Forecast.Solar` insert your secrets in the Home Assistant EMHASS configuration page, under `Show unused optional configuration options`. (E.g: `localhost:8123/hassio/addon/emhass/config`)

Be patient, the installation may take some time depending on your hardware.
## Installation Method 2 - Manually changing EMHASS version
This method allows the user to select which EMHASS version to run _(via adjusting the Docker version tag)_. This second method of installation may be more preferable for users who wish to test EMHASS or rollback to a older stable version.
_Warning: This method will override the Docker image tag, and therefore will require the user to manually adjust the tag to update. The user will also need to regularly check to see if the EMHASS-Add-on repository is up to date with the Github `main` branch_

1) Have a method of inserting commands
- Two Addon options are [Terminal & SSH](https://github.com/home-assistant/addons/tree/master/ssh) and Community Add-on: [Studio Code Server](https://github.com/hassio-addons/addon-vscode)

2) Clone the `EMHASS-Add-on` repository into your `/addons` directory
```bash
cd ~/addons/
git clone https://github.com/davidusb-geek/emhass-add-on.git
```

3) Specify what EMHASS version image to use
- in the `emhass-add-on/emhass/config.yml` adjust the `version:` line to match the version of choice:
```bash
# set version here
emhassVersion=v0.20.0
# sed command to replace version line in config.yml
sed -i.bak "s/version:.*/version: $emhassVersion/g" ~/addons/emhass-add-on/emhass/config.yml
```
4) Head to the Home Assistant add-on store and refresh addon cache
- Settings > Add-ons > Add-on Store
- Refresh Addon cache with: hamburger icon ☰ > Check for updates
- Wait half a minute and refresh the page

5) Install local version of EMHASS
- From here a new Addon Source under the name `Local add-ons` should appear _(if not repeat step 4)_
- Install the EMHASS addon, Note: after clicking the EMHASS addon, the `Current version: ` Tag on the top left of the EMHASS card.

When the installation has finished go to the `Configuration` tab to set the add-on parameters.

## Developing EMHASS/EMHASS-Add-on
- EMHASS
- For those who want to develop the EMHASS package itself. Have a look at the [Develop page](https://emhass.readthedocs.io/en/latest/develop.html). *(EMHASS docs)*
- EMHASS-Add-on
- For those who want to test the Home Assistant integration of EMHASS. Have a look at [Test.md](./Test.md).

#### **EMHASS**
For those who want to develop the EMHASS package itself. Have a look at the [Develop page](https://emhass.readthedocs.io/en/latest/develop.html). _(EMHASS docs)_

#### **EMHASS-Add-on**
For those who want to test the EMHASS addon _(EMHASS inside of a virtual Home Assistant Environment)_. Have a look at [Test Markdown](./emhass/Test.md).

## License

Expand Down

0 comments on commit 6d43ec7

Please sign in to comment.