Kronoterm heat pump integration

That would be great! HA has MODBUS integration so if it could be reached via TCP/IP that would be wonderful - no extra hardware required. I was thinking how to get RS485 MODBUS to TCP/IP - here is one that maps RS485 to TCP/IP. Probably could also be done with ESP or similar. Perhaps another thing to look into.

these two very small devices in pair work with esphome in home assistant
it would be the perfect solution to control the kronoterm in rs485, but it would take someone able to get their hands on the code

While Iā€™m thinking of a purely local solution (MODBUS) I implemented some basic control in these two projects:

kronoterm-cloud-api

Python API client for cloud.kronoterm.com.
Install: pypi

kronoterm-cloud-relay

Local relay between cloud.kronoterm.com and local network.
Install: clone the repo and follow README.md

It is run locally (on RPi, ā€¦) and exposes REST API to the local network.

cloud.kronoterm.com, as the back-end for relay, could easily be replaced with MODBUS implementation. Right now the simplest solution (but not the cheapest) Iā€™m thinking of is HA-RESTful ā†” LAN ā†” REST-API ā†” RPi ā†” RS485USB.

kronoterm-cloud-relay configuration

  1. Install and run as described in project README. You can use your personal PC, RPi, NUC,ā€¦ to run it on.
  2. Add RESTful and template sensors to home assistant. Help available here

and for home assistant ?

There is a section with home assistant help in the kronoterm_cloud_relay README file.

Here is direct link to home assistant help file.

1 Like

oh yes very nice!
but Kronoterm cloud relay but Kronoterm cloud relay i have to install it on a small debian server?
isnā€™t there a direct module for home assistant?

@wifi75 Iā€™m running on an old RPi rev2, so no problems here.

There is no ā€˜integrationā€™ for HA and is also not planned. HA configuration needs to be done manually as per README.txt.

I did update the installation docs on github, so I hope this helps!

1 Like

thanks Leskolam for your work!

I have a second RPI with CASAOS sw installed do you think it is possible to install ā€œkronoterm cloud relayā€?

thanks Danilo

If itā€™s running linux, it should be possible.

1 Like

We were trying to get the kronoterm-cloud-relay running at @wifi75 location and were unsuccessful. If someone is having problems or did manage to get it to work please comment with some inputs.

It looks like the problem is with the API or how cloud.kronoterm.com works. So I would need to see API calls from and to the servers (F12 ā†’ network tab). The problem is I only have one heat pump in one location so canā€™t check my code against other HW.

Here is the GitHub issue with some data.

Just wanted to updated that we managed to make it work with @wifi75 at his location. The problem was how username and password was read from .env file.

I updated the documentation and made new version.
kronoterm-cloud-relay-0.0.5

1 Like

Works perfect with Kronoterm WPG-10-K2 HT. Thanks!

1 Like

Hey,

Iā€™ve been using their API for years now, but only to get the data. Never tried anything else, as I never had a need. Maybe somebody else finds it useful.

Method: GET
URL: https://cloud.kronoterm.com/jsoncgi.php?TopPage=1&Subpage=2
Authentication: Basic

If you login to https://cloud.kronoterm.com with your existing credentials and use the above url in the browser it should already work.

Iā€™m using Node-Red flow to fetch the data and feed it to Home Assistant. Nothing fancy.
Hereā€™s the node-red flow: https://pastecode.io/s/9i8pkjdz

Edit: Tried to do the changes as well. It works.

postman-kronoterm

Method: POST
URL: https://cloud.kronoterm.com/jsoncgi.php?TopPage=1&Subpage=3&Action=1
Authorization: Basic
Content-Type: application/x-www-form-urlencoded

payload:

param_name=water_heating_on
param_value=0 <----- this turns it on (1) or off (0)
page=-1

So I guess you can do whatever their cloud.kronoterm.com site allows you to do.

1 Like

hi, do you just need to add the credentials in the http request?

Hello this two sensor not working

how I can Fix ?

Hey,

it looks like the response for Cloud Status might have changed, and I just havenā€™t noticed. Or it only becomes available if the payload.result == failure. Honestly, I donā€™t know. Because I as well cannot find the value in the response I get at the moment.

However, for the msg.payload.TemperaturesAndConfig.working_function can you try the following:

  1. Adding the debug node after json node with msg.payload.TemperaturesAndConfig.working_function in the output. What do you get?

  1. What do you get if you put the debug node after the error node Funzionamento della pompa kronoterm (non inattiva)?

  2. Does the response you get from the https://cloud.kronoterm.com/jsoncgi.php?TopPage=1&Subpage=2 even have TemperaturesAndConfig.working_function value? Check the response you get in node-red.

Or check online, press (chrome) F12 and refresh F5 the page. See how my link above says Subpage=2, however in the image it says Subpage=1. Try changing the url, if you get different responseā€¦

  1. And if you do get the response, try deleting the node-red node and re-creating a new one.

Hi. Here is modbus communication document for Kronoterm. Maybee you will find it usefull https://filetransfer.io/data-package/3XjjcLO9#link

hello, now only cloud status not working:

but could you create a system to be able to also modify the values? and manage the pump also in HA

Sure,

try this: https://pastecode.io/s/8s02biwp

Make sure you change the URL to the correct one, and use method POST.

Update the javascript code to reflect what youā€™d like to change. In the example itā€™s turning off (param_value=0) the water_heating_on setting. If youā€™d like to turn it on, use param_value=1.

For changing other Kronoterm settings, have a look at the payload that gets sent, and to which URL, by the browser when using cloud.kronoterm.com.

For example, changing circle_status, which is floor heating pump in my caseā€¦ I have to change both, the URL and the payload information.

too complicatedā€¦