Resol KM2 Controller is a custom integration to log sensor information from Resol devices using KM2 communication module.
This is my first time programming in Python and publishing to Github. This component was inspired by dm82m/hass-Deltasol-KM2 and I used some of dm82m’s code to fetch the KM2’s data via webservice.
I have made the following changes to dm82m’s component. Some are improvements, others maybe not so. The main purpose for me was to learn Python, program my first HASS custom integration from scratch and to publish to github.
Setup via custom_flow using multiple steps
Add port as connection detail
Combine KM2 specific sensors into devices as suggested by hoppel118
Group sensors into ‘useful’ device sensors and less important diagnostics sensors
Each sensor entity_id incorporate unique device name, yet presents friendly sensor name
Update of the full dataset of all sensors belonging to a KM2 device with single API call
Sensors that are disabled are skipped for updates, same with sensors where the state value has not changed
Present additional device specific attributes on each sensor
Extensive debug logging (hopefully helpful to anyone going through the same learning curve as myself)
Adding translations
There is a disadvantage in my integration: I only focused on KM2, even though I am certain that this integration could easily be amended to include DL2, KM1, VBUS and other Resol devices. The reason for this is that I simply don’t own any other Resol device and henceforth could not test this. If anyone is interested to extend this integration, please let me know, happy to do so.
Here are a few screenshots.
Please follow this project if you are interested in developing it further. Any input welcome, I am committed to extend and improve this further. Please keep in mind that I am new to this
Looks good! I have a Resol device and looking to integrate it into HA. Your integration looks perfect.
I’m just a bit lost on what device I need to buy to be able to connect:
fair enough - I am back mid next week and will be able to help with testing. I think as I said earlier there is one small modification necessary.
Please ping me once you got it all installed.
Thanks
Martin
Thx Martin,
I successfully setup the add-on dm82m/hass-Deltasol-KM2 in HA. Tbh this is enough for my needs but happy to help test the LAN adaptor on your integration.
I have just come across your integration as I use a KM2 to read out my solar system.
It has worked perfectly right from the start, thank you for that!
I can read out the values out of the heat meter, so I get the reading for the heat power - which ist the main value.
However there is the controls for the solar panels also connected via VBUS and on vbus.net I can see all the values the KM2 sends out like the temperature sensors at the panels, pump status etc. There aree two modules on the VBUS, but I can see only one of them in your integration.
Is there an easy way to see those additional values in HA as well? Actually they must be there as the KM2 does send them out…?
Hi Michael, Thanks for the feedback. Currently sailing and only back 3rd week in July. I am sure it can be added to the data output. Do you mind if I look when back? Thanks. Martin
I am new to Home assistant and strugeling to get your code implemented into Home Assistant. I have no clue where to start. The documentation isn’t clear to me as I can’t find anything under integrations with “_Resol_Controller”. So what goes wrong??