Prerequisites
In order to run EMHASS, you need to be able to provide the 4 required forecasts (buy/sell electricity prices, solar, and load). In this guide we will use Amber for electricity pricing, and Solcast for solar forecasts, however these are not strict requirements as long as the data can be sourced from somewhere.
TL;DR
If you want to skip ahead, make sure you have everything listed here installed. Further explanations can be found below.
- Home Assistant
- HACS Integration
- Sigenergy modbus integration
- Solcast Integration
- Amber Electric Integration
- EMHASS Addon
- ApexCharts Card (Optional)
Dependencies
You will of course need to have Home Assistant installed along with the HACS Integration. HACS provides access to many community written components (i.e. they aren’t (yet) in home assistant core).
Sigenergy Control
In order to read the current state of the solar/battery system, as well as controlling it, we will be using the Sigenergy modbus integration.
IMPORTANT: The Sigenergy integration requires that the “ModBus TCP Server” setting has been enabled by your solar installer on each Sigenergy inverter/device. This cannot currently be enabled as just an end user. This can be done remotely by your installer.
You can start in read-only mode if you wish, while setting up the rest and making sure everything is working. However you will need to eventually disable read-only mode in order to be able to automate the control of the battery system.
Solar forecast
For solar forecasting we will be using the Solcast Integration. This requires an account and a site setup describing your setup via their website.
Note: They recommend a site-per-string but have a restriction of 2 sites for a free user. If you have more strings you can weighted average them down to 2 (e.g. East and West). It is on my TODO list to give a 4-string example here.
Pricing forecast
For price forecasting we be using the Amber Electric Integration. This will require an API key that can be obtained via the amber webapp (Make sure to enable developer mode).
This guide assumes a site name of Home
. If you use another name you’ll need to adjust the sensor entity names in the scripts and automations.
Note: There is an amber2mqtt addon which boasts quicker price updating. This requires an MQTT server and adds some complexity so we won’t be using it for this guide.
EMHASS Optimizer
Finally the brains of the operation, you’ll need to install the EMHASS Addon.
The rest of this guide will explain how to run actually configure and operate EMHASS in combination with the above components.
Graphs
If you wish to generate pretty graph dashboards (recommended), you’ll want to install the ApexCharts Card.