Page 1 of 1

OEG KS2W solarboiler data

Posted: Tuesday 20 June 2017 8:46
by kwiegers
I have an OEG solarboiler with KS2W controller and OTGW with Domoticz connected to iSense.

There is software available for this controller:
https://www.oeg.net/nl/software-voor-ks ... -212000097

I wonder if this is standard protocol like V-bus and if it it possible to import the data in Domoticz.

Any ideas?

Kees

Re: OEG KS2W solarboiler data

Posted: Tuesday 20 June 2017 12:18
by kwiegers
When I connect USB It says: Soletron heating control

Re: OEG KS2W solarboiler data

Posted: Tuesday 20 June 2017 16:57
by Derik
mmm what Hard ware setup do you have..
I am interested in a boiler to..

Re: OEG KS2W solarboiler data

Posted: Saturday 01 July 2017 13:43
by kwiegers
I have raspberyy pi zero, OTGW gateway and domotics with smartmeter.

Wheb I plug in cable, it say it is a modem connection.

Kees

Re: OEG KS2W solarboiler data

Posted: Friday 04 May 2018 0:28
by pgit
I have a OEG KSW-E controller. Connecting the USB to Windows installs a Seltron (heating controller brand) device as a (USB-to) serial port, but I didn't succeed in making a serial connection (with a terminal emulation program) to it program (yet)....
Has anyone found out what settings (baud rate, flow control etc.) are needed and how to
My ultimate goal is to read the data into Domoticz (offcourse)...

Re: OEG KS2W solarboiler data

Posted: Sunday 02 September 2018 18:56
by muurman
i also have a OEG ksw-e and want to connect to domoticz

Re: OEG KS2W solarboiler data

Posted: Saturday 01 February 2020 15:24
by ced2dom
Hi,

I've a OEG KMS-D which is using the same software as the KS2W.

Does anyboby has found a way to interact with the Box ?

Does anybody has the software and would be willing to share it with me. I would like to monitor the serial traffic on the USB to understand the various command sent

Thanks

Re: OEG KS2W solarboiler data

Posted: Friday 07 February 2020 19:05
by brambo123
Today I have looked into it with a friend of mine.
After some research, it appears that modbus ascii is being used.
The correct settings are:
- modbus ascii modes
- baud rate 9600
- unit it 0x80
- function code 3 (read holding registers)
I still have to figure out which holding registers belong to which value, but that is a matter of comparing data with information on the screen.

Re: OEG KS2W solarboiler data

Posted: Wednesday 04 March 2020 18:49
by ced2dom
brambo123 wrote: Friday 07 February 2020 19:05 Today I have looked into it with a friend of mine.
After some research, it appears that modbus ascii is being used.
The correct settings are:
- modbus ascii modes
- baud rate 9600
- unit it 0x80
- function code 3 (read holding registers)
I still have to figure out which holding registers belong to which value, but that is a matter of comparing data with information on the screen.
Hi brambo123,

Which client are you using to query the box ?

The unit it 0x80 is the device ID ? or the starting register ID ?

Re: OEG KS2W solarboiler data

Posted: Friday 27 March 2020 19:28
by ced2dom
Hi,

Due to the COVID, i've had a bit of time to look after this.

My Setup is not a KS2W but a KMS-D from OEG. I've figure out some of the holding registers.

I've created a page on github with a small code to read the register and publish it on a MQTT broker.

Here it is : https://github.com/ced2git/oeg_kmsd

Ced

Re: OEG KS2W solarboiler data

Posted: Thursday 16 April 2020 8:51
by Rik1980
How do you connect to PC or RPI?

Re: OEG KS2W solarboiler data

Posted: Monday 25 January 2021 22:05
by mipviwawes
ced2dom wrote: Friday 27 March 2020 19:28 Hi,

Due to the COVID, i've had a bit of time to look after this.

My Setup is not a KS2W but a KMS-D from OEG. I've figure out some of the holding registers.

I've created a page on github with a small code to read the register and publish it on a MQTT broker.

Here it is : https://github.com/ced2git/oeg_kmsd

Ced
First of all, I owe you a beer.
The sole reason I made an account on this forum, is to thank you for creating the Python code that is found on your Github.

I've altered the code so it fits my needs ;)
(I'm using a signed integer to handle negative values for the sensor T1 which is mounted outside and forward the instrument values to my Homey)

Code: Select all

#!/usr/bin/env python3

oeg_dict = {

	38:"oegT1",
	39:"oegT2",
	40:"oegT3",
	}

address="http://IP-ADDRESS/api/app/com.internet/"

import minimalmodbus
import serial
import csv
import time
import requests

from minimalmodbus import ModbusException
from minimalmodbus import NoResponseError

instrument = minimalmodbus.Instrument('/dev/ttyACM0', 128, minimalmodbus.MODE_ASCII) # port name, slave address (in decimal)
instrument.serial.baudrate = 9600 # Baud
instrument.serial.parity = serial.PARITY_EVEN
instrument.serial.bytesize = 7
instrument.serial.stopbits = 1
instrument.serial.timeout = 0.05	# seconds

localtime=time.asctime(time.localtime(time.time()))
for x in oeg_dict:
	try:
		tempdata = instrument.read_register(x,1,3,signed=True)
		url = (address + oeg_dict[x] + "/" + str(tempdata))
		setvar = requests.get(url)
	except NoResponseError:
		a=1



Re: OEG KS2W solarboiler data

Posted: Monday 18 April 2022 19:39
by passion75
Dear mipviwawes,

How do you connect the oeg to homey?

I also have a OEG KSW and also want to connect it to my homey :D :D :D :D :D

Regards

Pascal Biemans

Re: OEG KS2W solarboiler data

Posted: Wednesday 27 July 2022 9:21
by bliek79
hello, i'm new here.

I recently got a boiler with an oeg kws-* I would like to know which otgw you have used to make a connection to the kws-*, and with which cable it is connected.

I'd love to hear from the experts