Solltemeratur an HM-CC-TC einstellen

Begonnen von jemu75, 09 März 2013, 11:05:47

Vorheriges Thema - Nächstes Thema

jemu75

Hallo,

ich habe seit ca. einem Monat FHEM im Einsatz und mich grundlegend mit der Software vertraut gemacht.
Habe mich jetzt neu hier im Forum angemeldet, da ich an der einen oder andern Stelle nicht weiter komme.

Im Moment geht es mir hauptsächlich um das Setzen der Solltemperatur von FHEM aus.

Meine aktuelle HW-Configuration:
FHEM (auf Synology NAS DS212j)
1 x HM-LAN-CONF
1 x HM-CC-TC
3 x HM-CC-VD

Die 3 VDs sind direkt mit dem TC gepairt. Über die FHEM config habe ich die TC eingebunden.
Nun stehe ich vor dem Problem, dass ich die Solltemperatur nicht von FHEM an das TC übertragen bekomme. Die Fehlermeldung in meinen Log-Files "MISSING ACK". Habe hier schon einiges zu diesem Problem gelesen. Soweit ich das verstanden habe, "schlafen" die HM-Komponenten um Strom zu sparen und wecken nur für einen sehr kurzen Zeitraum alle paar Minuten auf. Wenn ich das weiter richtig verstanden habe, laufen die gepairten HM-Komponenten untereinander syncron und wecken im Normalfall alle im selben Zeitfenster auf, um miteinander zu kommunizieren. Das Problem besteht nun wohl darin, dass man mit FHEM in dieses Zeitfenster kommen muss, um Befehle abzusetzen.
Der beschriebene Lösungsvorschlag im FHEMwiki wirft jedoch noch einige Fragen bei mir auf.

1) Ich habe aktuell ein DropDownfeld zum Einstellen der Solltemperatur in FHEM. (das hat FHEM nach dem einbinden des TC automatisch erstellt) Nun soll ich neben der Solltemperatur noch eine Dummyvariable mit der Solltemperatur füllen. Wie mache ich das genau?
2) Ich soll über Watchdog die Rückmeldungen des TC auffangen und dann weitere Befehle wie im wiki beschrieben absenden. Wie lege ich einen watchdog an? und wo lege ich die im wiki beschriebenen Befehle ab?

Ich habe schon einige Artikel zu dem Thema gelesen aber keine richtige Anleitung zur Umsetzung gefunden. Deshalb würde ich mich freuen, wenn mich jemand etwas "an die Hand" nimmt und mir schrittweise hilft.
Falls ich doch noch einen Arikel übersehen haben sollte, der das Problem für FHEM Neulinge etwas besser erklärt, wäre ich auch hierfür dankbar. Dann müssen wir das Thema ja hier nicht zum hundersten Mal diskutieren.

Vielen Dank schon mal für eure Unterstützung!

Beste Grüße
Jens.

jemu75

Hier gleich noch meine fhem.cfg und ein Bild von meinem FHEM Screen (Raum Wohnzimmer)

attr global autoload_undefined_devices 1
attr global logfile /usr/local/FHEM/var/log/fhem-%Y-%m.log
attr global modpath /usr/local/FHEM/share/fhem
attr global motd SecurityCheck:\\
\\
WEB,WEBphone,WEBtablet has no basicAuth attribute.\\
telnetPort has no password/globalpassword attribute.\\
Running with root privileges.\\
Restart fhem for a new check if the problem is fixed,\\
or set the global attribute motd to none to supress this message.\\

attr global statefile /usr/local/FHEM/var/log/fhem.save
attr global userattr icon webCmd
attr global verbose 1

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global
attr WEB stylesheetPrefix dark

define WEBphone FHEMWEB 8084 global
attr WEBphone smallscreen 1

define WEBtablet FHEMWEB 8085 global
attr WEBtablet touchpad 1

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog /usr/local/FHEM/var/log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room %TYPE
attr autocreate filelog /usr/local/FHEM/var/log/%NAME-%Y.log
attr autocreate weblink 1
attr autocreate weblink_room Plots

# Disable this to avoid looking for new USB devices on startup
define initialUsbCheck notify global:INITIALIZED usb create

define myHMLAN HMLAN 192.168.2.151:1000
attr myHMLAN hmId 1C6A1F
attr myHMLAN hmProtocolEvents 0_off

# If the above notify did not helped, then you probably have to enable some of
# the following lines.  Verify first that /dev/xxx ist correct.

#define FHZ FHZ /dev/USB0
#define CUL CUL /dev/ttyACM0@9600 1234
#attr CUL rfmode HomeMatic

#define EUL TCM 310 /dev/ttyACM0@57600
#define BscBor TCM 120 /dev/ttyUSB0@9600
#define BscSmartConnect TCM 310 /dev/ttyUSB0@57600
define Wandthermostat01 CUL_HM 1A3FE7
attr Wandthermostat01 actCycle 000:10
attr Wandthermostat01 actStatus alive
attr Wandthermostat01 alias Thermostat
attr Wandthermostat01 channel_01 Wandthermostat01_Weather
attr Wandthermostat01 channel_02 Wandthermostat01_Climate
attr Wandthermostat01 channel_03 Wandthermostat01_WindowRec
attr Wandthermostat01 devInfo 00FFFF
attr Wandthermostat01 firmware 2.1
attr Wandthermostat01 hmClass receiver
attr Wandthermostat01 icon icoTempHausReg
attr Wandthermostat01 model HM-CC-TC
attr Wandthermostat01 protCmdDel 28
attr Wandthermostat01 protLastRcv 2013-02-24 13:39:55
attr Wandthermostat01 protResndCnt 20
attr Wandthermostat01 protResndFailCnt 10
attr Wandthermostat01 protResndFailLast 2013-02-20 22:40:27
attr Wandthermostat01 protResndLast 2013-02-20 22:40:26
attr Wandthermostat01 protSndCnt 6
attr Wandthermostat01 protSndLast 2013-02-16 15:33:51
attr Wandthermostat01 room Wohnzimmer
attr Wandthermostat01 serialNr JEQ0012733
attr Wandthermostat01 subType thermostat
define FileLog_Wandthermostat01 FileLog /usr/local/FHEM/var/log/Wandthermostat01-%Y.log Wandthermostat01
attr FileLog_Wandthermostat01 logtype temp4hum6,text
attr FileLog_Wandthermostat01 room CUL_HM
define ActionDetector CUL_HM 000000
attr ActionDetector actCycle 600
attr ActionDetector peerList 1A3FE7,
attr ActionDetector room CUL_HM
define FileLog_ActionDetector FileLog /usr/local/FHEM/var/log/ActionDetector-%Y.log ActionDetector
attr FileLog_ActionDetector logtype text
attr FileLog_ActionDetector room CUL_HM

define Wandthermostat01_Weather CUL_HM 1A3FE701
attr Wandthermostat01_Weather chanNo 01
attr Wandthermostat01_Weather device Wandthermostat01
attr Wandthermostat01_Weather model HM-CC-TC
attr Wandthermostat01_Weather room CUL_HM
define FileLog_Wandthermostat01_Weather FileLog /usr/local/FHEM/var/log/Wandthermostat01_Weather-%Y.log Wandthermostat01_Weather
attr FileLog_Wandthermostat01_Weather logtype text
attr FileLog_Wandthermostat01_Weather room CUL_HM

define Wandthermostat01_Climate CUL_HM 1A3FE702
attr Wandthermostat01_Climate chanNo 02
attr Wandthermostat01_Climate device Wandthermostat01
attr Wandthermostat01_Climate model HM-CC-TC
attr Wandthermostat01_Climate room CUL_HM
define FileLog_Wandthermostat01_Climate FileLog /usr/local/FHEM/var/log/Wandthermostat01_Climate-%Y.log Wandthermostat01_Climate
attr FileLog_Wandthermostat01_Climate logtype text
attr FileLog_Wandthermostat01_Climate room CUL_HM

define Wandthermostat01_WindowRec CUL_HM 1A3FE703
attr Wandthermostat01_WindowRec chanNo 03
attr Wandthermostat01_WindowRec device Wandthermostat01
attr Wandthermostat01_WindowRec model HM-CC-TC
attr Wandthermostat01_WindowRec room CUL_HM
define FileLog_Wandthermostat01_WindowRec FileLog /usr/local/FHEM/var/log/Wandthermostat01_WindowRec-%Y.log Wandthermostat01_WindowRec
attr FileLog_Wandthermostat01_WindowRec logtype text
attr FileLog_Wandthermostat01_WindowRec room CUL_HM

define Stellantrieb01 CUL_HM 18785F
attr Stellantrieb01 alias Regler1
attr Stellantrieb01 hmClass receiver
attr Stellantrieb01 icon icoKLIMA
attr Stellantrieb01 model HM-CC-VD
attr Stellantrieb01 protCmdPend 1 CMDs pending
attr Stellantrieb01 protLastRcv 2013-02-24 13:35:12
attr Stellantrieb01 room Wohnzimmer
attr Stellantrieb01 subType thermostat
define FileLog_Stellantrieb01 FileLog /usr/local/FHEM/var/log/Stellantrieb01-%Y.log Stellantrieb01

define Stellantrieb02 CUL_HM 1B7AB5
attr Stellantrieb02 alias Regler2
attr Stellantrieb02 hmClass receiver
attr Stellantrieb02 icon icoKLIMA
attr Stellantrieb02 model HM-CC-VD
attr Stellantrieb02 protLastRcv 2013-02-24 13:39:55
attr Stellantrieb02 room Wohnzimmer
attr Stellantrieb02 subType thermostat
define FileLog_Stellantrieb02 FileLog /usr/local/FHEM/var/log/Stellantrieb02-%Y.log Stellantrieb02

define Stellantrieb03 CUL_HM 1B7BB4
attr Stellantrieb03 alias Regler3
attr Stellantrieb03 hmClass receiver
attr Stellantrieb03 icon icoKLIMA
attr Stellantrieb03 model HM-CC-VD
attr Stellantrieb03 protLastRcv 2013-02-24 13:37:41
attr Stellantrieb03 room Wohnzimmer
attr Stellantrieb03 subType thermostat
define FileLog_Stellantrieb03 FileLog /usr/local/FHEM/var/log/Stellantrieb03-%Y.log Stellantrieb03
define wl_0 weblink fileplot FileLog_Wandthermostat01:temp4hum6:CURRENT
attr wl_0 room Wohnzimmer

Hannomag

Hallo Jens,
das ganze sieht doch schon ganz gut aus. Gehe die Schritte aus dem Wiki für die Einrichtung des Watchdogs (hier) Schritt für Schritt durch.

Hat bei mir geholfen die Situation zu verbessern.

Sollte am Ende ca. so aussehen:

#########################################################################
## Heizung EG Watchdog
#########################################################################
define Wandthermostat01_soll dummy

define w01.Wandthermostat01 watchdog Wandthermostat01:set_desired-temp.* 00:02:30 Wandthermostat01_Climate:CommandAccepted:.yes {\
Log 1, ">>>>>>>>> w_Wandthermostat01 desired temp - missing response.";;\
fhem("set Wandthermostat01 desired-temp ".Value("Wandthermostat01_soll"));;\
}

define n_Wandthermostat01_err notify Wandthermostat01:(MISSING.ACK.*|.*NACK.*) {\
      Log 1, ">>>>>>>>> n_Wandthermostat01 desired temp - missing ack/nack.\n";;\
      fhem("set Wandthermostat01 desired-temp".Value("Wandthermostat01_soll"));;\
}


Das ganze gehört in die fhem.cfg :
FHEM - edit Files - fhem.cfg - am Ende einfügen - save fhem.cfg

Ansonsten evtl. noch einmal die Postition des HM-LAN zum TC verändern ...

Gruß
Frank

jemu75

Vielen Dank für die schnelle Antwort! :-) Ich habe das ganze in meine fhem.cfg eingebunden.
Wenn ich jetzt über die Eingabezeile versuche die Temperatur zu setzen bekomme ich folgende Meldung

Eingabe: set Wandthermostat01 desired-temp 23;set Wandthermostat01_soll 23
Meldung: desired-temp requires parameter: temp

die Ergänzung in der fhem.cfg sieht wie folgt aus:
#########################################################################
## Heizung Wohnzimmer Watchdog
#########################################################################
define Wandthermostat01_soll dummy

define w01.Wandthermostat01 watchdog Wandthermostat01:set_desired-temp.* 00:02:30 Wandthermostat01_Climate:CommandAccepted:.yes {\\
      Log 1, ">>>>>>>>> w_Wandthermostat01 desired temp - missing response.";;\\
      fhem("set Wandthermostat01 desired-temp ".Value("Wandthermostat01_soll"));;\\
}

define n_Wandthermostat01_err notify Wandthermostat01:(MISSING.ACK.*|.*NACK.*) {\\
      Log 1, ">>>>>>>>> n_Wandthermostat01 desired temp - missing ack/nack.";;\\
      fhem("set Wandthermostat01 desired-temp".Value("Wandthermostat01_soll"));;\\
}

Markus

Ich hatte das selbe Problem wie du allerdings verwendete ich einen CUNO der die TC (noch) nicht aufwecken kann.
Ich hab mir extra einen lan Adapter gekauft und seit ich alles richtig miteinander angelernt und konfiguriert habe Funktioniert alles auch ohne diesem watchdoog Kram wenn der TC nicht antwortet sendet der lan Adapter automatisch den Befehl nochmals.
Eigentlich ist HM sehr stabile!

Diesen Wiki Artikel hab ich übrigens auch nicht hin bekommen sind einige Bugs drin :-(

ZitatAnsonsten evtl. noch einmal die Postition des HM-LAN zum TC verändern ...
das ist eine gute Idee
Raspberry Pi2 als FHEM-Plattform
HM, FS20, 1-Wire, PanStamp,LW12,Intertechno,ESPEasy,Alexa

Hannomag

Hallo,
das sieht eigentlich ganz gut aus.

Mach mal 3 FHEM Fenster auf:
1x Event Monitor
1x Logfile
1x egal:
hier gibst Du ein:
set Wandthermostat01 desired-temp 23.0; set Wandthermostat01_soll 23.0

Im Event Monitor solltest Du etwas sehen wie:
2013-03-09 17:08:20.877 CUL_HM Wandthermostat01 set_desired-temp 22.0
2013-03-09 17:08:20.933 dummy Wandthermostat01_soll 22.0


Im Log dann nach ca. 2 1/2 Min:
2013.03.09 17:08:20.881 2: CUL_HM set Wandthermostat01 desired-temp 22.0 rxt:12
2013.03.09 17:10:50.892 3: Watchdog w01.Wandthermostat01 triggered
2013.03.09 17:10:50.904 1: >>>>>>>>> w_Wandthermostat01 desired temp - missing response.
2013.03.09 17:10:50.964 2: CUL_HM set Wandthermostat01 desired-temp 22.0 rxt:12


Gruß
Frank

jemu75

Habe heute noch etwas rumprobiert. Komme aber leider noch nicht weiter. Auch nach dem einbinden der watchdog und setzen der dummy temp bekomme ich immer das missing ACK von meiner TC zurück. Anbei mal der letzte Auszug aus dem Event Monitor

Events:
2013-03-09 21:06:40 CUL_HM Stellantrieb02 ValvePosition: changeTo 0%
2013-03-09 21:06:40 CUL_HM Wandthermostat01 noReceiver: src:1A3FE7 (A258) 0000
2013-03-09 21:06:40 CUL_HM Stellantrieb02 actuator: 0 %
2013-03-09 21:06:40 CUL_HM Stellantrieb02 motor: stop
2013-03-09 21:07:33 CUL_HM Wandthermostat01 desired-temp 23.0
2013-03-09 21:08:00 dummy Wandthermostat01_soll 23.0
2013-03-09 21:08:49 CUL_HM Wandthermostat01 T: 21.3 H: 51
2013-03-09 21:08:49 CUL_HM Wandthermostat01 measured-temp: 21.3
2013-03-09 21:08:49 CUL_HM Wandthermostat01 humidity: 51
2013-03-09 21:08:53 CUL_HM Wandthermostat01 MISSING ACK
2013-03-09 21:09:08 CUL_HM Stellantrieb01 ValvePosition: changeTo 0%
2013-03-09 21:09:08 CUL_HM Wandthermostat01 noReceiver: src:1A3FE7 (A258) 0000
2013-03-09 21:09:09 CUL_HM Stellantrieb01 actuator: 0 %
2013-03-09 21:09:09 CUL_HM Stellantrieb01 motor: stop
2013-03-09 21:11:03 CUL_HM Wandthermostat01 T: 21.3 H: 51
2013-03-09 21:11:03 CUL_HM Wandthermostat01 measured-temp: 21.3
2013-03-09 21:11:03 CUL_HM Wandthermostat01 humidity: 51
2013-03-09 21:11:23 CUL_HM Stellantrieb03 ValvePosition: changeTo 0%
2013-03-09 21:11:23 CUL_HM Wandthermostat01 noReceiver: src:1A3FE7 (A258) 0000
2013-03-09 21:11:23 CUL_HM Stellantrieb03 actuator: 0 %
2013-03-09 21:11:23 CUL_HM Stellantrieb03 motor: stop

Hannomag

Hallo Jens,
ich denke nun bin ich raus ... da muß ein Mensch mit deutlich mehr Wissen ran als ich.

Nur ein letzter Hinweis:
Google Suche nach HM-CC-TC und noReceiver schmeißt mir dieses Ergebnis:
https://groups.google.com/forum/?fromgroups=#!topic/fhem-users/ycQMyWE0Bv0

Welche FHEM Version hast Du denn aus Deiner Synology?
Wann hast Du das letzte Update gemacht?

... nur so eine Idee, aber die letzte Version könnte evtl. helfen.

Gruß
Frank

jemu75

Ich habe folgendes zu meiner FHEM Version ausgelesen. Aus dem Google groups Artikel werde ich noch nicht ganz schlau bzw. finde keinen Zusammenhang zu meinem Problem. Vielleicht stehe ich auf der Leitung ;-)

version
Fhem 5.3 (DEVELOPMENT), $Id: fhem.pl 1996 2012-10-20 07:11:56Z rudolfkoenig $


Hannomag

Hallo Jens,
hmmm - nicht inhaltlich ... nur die Fehlermeldung noReceiver in Bezug auf den letzten Eintrag vom 19.12.12 in dem Post:


Hallo Martin,
gerade noch mal eine Update gemacht:

Backup:
tar: removing leading '/' from member names
backup done: FHEM-20121119_121326.tar.gz (3984143 Bytes)

2 file(s) have been updated:
==> 2012-11-19 07:45:16 FHEM/10_CUL_HM.pm
.....
.....
Fehler/Meldung ist weg und Actuator wieder da. Vielen Dank!!!!

Patrik


Deine Version ist einfach sehr alt und in jedem Fall älter als der Post. Wenn man das Forum und die Google Gruppe verfolgt, dann werden die Module recht oft aktualisiert und die Entwickler sind sehr schnell im ausmerzen von Fehlern.

Meine Version z.B. ist: fhem.pl 2866 2013-03-07 15:10:37Z rudolfkoenig
Da liegen mal eben schlappe 1000 Änderungen zwischen uns ...

Daher schlage ich ein Update vor: entweder mit "fhemupdate" (alt) oder nur "update"
einfach nur um sicher zu gehen, dass Dein Problem nicht schon lange gefixt ist. Schaden sollte es auf jeden Fall nicht ...

Gruß
Frank

jemu75

Hallo Frank,

heute fhem update gemacht. Und was soll ich sagen? Kaum macht man es richtig, schon gehts ;-)
Ich habe jetzt auch den watchdog usw. wieder aus meiner fhem.cfg entfernt.
Also vielen Dank noch mal für den Tipp.

Beste Grüße
Jens

Hannomag