Temperatur-Scanner für MAX-Thermostate

Begonnen von John, 12 März 2013, 09:44:59

Vorheriges Thema - Nächstes Thema

John

Hallo Chris,

es gibt eine Lösung mit dem Attribut watchShutter
wie hier beschrieben.

Link

Ich hab es als UserAttribute angelegt, damit nicht jede neue Idee sofort im MAX Modul nachgepflegt werden muss.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

shorty81

Hey,
also einfach die 99_UtilsMaxScan.pm laden (das habe ich bereits) und jedem Thermostat (hier) HT.JOHN die u.a. Zeile mit entsprechendem Shutter (hier SHUTTER.JOHN) zusätzlich in der fhem.cfg zuordnen?!
War es das dann schon?
Danke für die Hilfe!

Zitatattr HT.JOHN userReadings watchShutter { return "SHUTTER.JOHN";;}
Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

Genau so sollte es funktionieren.

Du kannst das Ganze testen mit dem Testablauf der hier beschrieben ist:
Link

(suche nach "Testablauf:")

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

shorty81

Hallo John,
vielen Dank für die tatkräftige Unterstützung.

So ganz zum Laufen bekomme ich es aber noch nicht. Habe die 99_UtilsMaxScan.pm v1.04b

Ich habe mein Thermostat um die Zeile ergänzt
Zitatattr MAX_0703e4 watchShutter MAX_053358

und das heating_Control geändert auf

Zitatdefine Schlafzimmer Heating_Control MAX_0703e4 1234567|00:02|18 1234567|08:00|5   { MaxScan_SetTemp("@","%");;}

Ich habe sowohl das attribute watchShutter in der Fensterkontakt-Seite, als auch ein neues Notify MAXSCAN.SHUTTER.EVENT

Dennoch stellt sich Temperatur bei dem von Dir beschriebenen Testablauf nicht von 17 auf 17.5 um...

Bin ratlos.
Viele Grüße und Danke
Chris




P.S: Anbei mal die letzten Einträge aus dem <log. Vielleicht hilft das ja weiter


2013.10.02 09:01:44 0: Server started with 58 defined entities (version $Id: fhem.pl 3872 2013-09-07 11:58:33Z rudolfkoenig $, os linux, user root, pid 17238)
2013.10.02 09:02:13 2: CUL_MAX_SendQueueHandler: Missing ack from 0703e4 for 0f6804031234560703e4000d02098289
2013.10.02 09:02:13 1: CUL_MAX_Parse: len mismatch
2013.10.02 09:02:16 1: /dev/ttyACM0 disconnected, waiting to reappear
Argument "No answer" isn't numeric in numeric lt (<) at ./FHEM/14_CUL_MAX.pm line 434.
2013.10.02 09:02:16 2: CUL_MAX_SendQueueHandler: Not enough credit! credit10ms is No answer, but we need 110. Waiting 110 seconds.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
2013.10.02 09:02:17 3: Setting CUL_0 baudrate to 38400
2013.10.02 09:02:17 1: /dev/ttyACM0 reappeared (CUL_0)
2013.10.02 09:02:18 3: CUL_0: Possible commands: BCFiAZEGMRTVWXefmltux
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
2013.10.02 09:02:31 2: MaxScan MAX_0703e4 not enough credits(15) need 384/540 NextScan:2013-10-02 09:11:31
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
Argument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.
2013.10.02 09:04:33 3: MaxScan_Shutter_Notify MAX_053470 onoff: 0
Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

Bitte vom Max die komplette Definition schicken, abenso vom Schutter.

Bitte verbose  vom betroffenen Ventil auf 3 via
attr HT.JOHN verbose 3

Nach 10 Minuten Logdatei abziehen und hier einstellen.
Zitat2013.10.02 09:02:16 1: /dev/ttyACM0 disconnected, waiting to reappear
Ist das einmalig, oder kommt es immer wieder ?

Steht im Reading credit10ms vom CUL eine Zahl ?. Dies sollte so sein, wenn nicht hat der Scanner ein Problem
wie hier
ZitatArgument "No answer" isn't numeric in addition (+) at ./FHEM/99_UtilsMaxScan.pm line 284.

John

CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

shorty81

das Thermostat:

Zitat####### define Max Thermostat Wohnzimmer
define MAX_0767c9 MAX HeatingThermostat 0767c9
attr MAX_0767c9 alias Heizung Wohnzimmer
attr MAX_0767c9 icon hc_wht_regler
attr MAX_0767c9 room 01_Wohnzimmer,Heizung
attr MAX_0767c9 scanTemp 1
attr MAX_0767c9 userReadings watchShutter { return "MAX_053470";;}
attr MAX_0767c9 webCmd desiredTemperature
define FileLog_MAX_0767c9 FileLog ./log/MAX_0767c9-%Y.log MAX_0767c9
attr FileLog_MAX_0767c9 logtype text
attr FileLog_MAX_0767c9 room 01_Wohnzimmer
attr MAX_0767c9 watchShutter MAX_053470

####Werte plotten Wohnzimmer
define MAX_0767c9_weblink SVG FileLog_MAX_0767c9:max_temp:CURRENT
attr MAX_0767c9_weblink icon time_graph
attr MAX_0767c9_weblink label "Wohnzimmer Soll-Temperatur Min $data{min1}, Max $data{max1}, Last $data{currval1}"
attr MAX_0767c9_weblink room 01_Wohnzimmer,Heizung

#####Heating Control Wohnzimmer
define Wohnzimmer Heating_Control MAX_0767c9 1234567|00:03|5   { MaxScan_SetTemp("@","%");;}

der Shutter:

Zitat#### define Wohnzimmer Türkontakte

define MAX_053470 MAX ShutterContact 053470
attr MAX_053470 alias Wohnzimmer-Tür
attr MAX_053470 devStateIcon closed:fts_door opened:fts_door_open
attr MAX_053470 fp_Grundriss 50,100,2,
attr MAX_053470 room 01_Wohnzimmer,Heizung
attr MAX_053470 userReadings watchShutter
define FileLog_MAX_053470 FileLog ./log/MAX_053470-%Y.log MAX_053470
attr FileLog_MAX_053470 logtype text
attr FileLog_MAX_053470 room 01_Wohnzimmer


Zitat2013.10.02 09:02:16 1: /dev/ttyACM0 disconnected, waiting to reappear


Ist das einmalig, oder kommt es immer wieder ?
... taucht nur ein mal auf im log.



ZitatSteht im Reading credit10ms vom CUL eine Zahl ?. Dies sollte so sein, wenn nicht hat der Scanner ein Problem
wie hier
Ich hoffe damit ist dieser Teil aus der 99_utilsmaxscan.pm gemeint:
Zitatmy $strCulName  = $defs{$therm}{IODev}{IODev}{NAME};                   # name des io devices bestimmen
    my $strCreditTime=ReadingsTimestamp($strCulName,"credit10ms","");
    if ( $strCreditTime eq "" ) { Log 2,"$modul $therm READINGS:credit10ms is not defined";next;}

    my $sdCreditTime=DateStr2Serial($strCreditTime);

    my $numDesiTemp    = ReadingsVal($therm,"desiredTemperature","");      # desired temperature
    my $numEcoTemp     = ReadingsVal($therm,"ecoTemperature","");         # eco temperature
    my $strMode        = ReadingsVal($therm,"mode","");                   # current mode
    my $numWinOpenTemp = ReadingsVal($therm,"windowOpenTemperature","");  # temp, wenn window open
    my $strShutterName = ReadingsVal($therm,"watchShutter","?");           # 1.04a
   
    #Log 2 ,"$modul.$therm strShutterName: $strShutterName";  # !!!
   
    my $numWinIsOpen   = ReadingsVal($strShutterName,"onoff",0);       # zustand des shutter windowOpen besorgen
    my $numCulCredits  = ReadingsVal($strCulName,"credit10ms",0);  # credit vom CUL


und hier der auszug aus dem log nach einstellen von verbose 3:
Zitat2013.10.02 20:31:36 3: MaxScan next scan in seconds:155  next thermostat-scan : 1380738851 curTime:1380738696
2013.10.02 20:34:11 3: MaxScan next scan in seconds:180  next thermostat-scan : 1380739031 curTime:1380738851
2013.10.02 20:37:11 3: MaxScan next scan in seconds:164  next thermostat-scan : 1380739195 curTime:1380739031
2013.10.02 20:39:55 3: MaxScan next scan in seconds:9  next thermostat-scan : 1380739204 curTime:1380739195
2013.10.02 20:40:04 3: MaxScan   set MAX_0767c9 desiredTemperature auto 5.0 - 2013-10-02 20:43:04
2013.10.02 20:40:04 3: MaxScan next scan in seconds:27  next thermostat-scan : 1380739231 curTime:1380739204
2013.10.02 20:40:31 3: MaxScan.MAX_0767c9 temperature received NextScan:2013-10-02 20:52:05
2013.10.02 20:40:31 3: MaxScan next scan in seconds:5  next thermostat-scan : 1380739236 curTime:1380739231
2013.10.02 20:40:36 3: MaxScan next scan in seconds:175  next thermostat-scan : 1380739411 curTime:1380739236
2013.10.02 20:43:33 3: MaxScan next scan in seconds:159  next thermostat-scan : 1380739572 curTime:1380739413


Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

ZitatSteht im Reading credit10ms vom CUL eine Zahl ?
Die Antwort auf diese Frage fehlt noch.


Zitatattr MAX_053470 userReadings watchShutter
Der Shutter selbst braucht das userAttribute watchShutter nicht.


John

CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

shorty81

die logs habe ich oben noch angefügt...

jetzt hab ich das reading auch gefunden - bin halt blutiger anfänger (hüstel) ;)

Zitatcredit10ms   472
Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

sieht alles gut aus.

jetzt bitte den Testablauf mit Öffnen und Schliessen des Shutters als Log.
Dann sehen wir weiter.

John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

shorty81

anbei das log (um 22.22Uhr wurde der Test durchgeführt!):

2013.10.02 22:13:05 3: MaxScan.MAX_0767c9 temperature received NextScan:2013-10-02 22:22:05
2013.10.02 22:13:05 3: MaxScan next scan in seconds:67  next thermostat-scan : 1380744852 curTime:1380744785
2013.10.02 22:14:12 3: MaxScan next scan in seconds:20  next thermostat-scan : 1380744872 curTime:1380744852
2013.10.02 22:14:32 3: MaxScan.MAX_0767c9 temperature received NextScan:2013-10-02 22:26:05
2013.10.02 22:14:32 3: MaxScan next scan in seconds:5  next thermostat-scan : 1380744877 curTime:1380744872
2013.10.02 22:14:37 3: MaxScan next scan in seconds:79  next thermostat-scan : 1380744956 curTime:1380744877
2013.10.02 22:15:56 3: MaxScan next scan in seconds:180  next thermostat-scan : 1380745136 curTime:1380744956
2013.10.02 22:18:56 3: MaxScan next scan in seconds:429  next thermostat-scan : 1380745565 curTime:1380745136
2013.10.02 22:26:05 3: MaxScan.MAX_0767c9 temperature received NextScan:2013-10-02 22:36:05
2013.10.02 22:26:05 3: MaxScan next scan in seconds:7  next thermostat-scan : 1380745572 curTime:1380745565
2013.10.02 22:26:12 3: MaxScan next scan in seconds:25  next thermostat-scan : 1380745597 curTime:1380745572
2013.10.02 22:26:37 3: MaxScan next scan in seconds:80  next thermostat-scan : 1380745677 curTime:1380745597
2013.10.02 22:27:57 3: MaxScan next scan in seconds:180  next thermostat-scan : 1380745857 curTime:1380745677
2013.10.02 22:30:58 3: MaxScan next scan in seconds:214  next thermostat-scan : 1380746072 curTime:1380745858



P.S.:
Nachdem ich beim Shutter das überflüssige userattribut watchShutter entfernt habe, fehlt nun wieder unter Unsortet/Everything das Notify MAXSCAN.SHUTTER.EVENT
Kann das auch eine Ursache sein?
Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

Nein, das Problem liegt wohl woanders.

Du hast neu initialisiert mit "rereadcfg" richtig ?

Danach verschwindet MAXSCAN.SHUTTER.EVENT, den brauchen wir aber.

Wenn du an der Config was änderst bitte :
"shutdown restart" ausführen
oder
"rereadcfg", gefolgt von "reload 99_UtilsMaxScan.pm"

Danach muss MAXSCAN.SHUTTER.EVENT nach kurzer Zeit erscheinen.

Nach dem Betätigen des Shutters sollte sowas im Log erscheinen:

Zitat2013.10.02 23:20:49 3: MaxScan_Shutter_Notify SHUTTER.JOHN onoff: 0

Übrigens der Scanner wird nach dem Schliessen des Fensterkontaktes nur dann die alte Temperatur wiederherstellen,
wenn der Sollwert(desiredTemperature) vor dem Öffnen höher war als ecoTemperature.


John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

langerhannes

Hallo John,

wie kriege ich die Meldungen aus meine Log weg?

Zitat2013.10.01 00:00:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp 20.2
2013.10.01 00:03:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp
2013.10.01 00:04:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp 20.2
2013.10.01 00:07:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp
2013.10.01 00:08:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp 20.1
2013.10.01 00:11:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp
2013.10.01 00:12:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp 20.2
2013.10.01 00:15:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp
2013.10.01 00:16:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp 20.1
2013.10.01 00:19:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp
2013.10.01 00:20:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 1, valveposition 0 %, desiredTemperature 17, until , curTemp 20.2
2013.10.01 00:21:22 3: MaxScan_Shutter_Notify Fenster_Bad onoff: 0
2013.10.01 00:23:42 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp

Gruß

Langerhannes
FHEM CUL FS20 auf Fritz 7390

MAX Thermostat und Fensterkontakt
Alarmanlage mit MAX Fensterkontakten

shorty81

Hi John,
danke für die Hilfe. Jetzt läuft es.
Noch einmal shutdown restart war anscheind die Lösung ;)

Danke für die tolle Arbeit!
Viele Grüße
Chris
Raspberry Pi 2 Model B, CUL866, CUL433, JeeLink, HMLan, Homematic, Homebridge via Siri, Philips HUE, Max-Thermostate, Max-Fensterkontakte, AVM 546E, WS1600, RSL, Intertechno, IT+, Elro

John

Hallo Langerhannes


Zitat2013.10.01 00:00:58 2: battery 0, rferror 0, panel 0, langateway 1, dstsetting 1, mode 0, valveposition 0 %, desiredTemperature 17, until , curTemp 20.2

Die Zeile kommt vom Modul 10_Max.

Da steht wohl der LogLevel eines deiner Thermostate auf 2.
Höher setzen dann sollte es verschwinden.


John
CubieTruck Docker Node-Red Tasmota Shelly Homematic-IP

langerhannes

Danke John!

Jetzt sieht´s wieder etwas aufgeräumter im Log aus!

Gruß

Langerhannes
FHEM CUL FS20 auf Fritz 7390

MAX Thermostat und Fensterkontakt
Alarmanlage mit MAX Fensterkontakten