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.