in the end it will be a serial connection (as you mentioned)… and spending about 20€ for the cable and the USB2Serial-Adapter or 800€ for an ISG web and the modbus addon from stiebel… well not a hard choice.
For the binding: Well at leat i’m interested and if i can help you at migrating the binding, i’m in.
As i want to start binding development for OH2 anyway, that would be a good starting point. (or maybe not )
i was very busy in the last days. I hope i can find some time tomorrow to get my setup running and the heatpump-monitor working so i can get the protocol version. Saving the config in the channel-settings looks fine to me.
myold openhab1 was still on version 1.7
in the meantime code has been updated in github to extend the functionality for accessing the heatpump with via ethernet.
Unfortunately the code is not working anymore for the serial port.
Will need some time to find the root cause.
in the other putty session gives me no response. My wiring should be ok… no idea what i’m doing wring here
running the protocol.py gives me that:
Traceback (most recent call last):
File "protocol.py", line 274, in <module>
File "protocol.py", line 268, in main
aP = Protocol(versionsConfigDirectory="protocolVersions/")
File "protocol.py", line 112, in __init__
self._version = self.versionQuery()
File "protocol.py", line 249, in versionQuery
File "protocol.py", line 139, in _establishConnection
raise IOError, "Error: heat pump does not respond - is it connected?"
IOError: Error: heat pump does not respond - is it connected?
Is there a better way to connect the heatpump to a raspi?
Well… i found out that i made a mistake in the wiring. Seems like the pin numbers Robert Penz mentioned are 3,2,1 from up to down if you look at the connector on the THZ 304. i made my connector 1,2,3 and by changing the order i destroyed the connectors… so i have to rewire that stuff. Hopefulle protocol.py works after that.
are you login with root or execute the python script with sudo ?
Do you have RS232 on Raspi and if so done all necessary step to use it a seriell interface?
If you have trouble with RS232 and the voltage level in the raspi, you may use a usb / rs232 converter in windows and use the python
I have connected my linux server in the cellar directly with RS 232. Also did some simple test with a windows PS and USB/RS232 converter.
i deactivated the GPIO serial Interface via the openhabian config tool.
I run the script via sudo in a putty session and i use a RS232/USB dongle that is connected to a usb 2.0 hub which is connected to one port of the raspi.
Will try to connect the RS232 to my windows box. Maybe i need a external powered USB 2.0 Hub?
No improvement. I connected the RS232/USb to my laptop and ran protocol.py on my windows install.
The RS232/USB dongle is visible and known under COM3. Protocol.py gives me the same error as above.
Unfortunatley i can’t include pics of my wiring here and my multimeter to check connectivity of the cable is out of order atm.
The service guy that came once a while ago could open a connection…
my programming skills are limited, but if it helps I would like to test the binding.
I have a LWZ 404 SOL with software-ID 5993 and software-version: 5.39.
RS232 communication with the heatpump works (tested with a teminal program at 115200 baud).
i think Peter is developing the binding. As it is not yet finished (i guess ) it is not yet included in the bindings of OH2.
I will contribute to the development of the bining as soon as my connection to the heatpump works.
A second beta-tester would be warmly welcome i guess :).
Btw: Peter, i have found the error of my connection problems. RX and TX were not in the right order.
I will post some further details as soon as i set up the correct wiring, so that anyone else who wants to connect a 304 eco doesn’t have to make the same mistakes.
yes basic setup of new openhab2 binding done. unfortunately the changes been done in the code by other commitments broke the communciation to my heatpump. will need to roll back some code to were i know it is working
expect to have this working next weekend
will provide a download link here in the chat