dm82m / hass-Deltasol-KM2

Custom component for retrieving sensor information from Resol KM1/KM2, DL2/DL3, VBus/LAN, VBus/USB
MIT License
25 stars 6 forks source link
deltasol home-assistant-hacs homeassistant-integration km2

version maintained license hacs_badge
downloads_latest buy_me_a_coffee

hass-Deltasol-KM2

Custom component for retrieving sensor information from Resol KM1/KM2 or DL2/DL3 or VBus/LAN or VBus/USB. This component automatically determines if you are using KM1/KM2 or DL2/DL3 device and can also be set up to work with VBus/LAN or VBus/USB. Component uses webservice to get all the sensor data and makes it available in Home Assistant.

Installation

HACS (preferred method)

Manual install

Create a directory called deltasol in the <config directory>/custom_components/ directory on your Home Assistant instance. Install this component by copying all files in /custom_components/deltasol/ folder from this repo into the new <config directory>/custom_components/deltasol/ directory you just created.

This is how your custom_components directory should look like:

custom_components
├── deltasol
│   ├── __init__.py
│   ├── const.py
│   ├── manifest.json
│   ├── sensor.py
│   └── deltasolapi.py  

Configuration

In any case, try to ensure to have the latest firmware running on your Resol device.

KM2 and DL2/DL3

It works out-of-the-box, the only thing that is needed is the configuration described next.

Configuration variables

Example configuration.yaml

sensor:
  - platform: deltasol
    host: your_resol_hostname_or_ip
    username: your_username
    password: your_password

KM1, VBus/LAN and VBus/USB

There is one prerequisite before it works. You need to run the resol-vbus json-live-data-server. To do so you have at least two possibilities:

  1. Run the server as an HAOS add-on, continue here.
  2. Run the server on your own, continue here and ensure to be at least on git commit 7c9e88af5af3e14443c01a4ec5d7c042be2163f9.

If your json-live-data-server is successfully running, lets continue here.

Configuration variables

Example configuration.yaml

sensor:
  - platform: deltasol
    host: 127.0.0.1:3333

Troubleshooting

Please set your logging for the this custom component to debug during initial setup phase. If everything works well, you are safe to remove the debug logging:

logger:
  default: warn
  logs:
    custom_components.deltasol: debug

Credits

A huge thank you to the following people for your contribution and/or inspiration: ostat / chiefdeputy / erikkastelec / danielwippermann.