Zehnder/Stork WHR Ventilation Unit

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Wednesday 10 August 2016 14:21

Same error here:
False
False
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "./ventserver.sh", line 87, in GetVentilationData
if fanLevel != self.fanLevel and self.fanLevel != False:
UnboundLocalError: local variable 'fanLevel' referenced before assignment

Setup:
    WHR930 Basic
    RJ45->RS232->USB Converter
No temps...

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Wednesday 10 August 2016 14:33

Which Linux Version and Python are you using?

Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Thursday 11 August 2016 18:35

[email protected]:~$ dmesg | grep ubuntu
[ 0.000000] Linux version 3.19.0-65-generic ([email protected]) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #73~14.04.1-Ubuntu SMP Wed Jun 29 21:05:22 UTC 2016 (Ubuntu 3.19.0-65.73~14.04.1-generic 3.19.8-ckt22)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.19.0-65-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.19.0-65-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
[ 3.147060] Adding 16650236k swap on /dev/mapper/ubuntu--vg-swap_1. Priority:-1 extents:1 across:16650236k SSFS
[email protected]:~$ python -V
Python 2.7.6
[email protected]:~$ dmesg | grep -i ttyusb3
[402837.190061] usb 1-8: pl2303 converter now attached to ttyUSB3


Cable wired like this:
rj45 pin 2 -> rs232 pin 3
rj45 pin 3 -> rs232 pin 2
rj45 pin 8 -> rs232 pin 5

Cable verified using multimeter, all connection are good.
Neither RS232 (plugged into MB rs232) nor Serial2USB is working.

ventserver.sh adapted:
# Create an instance of the ZehnderWHR930 class
Ventilation = ZehnderWHR930('/dev/ttyUSB3')

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Saturday 13 August 2016 20:51

Maybe I found the cause... I will post a adjusted Version soon

User avatar
bizziebis
Posts: 528
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi
Domoticz version: latest
Location: The Netherlands
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby bizziebis » Sunday 14 August 2016 11:34

Finally got some time to test the new script. For me it works without any problems.

Instead of adding 5 Push On buttons you can also make one selector switch:

Image

(The off button is not used in this case. I think it's a bug in the selector function that you cannot edit the 'off' name. Otherwise I would have called it 'Auto')

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Sunday 14 August 2016 11:53

Good idea, didn't know that was possible ;)

tlpeter
Posts: 275
Joined: Wednesday 26 November 2014 19:43
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby tlpeter » Tuesday 16 August 2016 9:34

I use this switch too. I call a json command per switch which turns a scene on which turns on and off some switches.

maurino
Posts: 2
Joined: Tuesday 23 August 2016 12:04
Target OS: Raspberry Pi
Domoticz version: 3.4834
Location: Italy
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby maurino » Tuesday 23 August 2016 12:29

Great and interesting solution.

Do you know if it can works for a comfoair 160?

Comfoair 160 wiring schema: http://imgur.com/a/xUM61

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Friday 26 August 2016 8:04

Do you have also a ComfoSense? ( I see a rs232 cable from the main board to additional board )

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Friday 26 August 2016 8:23

The fanlevel function is a bit useless (it only displays the fan level when its adjusted by the script, and not when the bathroom button or C02 module been used.

But the supply Air level has different values (100=level3 75 =level2 etc) which can be used to set the selector switch

if Ventilation.supplyAirLevel == 100:
print "Fanlevel 100%"
url = "http://%s:%s/json.htm?type=command&param=udevice&idx=%s&nvalue=1&svalue=40" % (domoticzip, domoticzport, fanselect)
r = requests.get(url)
r.json()

if Ventilation.supplyAirLevel == 75:
print "Fanlevel 75%"
url = "http://%s:%s/json.htm?type=command&param=udevice&idx=%s&nvalue=1&svalue=30" % (domoticzip, domoticzport, fanselect)
r = requests.get(url)
r.json()


So when the bathroom button is pushed, the selector automatically goes to level3

maurino
Posts: 2
Joined: Tuesday 23 August 2016 12:04
Target OS: Raspberry Pi
Domoticz version: 3.4834
Location: Italy
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby maurino » Friday 26 August 2016 8:47

Sappien wrote:Do you have also a ComfoSense? ( I see a rs232 cable from the main board to additional board )


I don't have a comfosense but a CC 3V Control http://www.nestsystems.it/ita/prodotti/regolazione_e_controllo/controlli_ambiente_bus/zehnder_cc_control.php

Sappien
Posts: 200
Joined: Saturday 24 August 2013 9:59
Target OS: Linux
Domoticz version: beta
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Sappien » Friday 26 August 2016 11:45

When the RS232 port is free you can use it with this script.

Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Sunday 28 August 2016 17:02

Sappien wrote:Maybe I found the cause... I will post a adjusted Version soon


Problem solved! I was looking at the front of the ethernet connector instead of looking from behind, therefor using the wrong wires. Now that i'm using the right wires, it works!
Last edited by Lisa on Sunday 28 August 2016 19:32, edited 1 time in total.

Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Sunday 28 August 2016 17:17

maurino wrote:Great and interesting solution.

Do you know if it can works for a comfoair 160?

Comfoair 160 wiring schema: http://imgur.com/a/xUM61


https://plus.google.com/photos/10800365 ... 3340580689

domoticzcom1234
Posts: 9
Joined: Saturday 25 June 2016 17:21
Target OS: Raspberry Pi
Domoticz version: Stable
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby domoticzcom1234 » Sunday 04 September 2016 15:19

Lisa or Sapien,

Still the script and cable are not working. It must be a wiring issue but I cannot find it.

My questions:
- I now see 3 versions of the wiring. 1) the original post, 2) a post from bejdehanz on Monday 11 July 2016 19:11 and 3) a different one as posted as a photo by Lisa (
https://lh3.googleusercontent.com/EqB25f6djRFhKwtvZPrPtrP0xotuGgmdapcC1e7xS_5moHkW8kx-_4UD3SQtSh0_bNJfWFBdew=w1920-h1080-no
). Which to choose? This has also NEVER be confirmed.
- Do I require the 12 volt on pin 1 or not? Using the wiring scheme as listed below, using the RJ45-to-RS232 cable, and this connected to my RS232-to-USB is not recognized by my PI. No ttyUSB0 device is available. With my RS232-to-USB only this cable is recognized by my PI but in combination the script from Sappien gives issues and also results in a NC error on my Comfosense (control unit in the living room).

I really would like to get this project to work but without any help I will not succeed.
Please respond.

On Thursday 11 August 2016 18:35 lisa wrote:
Cable wired like this:
rj45 pin 2 -> rs232 pin 3
rj45 pin 3 -> rs232 pin 2
rj45 pin 8 -> rs232 pin 5

Cable verified using multimeter, all connection are good.
Neither RS232 (plugged into MB rs232) nor Serial2USB is working.


Can anyone please help?

Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Friday 09 September 2016 13:42

domoticzcom1234 wrote:Lisa or Sapien,

Still the script and cable are not working. It must be a wiring issue but I cannot find it.

My questions:
- I now see 3 versions of the wiring. 1) the original post, 2) a post from bejdehanz on Monday 11 July 2016 19:11 and 3) a different one as posted as a photo by Lisa (
https://lh3.googleusercontent.com/EqB25f6djRFhKwtvZPrPtrP0xotuGgmdapcC1e7xS_5moHkW8kx-_4UD3SQtSh0_bNJfWFBdew=w1920-h1080-no
). Which to choose? This has also NEVER be confirmed.
- Do I require the 12 volt on pin 1 or not? Using the wiring scheme as listed below, using the RJ45-to-RS232 cable, and this connected to my RS232-to-USB is not recognized by my PI. No ttyUSB0 device is available. With my RS232-to-USB only this cable is recognized by my PI but in combination the script from Sappien gives issues and also results in a NC error on my Comfosense (control unit in the living room).

I really would like to get this project to work but without any help I will not succeed.
Please respond.

On Thursday 11 August 2016 18:35 lisa wrote:
Cable wired like this:
rj45 pin 2 -> rs232 pin 3
rj45 pin 3 -> rs232 pin 2
rj45 pin 8 -> rs232 pin 5

Cable verified using multimeter, all connection are good.
Neither RS232 (plugged into MB rs232) nor Serial2USB is working.


Can anyone please help?


Use a multimeter to verify that the connections are correct (use my wiring, so crossing 2->3 and 3->2). The 12V is NOT needed, forget it!
Make sure you didn't shortcircuit any pins (like by mistake connecting pin 2 and 3 on the rs232 since they are tiny).
Make sure the rj45 is realy IN the comfosense socket and not almost (making no connection).

Post cable foto's here (of the rj45 and rs232, with visible wires so we can check).

Run op the PI:
- dmesg | grep -i tty
(mine: [ 3.617497] usb 5-1.1: pl2303 converter now attached to ttyUSB2)

Check config file
(mine: Ventilation = ZehnderWHR930('/dev/ttyUSB2'))

mauricehouben70
Posts: 1
Joined: Sunday 30 October 2016 16:09
Target OS: Raspberry Pi
Domoticz version: V3
Location: Netherlands
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby mauricehouben70 » Sunday 30 October 2016 16:22

Hi All,

I'm quite new on this forum and with Domoticz.
At this moment i'm running a Raspberry Pi 3b with Domoticz image, in combination with HUE lights and Toon Thermostat, so it's quite plyg and play.
I'm not familiar with programming or scripting...

I have a Zehnder WHR 930 ventilation unit and i would like to add it in Domoticz.
Is there someone Dutch on this topic who could tell me how to add scripts in Domoticz, and how to make the cables (RJ45 i know, RJ232 i dont..).

Thanks in advance,
Greetings Maurice

Jeff
Posts: 23
Joined: Tuesday 16 December 2014 0:39
Target OS: Windows
Domoticz version: 2.3674
Location: Weert, Netherlands
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Jeff » Wednesday 21 December 2016 0:40

Hi,

Got it partly working for my WHR 930, The only part that doesn't work is the part where the commands in the scripts are being sent to the WHR.
The scripts are successfully executed by domoticz but at some point the whr unit doesn't recognize/understand the commands as it won't change the fan speed or display the temperature values.

When running the ventlevel.sh script in a terminal it returns the following error:

Code: Select all

[email protected]:/var/bin/ventilation# ./ventlevel.sh
Traceback (most recent call last):
  File "./ventlevel.sh", line 13, in <module>
    request = "Ventilation||SetLevel||%s" % (stand[1])
IndexError: list index out of range[

When running ventclient.sh nothing returns, same with ventserver.sh

When testing it with the 'Test script' from somewhere earlier in this post the command gets recognised and the WTW unit displays 'A' which i guess stands for automatic ?

Lisa
Posts: 78
Joined: Tuesday 01 September 2015 23:18
Target OS: Windows
Domoticz version:
Contact:

Re: Zehnder/Stork WHR Ventilation Unit

Postby Lisa » Monday 09 January 2017 22:58

Activate this line in the srv shell script: print self.outsideAirTemp
Run the srv script, wait a few minutes, and see if the temps get printed...


Return to “Show your projects”

Who is online

Users browsing this forum: No registered users and 3 guests