sky201503 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Zehnder ComfoAir binding #352

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

i created a working beta version for my Zehnder ComfoAir 350 AirFlowControl 
together with a CCEase.

it is located under http://code.google.com/r/holgerhees-develop/source/browse

to use it try the following steps.

1. add the jar file to your addons folder

2. add following properties to your openhab.cfg
-------------
######################## Zehnder ComfoAir ###########################

# IP serial port of the Zehnder ComfoAir to connect to
comfoair:port=/dev/ttyS0

# refresh inverval in milliseconds (optional, defaults to 60000)
#comfoair:refresh=
-------------

3. create the needed items
-------------
Group Lueftung     "Lüftungsanlage"    <pie>
Number Lueftung_Auto_Mode    "Modus"                                         
<settings> (Lueftung) {comfoair="auto_mode"}
Number Lueftung_Fan_Level    "Stufe [%d]"                                     
<settings> (Lueftung) {comfoair="fan_level"}
Number Lueftung_Zuluft        "Ventilator Zuluft [%d %%]"                     
<settings> (Lueftung) {comfoair="incomming_fan"}
Number Lueftung_Abluft        "Ventilator Abluft [%d %%]"                     
<settings> (Lueftung) {comfoair="outgoing_fan"}
Number Lueftung_Komfortemperatur "Komfortemperatur [%d °C]"                 
<temperature> (Lueftung) {comfoair="target_temperatur"}
Number Lueftung_Aussenlufttemperatur "Aussenzuluft [%d °C]"                    
<temperature> (Lueftung) {comfoair="outdoor_incomming_temperatur"}
Number Lueftung_Fortlufttemperatur "Aussenabluft [%d °C]"                     
<temperature> (Lueftung) {comfoair="outdoor_outgoing_temperatur"}
Number Lueftung_Zulufttemperatur "Raumzuluft [%d °C]"                         
<temperature> (Lueftung) {comfoair="indoor_incomming_temperatur"}
Number Lueftung_Ablufttemperatur "Raumabluft [%d °C]"                         
<temperature> (Lueftung) {comfoair="indoor_outgoing_temperatur"}
Number Lueftung_Bypass        "Bypass [MAP(bypass_de.map):%s]"                 
<settings> (Lueftung) {comfoair="bypass_mode"}
Number Lueftung_Filterlaufzeit    "Filterlaufzeit [%d h]"                     
<clock> (Lueftung) {comfoair="filter_running"}
/*Switch Lueftung_Filterreset    "Filterreset" (Lueftung) 
{comfoair="filter_reset"}*/
Number Lueftung_FilterfehlerI    "Filter (intern) [MAP(filter_de.map):%s]"   
<settings> (Lueftung) {comfoair="filter_error_intern"}
Number Lueftung_FilterfehlerA    "Filter (extern) [MAP(filter_de.map):%s]"   
<settings> (Lueftung) {comfoair="filter_error_extern"}
/*Switch Lueftung_Fehlerreset    "Fehlerreset" (Lueftung) 
{comfoair="error_reset"}*/
String Lueftung_Fehlermeldung    "[%s]" 
-------------------

4. add the items to your sitemap structure
-------------------

            Text label="Lüftung" icon="house" {
                Frame {
                    Switch item=Lueftung_Auto_Mode label="Modus" mappings=[1="Auto", 0="Manuell"]
                    Switch item=Lueftung_Fan_Level label="Stufe" mappings=[1="A", 2="1", 3="2", 4="3"]
                }
                Frame {
                    Setpoint item=Lueftung_Komfortemperatur step=1 minValue=15 maxValue=25
                    Text item=Lueftung_Aussenlufttemperatur
                    Text item=Lueftung_Fortlufttemperatur
                    Text item=Lueftung_Zulufttemperatur
                    Text item=Lueftung_Ablufttemperatur
                    Text item=Lueftung_Bypass
                }
                Frame {
                    Text item=Lueftung_Zuluft
                    Text item=Lueftung_Abluft
                }
                Frame {
                    Text item=Lueftung_Filterlaufzeit
/*Switch Lueftung_Filterreset    "Filterreset" (Lueftung) 
{comfoair="filter_reset"}*/
                    Text item=Lueftung_FilterfehlerI
                    Text item=Lueftung_FilterfehlerA
/*Switch Lueftung_Fehlerreset    "Fehlerreset" (Lueftung) 
{comfoair="error_reset"}*/
                    Text item=Lueftung_Fehlermeldung
                }
            }
------------------

auto_mode, fan_level and target_temperatur are updateable and will refresh 
dependent properties which means, if you update auto_mode it will refresh after 
2 seconds the fan_level and vise versa.

all readable data are refreshed every minute (default)

auto_mode, filter_error_intern and filter_error_extern are based on the CCEase 
communication.

filter_running has currently wrong values.

all other works fine in my home setup.

feel free to try out and comment my work.

best,

Holger

Original issue reported on code.google.com by holger.h...@gmail.com on 24 Jun 2013 at 7:28

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by holger.h...@gmail.com on 25 Jun 2013 at 7:37

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

could you please review my coding. From my perspective, the binding is ready. 
It is allready testet and used successfully by me and 4 other people.

Sample config files are included in the attachment.

Waiting for your comments
Holger

Original comment by holger.h...@gmail.com on 12 Jul 2013 at 8:16

Attachments:

GoogleCodeExporter commented 8 years ago
additional the latest screenshot

Original comment by holger.h...@gmail.com on 12 Jul 2013 at 8:17

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Holger, great work! I assume the binding contained in the package 
corresponds to the latest sources in your repo?
We will schedule the review so that your binding can be part of the next 
openHAB 1.3 release.

Original comment by kai.openhab on 13 Jul 2013 at 1:53

GoogleCodeExporter commented 8 years ago
yes. the package corresponds to the latest source in my repo.

Original comment by holger.h...@gmail.com on 13 Jul 2013 at 1:56

GoogleCodeExporter commented 8 years ago
1st Review is done (see your Email)! Thanks for your work, Thomas E.-E.

Original comment by teichsta on 30 Jul 2013 at 9:33

GoogleCodeExporter commented 8 years ago
Hi Holger, any updates? Did you receive my review email? Regards, Thomas E.-E.

Original comment by teichsta on 5 Aug 2013 at 9:27

GoogleCodeExporter commented 8 years ago
Hi Thomas, it's all arrived. I will work through the list tonight! Best, Holger

Original comment by holger.h...@gmail.com on 6 Aug 2013 at 5:07

GoogleCodeExporter commented 8 years ago
ok, would be great if you could report your progress here

Original comment by teichsta on 6 Aug 2013 at 4:27

GoogleCodeExporter commented 8 years ago
changes are done.

Original comment by holger.h...@gmail.com on 6 Aug 2013 at 7:50

GoogleCodeExporter commented 8 years ago
Thanks Holger, will review and merge if applicable. Best, Thomas E.-E.

Original comment by teichsta on 11 Aug 2013 at 11:06

GoogleCodeExporter commented 8 years ago
binding is merged into default branch (see 
http://code.google.com/p/openhab/source/detail?r=fc5e07286fcd4a6a2b73893df720035
12e0aa6d3).

It would be cool if you could add a demo-section to the Wiki-Page as done for 
the Onkyo-Binding.

Best,

Thomas E.-E.

Original comment by teichsta on 12 Aug 2013 at 7:12

GoogleCodeExporter commented 8 years ago
No problem. I'll do it next days.

Original comment by holger.h...@visual-meta.com on 12 Aug 2013 at 7:21

GoogleCodeExporter commented 8 years ago
with demo-section you mean a wiki page under Features/Bindings/ComfoAir Binding

Original comment by holger.h...@gmail.com on 13 Aug 2013 at 2:26

GoogleCodeExporter commented 8 years ago
No, i meant an abstract within the existing wiki page. See 
http://code.google.com/p/openhab/wiki/EpsonProjectorBinding for an example.

Original comment by teichsta on 13 Aug 2013 at 2:28

GoogleCodeExporter commented 8 years ago
is done.

http://code.google.com/p/openhab/wiki/ComfoAirBinding

i would like to add a zip file at the end of the page with my own unchanged 
samples. it contains some powerful rules (like the auto_mode) and some 
additional String items with combinded item data from different other items.

for details see my screenshot. 

Original comment by holger.h...@gmail.com on 13 Aug 2013 at 3:10

GoogleCodeExporter commented 8 years ago
Thanks!

> i would like to add a zip file at the end of the page with my own unchanged 
samples.

I would rather opt for adding your examples to the samples and add links vice 
versa. What do you think?

Original comment by teichsta on 13 Aug 2013 at 3:14

GoogleCodeExporter commented 8 years ago
that sounds good. but it will be a drop in replacement of my current up to date 
configuration and contains many german words inside the configuration. 

Original comment by holger.h...@gmail.com on 13 Aug 2013 at 3:34

GoogleCodeExporter commented 8 years ago
can you add me as a committer to the sample wiki.

Original comment by holger.h...@gmail.com on 13 Aug 2013 at 8:00

GoogleCodeExporter commented 8 years ago
sure, done!

Original comment by teichsta on 13 Aug 2013 at 9:04