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
- M5STACK ATOM Lite - Aliexpress, M5STACK store, documentation
- M5STACK ATOM RS-485 Base - Aliexpress, M5STACK store, documentation
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
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.
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!
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.
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
Works perfect with Kronoterm WPG-10-K2 HT. Thanks!
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.
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.
hi, do you just need to add the credentials in the http request?
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:
- Adding the debug node after json node with msg.payload.TemperaturesAndConfig.working_function in the output. What do you get?
-
What do you get if you put the debug node after the error node Funzionamento della pompa kronoterm (non inattiva)?
-
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ā¦
- 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ā¦