Home Assistant for DEYE
Deye Home Monitor is a free integration and a ready-made dashboard for Home Assistant. It reads the DEYE inverter straight from its Wi-Fi logger in your home network – exactly as the Deye-HomeMonitor app does. You need no extra hardware, no cloud and no licence. The dashboard has the same layout as the app: the house with animated energy flows, daily production and consumption, charts, weather forecast and the AC connectors per phase.
What the dashboard shows
- Four main tiles – PV production (now, today, total, PV1 and PV2), house consumption, battery and grid (import and export today).
- The house with energy flows – PV, grid, house, battery and the GEN port with animated dots; their number and speed grow with the power.
- Daily production and consumption – how much of the production went to the house, the grid and the battery, and how much of the consumption came from solar, the grid and the battery.
- Four charts of today and a weather forecast with a yield estimate in kWh.
- Tables and AC connectors – battery status, inverter output, and voltage, power and current on L1, L2 and L3.
The integration creates about 80 entities (power, energy, battery, phases, temperatures) that you can use in automations and in the Energy dashboard.
What you need
- Home Assistant 2024.11 or newer on the same network as the inverter's logger.
- The inverter's Wi-Fi logger: an LSW-5 (you need its serial number from the sticker on the logger) or a WiBLE with Modbus TCP switched on, port 8899.
- The logger's IP address. Reserve it in your router so it does not change. If you use the Deye-HomeMonitor app, both the IP address and the serial number are in its Settings.
- A way to upload files into the
configfolder: Samba share, Studio Code Server or File editor.
Steps
Install the integration
Download the integration (.zip)
Extract the ZIP so that the file
config/custom_components/deyemonitor/manifest.json exists. Create the
custom_components folder if it is not there yet. Then restart Home Assistant
(Settings → System → Restart).
Connect the logger
Settings → Devices & services → Add Integration, search for “Deye Home Monitor” and fill in:
- IP address of the logger, TCP port
8899, Modbus slave address1. - Logger serial number – required for an LSW-5 (the logger's number, not the inverter's). Leave it empty for a WiBLE.
- Register protocol – keep Automatic. The integration tries Solarman V5, then Modbus RTU over TCP and Modbus TCP.
- Logger status page – an optional second source for the lifetime production. The LSW-5 factory login is admin / admin.
EASUN inverter (since version 1.7.0, Eybond collector of the SmartESS app): when adding the
integration choose EASUN – Eybond Wi-Fi collector, enter the collector's IP address, port
8899 and protocol Automatic (PI30, Modbus SMG, Modbus SRNE). The collector is not a server –
Home Assistant asks it to connect back to port 8899, 18899 or 502, so Home Assistant must be able to receive on
it (Docker: host network). While Home Assistant reads it, the collector does not report to SmartESS. The
dashboard is the same, only without the GEN port; today's energies the inverter does not count itself are
estimated by Home Assistant from the powers.
After saving, a “Deye Home Monitor” device appears with its sensors. The energy counters also work in the Energy dashboard.
Add the DEYE Monitor dashboard
Since version 1.5.1 the card ships with the integration itself: Home Assistant loads it after a
restart. Nothing goes to config/www and no dashboard resource is needed.
Settings → Dashboards → Add dashboard → New dashboard from scratch, open it,
⋮ → Edit in YAML and paste the contents of deyemonitor-dashboard.yaml
(or just this). Save.
views:
- title: DEYE Monitor
type: panel
cards:
- type: custom:deyemonitor-card
The card finds its entities by itself, nothing to edit.
If you installed the card by hand before version 1.5.1, delete the resource
/local/deyemonitor/deyemonitor-card.js (Settings → Dashboards → ⋮ → Resources)
and the folder config/www/deyemonitor/.
Set the forecast and house
Settings → Devices & services → Deye Home Monitor → Configure:
- Refresh interval and GEN port – 10 s by default; the integration reads the role of the GEN port from the inverter.
- Weather forecast – the place is pre-filled with Home Assistant's location; add the installed PV power in kWp for the yield estimate.
- PV forecast – Solcast (optional) – your own API key from toolkit.solcast.com.au, roofs from the account (free) or PV arrays (paid). The dashboard then shows “Solcast x kWh” for each day and a curve in the PV chart. A free account has 10 requests a day – if the app uses the same key, choose a longer refresh interval in Home Assistant (e.g. 12 h).
- House number and licence plate – drawn into the house picture.
- Remote access – deyemonitor.sk (beta) (optional, from version 1.6.0) – Home Assistant becomes the home station: with the app's licence code it sends the values to deyemonitor.sk and you see them in My dashboard away from home. Nothing is sent to the inverter; the data stays on our server in Germany (EU). Instead of Home Assistant, the app on Android or Windows can be the home station.
The forecast is off by default; the browser downloads it from deyemonitor.sk.
What to expect
- The charts use Home Assistant's statistics, so they start filling a few minutes after the integration is added.
- Signs are the same as in the app: battery power + = discharging, grid power + = importing.
- A missing value shows as unknown, never as zero.
Troubleshooting
- “The logger does not answer on this address and port”: check the IP address and that Home Assistant is on the same network as the logger.
- “The logger did not answer in a known protocol”: an LSW-5 needs the correct serial number of the logger. A WiBLE needs Modbus TCP switched on in the logger's settings.
- Sensors are unavailable now and then: the logger answers one request at a time. If the Deye-HomeMonitor app reads it too, keep the interval at 10 s or more in both.
- “Custom element doesn't exist: deyemonitor-card”: the integration is older than 1.5.1 or
Home Assistant has not been restarted since it was installed. Update the integration, restart Home
Assistant and reload the page without cache (Ctrl+F5; in the mobile app Settings → Companion app →
Troubleshooting → Reset frontend cache). Check: the address
http://<HA>:8123/deyemonitor_frontend/deyemonitor-card.jsmust show program text. - It does not work away from home: the logger and Home Assistant are on the local network. See the guide Remote access over VPN. Never forward the logger's ports to the internet.
Do you have or want a DEYE Web Gateway?
The DEYE Web Gateway is a separate hardware gateway for the inverter with its own web dashboard and REST API. It has its own Home Assistant integration with the same dashboard. If you are interested, you will find everything on jkbms.sk.
Guide for the DEYE Web Gateway on jkbms.sk
Home Assistant is a trademark of the Open Home Foundation. Deye Home Monitor is an independent LT Solutions project and is not affiliated with Home Assistant or with the maker of DEYE inverters.