Skip to content

Logik Warmwasser An Abwesenheit

Matthias Lemke edited this page Sep 19, 2013 · 4 revisions

Ziel

Warmwasserbereitung bei Ab-/Anwesenheit auf Aus/Automatik stellen.

Logik

#/logics/heizung_abwesend.py
#!/usr/bin/env python
ww_auto_val = 3 #Dieser Wert entspricht dem WW-Betrieb Automatik
ww_off_val = 2  #Dieser Wert entspricht dem WW-Betrieb Aus

# WENN "abwesend" UND WW-Betrieb ist auf "Automatik" DANN setze WW-Betrieb auf "Aus"
if sh.ow.praesenz() == False and sh.ebus.status_ww() == ww_auto_val:
    sh.ebus.status_ww(ww_off_val)

# WENN "anwesend" UND WW-Betrieb ist auf "Aus" DANN setze WW-Betrieb auf "Automatik"    
if sh.ow.praesenz() == True and sh.ebus.status_ww() == ww_off_val:
    sh.ebus.status_ww(ww_auto_val)

Items

Folgende Items werden in der items.conf benötigt.

[ow]
    [[praesenz]]
        name = globale_praesenz
        type = bool
        value = True
	knx_dpt = 1
	knx_send = 0/7/0
	knx_reply = 0/7/0

[ebus]
    [[status_ww]]
        type = num
        knx_dpt = 6
        knx_listen = 8/7/200
        knx_send = 8/6/200
        knx_reply = 8/6/200
        ebus_cmd = "hw mode"
        ebus_type = "set"
        comment = WW Betriebsmodus

Zusammenfassung

Kurze Erklärung der Logk folgt.