readingsGroup: Fehlermeldung im LogFile ...

Begonnen von linus76, 01 November 2016, 11:13:04

Vorheriges Thema - Nächstes Thema

linus76

Hallo Liebe Leute,

ich habe meine Heizungssteuerung seit 2 Jahren in Betrieb und eigentlich funktioniert alles Bestens. Da ein Freund diese so genial findet habe ich mich breitgeschlagen lassen im diesen Komfort auch zukommen zu lasse  ;D. Eigentlich funktioniert auch alles nur ist mir in den Logfiles aufgefallen dass immer folgender Fehler kommt wenn ich mittels Mousklick den status eines Heizkreis ändere:
2016-11-01_10:57:38 heatingInfo Act.WZ.state: <html><a style="cursor:pointer" onClick="FW_cmd('/fhem?XHR=1&cmd=set Act.WZ on')">off</a></html>

Ich habe auch den Grund des Fehlers auch gefunden, nämlich ,'state.off'=>'set %DEVICE on' wenn ich das weglasse und folgendes "gekürzte" Attribut verwende kommt die Fehlermeldung nicht:
attr heatingInfo commands {'heatingInfo.sollsetz'=>'desired-temp:19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5','controlMode.manual'=>'set %DEVICE controlMode auto','controlMode.auto'=>'set %DEVICE controlMode manual','state.on'=>'set %DEVICE off'}

Aber eigentlich würde ich gerne meine Heizkreise ein UND ausschalten können :). Erschwerend kommt hinzu das ich meine LogFiles (Ventilstatus) grafisch darstelle, was so leider nicht mehr funktioniert. Hat wer von euch eine Idee?

Anbei noch meine ganze Config:

define heatingInfo readingsGroup <%sani_floor_heating_neutral>,<Aktiv>,<HT>,<Soll>,<Soll neu>,<Ist>,<Luftfeuchte>,<Modus>,<Batterie>,<Status>\
Thermostat.Wohnzimmer_Climate:state@Act.WZ,<>,desired-temp,<sollsetz>,measured-temp,humidity,controlMode,batteryLevel@Thermostat.Wohnzimmer,Activity@Thermostat.Wohnzimmer \
<>,<>,<>,<>,<>,<>,<>,<>,<>,<>,<> \
Thermostat.Gang_Climate:state@Act.Gang,<>,desired-temp,<sollsetz>,measured-temp,humidity,controlMode,batteryLevel@Thermostat.Gang,Activity@Thermostat.Gang \
<>,<>,<>,<>,<>,<>,<>,<>,<>,<>,<> \
Thermostat.SZ_Climate:state@Act.SZ,<>,desired-temp,<sollsetz>,measured-temp,humidity,controlMode,batteryLevel@Thermostat.SZ,Activity@Thermostat.SZ \
<>,<>,<>,<>,<>,<>,<>,<>,<>,<>,<> \
Thermostat.KZ_Climate:state@Act.KZ,<>,desired-temp,<sollsetz>,measured-temp,humidity,controlMode,batteryLevel@Thermostat.KZ,Activity@Thermostat.KZ \
<>,<>,<>,<>,<>,<>,<>,<>,<>,<>,<> \
Thermostat.Bad_Climate:state@Act.Bad,state@Act.Bad_HT,desired-temp,<sollsetz>,measured-temp,humidity,controlMode,batteryLevel@Thermostat.Bad,Activity@Thermostat.Bad \
<>,<>,<>,<>,<>,<>,<>,<>,<>,<>,<>
attr heatingInfo commands {'heatingInfo.sollsetz'=>'desired-temp:5.0,12.0,18.0,19.0,19.5,20.0,20.5,21.0,21.5,22.0,22.5,23.0,23.5,24.0,24.5,25.0,25.5,26.0,27.0','controlMode.manual'=>'set %DEVICE controlMode auto','controlMode.auto'=>'set %DEVICE controlMode manual','state.on'=>'set %DEVICE off','state.off'=>'set %DEVICE on'}
attr heatingInfo valueFormat {if($READING eq "battery") {if($VALUE eq "ok") {$VALUE=100} else{$VALUE=25}} elsif($READING eq "batteryLevel"){if($VALUE>=3){$VALUE=100} elsif($VALUE>=2.7){$VALUE=75}elsif($VALUE>=2.5){$VALUE=50} elsif($VALUE>=2.2){$VALUE=25} else{$VALUE=0}}}
attr heatingInfo valueIcon {'controlMode.manual' => 'sani_heating_manual@795CFF','controlMode.auto' => 'sani_heating_automatic@FFC13A','controlMode.boost' => 'sani_heating_boost@FB0C02','humidity'=>'humidity@6FD9FB','batteryLevel.100'=>'measure_battery_100@0CFB0C','batteryLevel.75'=>'measure_battery_75@42BC0A','batteryLevel.50'=>'measure_battery_50@F5FF10','batteryLevel.25'=>'measure_battery_25@FB5909','batteryLevel.0'=>'measure_battery_0@E50005','battery.100'=>'measure_battery_100@0CFB0C','battery.25'=>'measure_battery_25@FB5909','Activity.dead' => 'message_attention@FC0000','Activity.unknown' => 'message_attention@FFDD00','Activity.alive' => 'message_ok@0CFB0C','state.on' => 'sani_floor_heating@0CFB0C','state.off' => 'sani_floor_heating_off@A5ABAD','controlMode.set_boost' => 'hourglass','controlMode.set_auto' => 'hourglass','controlMode.set_manual' => 'hourglass','state.set_on' => 'hourglass@0CFB0C','state.set_off' => 'hourglass@A5ABAD','state.unreachable' => 'message_attention@FC0000'}
attr heatingInfo noheading 1
attr heatingInfo room HeizungsStatus

Danke und lG,
Martin

justme1968

wo genau siehst du einen fehler?

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

linus76

Hallo Andre,

wie "Wurzel der Fehlermeldung habe ich in meinem original Post schon geschrieben:

2016-11-01_10:57:38 heatingInfo Act.WZ.state: <html><a style="cursor:pointer" onClick="FW_cmd('/fhem?XHR=1&cmd=set Act.WZ on')">off</a></html>


normal sollte der Logfile Eintrag so aussehen

2016-11-01_12:20:28 Act.WZ on
2016-11-01_12:20:32 Act.WZ off


Wenn ich die weiteren Attribute, also die  Config wie in meinem ursprünglichen Posting wieder aktiviere, potenzieren sich die Fehler ...

heatingInfo Act.WZ.state: <html><a style="cursor:pointer" onClick="FW_cmd('/fhem?XHR=1&cmd=set Act.WZ on')"><svg class="icon sani_floor_heating_off A5ABAD" data-txt="off"    xmlns:dc="http://purl.org/dc/elements/1.1/"    xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"    xmlns:svg="http://www.w3.org/2000/svg"   
xmlns="http://www.w3.org/2000/svg"    version="1.0    width="468pt"    height="424pt"    viewBox="0 0 468 424"    id="svg3043">   <defs      id="defs3061" />   
<metadata      id="metadata3045"> Created by potrace 1.8, written by Peter Selinger 2001-2007 <rdf:RDF>  <cc:Work      rdf:about="">     
<dc:format>image/svg+xml</dc:format>     <dc:type       
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />    <dc:title></dc:title>   </cc:Work> </rdf:RDF> </metadata>   <g      transform="matrix(0.158644,0,0,-0.158644,0,424)"     
id="g3047"     fill="#A5ABAD" stroke="none">     
<path        d="M 112,1623 C 77,1616 23,1559 11,1515 -4,1460 -4,186 11,126 18,99 35,69 56,49 l 35,-34 1378,-3 1378,-2 34,23 c 72,48 69,12 69,786 l 0,693 -22,39 c -14,25 -37,46 -63,59 -41,20 -60,20 -1386,19 -739,-1 -1354,-4 -1367,-6 z m 2703,-808 0,-670 -1335,0 -1335,0 -3,673 -2,672 1337,-2 1338,-3 0,-670 z"        id="path3055" />     <path        d="M 470,1260 c -26,-26 -26,-74 0,-100 20,-20 33,-20 1005,-20 1070,0 1028,2 1073,-55 30,-37 31,-125 2,-165 -45,-63 12,-60 -1084,-60 -992,0 -995,0 -1052,-21 -231,-87 -231,-411 0,-498 57,-21 60,-21 1056,-21 l 999,0 15,22 c 22,31 20,71 -5,94 -20,18 -56,19 -1023,24 -841,4 -1004,7 -1022,19 -54,36 -73,121 -39,178 36,62 -32,58 1080,63 1011,5 1020,5 1066,26 60,28 115,78 142,128 31,58 31,193 0,251 -29,54 -78,99 -138,127 l -50,23 -1002,3 c -994,2 -1003,2 -1023,-18 z"        id="path3057" />   </g>   <g fill="#A5ABAD">   <path      d="M 12.005838,9.8083641 C 9.338947,11.456092 4.312887,16.499141 3.133303,18.696112 2.107577,20.643428 2.056288,23.339708 3.030726,25.486756 3.441019,26.385513
15.903595,38.868309 32.007501,54.546696 L 60.26626,82.008846 32.110071,109.47099 C 1.8511419,138.98032 2.364005,138.43107 3.082014,142.82502 c
0.307724,1.74759 1.077015,2.79614 4.820914,6.49105 2.410456,2.44663 5.026059,4.74346 5.795357,5.14291 1.641159,0.84883 5.692781,0.89876
7.23137,0.14979 0.615433,-0.29958 13.744737,-12.83231 29.233203,-27.86159 L 78.216471,99.484746 106.32138,126.74718 c 15.43717,15.02928
28.56648,27.56201 29.18191,27.86159 1.58988,0.74897 5.59021,0.69904 7.23137,-0.14979 1.69245,-0.89876 8.97511,-8.08884 9.84697,-9.68665
0.7693,-1.49793 0.7693,-4.89325 0,-6.84057 -0.35899,-0.89876 -12.00099,-12.63259 -28.4639,-28.71042 L 96.16669,82.008846 124.5793,54.297043 c
31.28466,-30.507946 30.46408,-29.509329 29.02806,-34.053064 -0.718,-2.496558 -7.94938,-10.086098 -10.61626,-11.1845819 -2.00017,-0.848832
-4.66707,-0.898763 -6.66722,-0.149796 -0.7693,0.249656 -14.20631,12.8822459 -29.74607,28.0613199 L 78.216471,64.532926 50.162858,37.22058 C
34.674392,22.241229 21.339948,9.6086371 20.416792,9.1592571 17.801189,7.9109781 14.672723,8.1107021 12.005838,9.8083641 z M 47.80369,44.41067
78.216471,74.019856 108.62926,44.41067 c 16.66805,-16.227637 30.56665,-29.559259 30.87437,-29.559259 0.82058,0 7.43651,6.640846 7.43651,7.489679
0,0.399451 -13.64216,14.030657 -30.31022,30.258286 L 86.370997,82.108706 116.3735,111.21859 c 16.51419,16.0279 30.05378,29.50932
30.05378,29.90877 0,0.99862 -6.66723,7.53961 -7.69295,7.53961 -0.4103,0 -14.2576,-13.1319 -30.77179,-29.20975 L 77.960043,90.247486
47.957548,119.45722 c -16.514198,16.07785 -30.207647,29.20975 -30.515364,29.20975 -0.820579,0 -7.436516,-6.64085 -7.436516,-7.48968 0,-0.39945
13.437014,-13.88087 29.899924,-29.85884 L 69.856805,82.208566 39.392729,52.649314 C 22.673391,36.371747 8.979942,22.790472 8.979942,22.391021 c
0,-0.948695 6.769795,-7.53961 7.744233,-7.53961 0.359005,0 14.36017,13.331622 31.079515,29.559259 z"      id="path8" />   <path      d="M
167.89058,10.51006 c -2.66689,1.647727 -7.69295,6.690777 -8.87253,8.887748 -1.02573,1.947316 -1.07702,4.643596 -0.10258,6.790644 0.41029,0.898756
12.87287,13.381552 28.97678,29.05994 L 216.151,82.710541 187.99482,110.17269 c -30.25893,29.50932 -29.74607,28.96008 -29.02806,33.35403
0.30772,1.74758 1.07701,2.79613 4.82091,6.49105 2.41046,2.44663 5.02606,4.74345 5.79536,5.14291 1.64116,0.84882 5.69278,0.89876 7.23137,0.14978
0.61543,-0.29957 13.74474,-12.8323 29.2332,-27.86158 l 28.05362,-27.26244 28.10491,27.26244 c 15.43716,15.02928 28.56648,27.56201
29.18191,27.86158 1.58988,0.74898 5.59021,0.69904 7.23137,-0.14978 1.69244,-0.89876 8.97511,-8.08884 9.84696,-9.68666 0.76931,-1.49793
0.76931,-4.89325 0,-6.84057 -0.35898,-0.89876 -12.00098,-12.63259 -28.46389,-28.71041 L 252.05144,82.710541 280.46405,54.998738 c
31.28466,-30.507946 30.46408,-29.509329 29.02806,-34.053064 -0.718,-2.496557 -7.94938,-10.086098 -10.61626,-11.1845814 -2.00017,-0.848832
-4.66708,-0.898763 -6.66722,-0.149796 -0.7693,0.249656 -14.20631,12.8822454 -29.74607,28.0613194 L 234.10122,65.234621 206.0476,37.922276 C
190.55914,22.942924 177.22469,10.310333 176.30154,9.8609526 c -2.61561,-1.248279 -5.74407,-1.048555 -8.41096,0.6491074 z m 35.79785,34.602305
30.41279,29.609187 30.41279,-29.609187 c 16.66804,-16.227637 30.56664,-29.559259 30.87436,-29.559259 0.82059,0 7.43652,6.640846 7.43652,7.489679
0,0.399451 -13.64216,14.030657 -30.31022,30.258287 l -30.25893,29.509329 30.00251,29.109889 c 16.51419,16.02789 30.05378,29.50932
30.05378,29.90876 0,0.99863 -6.66723,7.53961 -7.69295,7.53961 -0.41031,0 -14.2576,-13.13189 -30.77179,-29.20974 l -30.0025,-29.209741
-30.0025,29.209741 c -16.5142,16.07785 -30.20764,29.20974 -30.51536,29.20974 -0.82058,0 -7.43652,-6.64085 -7.43652,-7.48968 0,-0.39945
13.43702,-13.88086 29.89993,-29.85884 L 225.74155,82.910261 195.27747,53.351009 C 178.55814,37.073442 164.86469,23.492168 164.86469,23.092716 c
0,-0.948695 6.76979,-7.53961 7.74423,-7.53961 0.359,0 14.36017,13.331622 31.07951,29.559259 z"      id="path8-1" />   <path      d="M 323.23974,11.2965
c -2.66689,1.647727 -7.69295,6.690772 -8.87254,8.887752 -1.02572,1.94731 -1.07701,4.64359 -0.10258,6.79064 0.4103,0.89876 12.87287,13.38155
28.97678,29.05994 l 28.25876,27.46215 -28.15619,27.462148 c -30.25893,29.50932 -29.74607,28.96008 -29.02806,33.35403 0.30773,1.74758
1.07702,2.79613 4.82092,6.49105 2.41045,2.44663 5.02605,4.74345 5.79535,5.14291 1.64116,0.84882 5.69278,0.89876 7.23137,0.14978 0.61544,-0.29957
13.74474,-12.8323 29.23321,-27.86158 l 28.05361,-27.26244 28.10491,27.26244 c 15.43716,15.02928 28.56648,27.56201 29.18191,27.86158
1.58988,0.74898 5.59021,0.69904 7.23137,-0.14978 1.69244,-0.89876 8.97511,-8.08884 9.84696,-9.68666 0.76931,-1.49793 0.76931,-4.89325 0,-6.84057
-0.35898,-0.89876 -12.00098,-12.63259 -28.46389,-28.71041 l -27.95104,-27.212498 28.41261,-27.7118 c 31.28466,-30.50795 30.46408,-29.50933
29.02806,-34.05307 -0.718,-2.49656 -7.94938,-10.086096 -10.61626,-11.184579 -2.00017,-0.848832 -4.66708,-0.898763 -6.66722,-0.149796
-0.7693,0.249656 -14.20631,12.882245 -29.74607,28.061315 l -28.36134,27.56201 -28.05361,-27.31235 C 345.90829,23.729362 332.57385,11.096773
331.65069,10.647393 329.03509,9.399114 325.90662,9.598838 323.23974,11.2965 z m 35.79785,34.602302 30.41278,29.60919 30.41279,-29.60919 c
16.66804,-16.22763 30.56664,-29.55926 30.87436,-29.55926 0.82059,0 7.43652,6.64085 7.43652,7.48968 0,0.39945 -13.64216,14.03066 -30.31022,30.25829
l -30.25893,29.50933 30.00251,29.109888 c 16.51419,16.02789 30.05378,29.50932 30.05378,29.90876 0,0.99863 -6.66723,7.53961 -7.69295,7.53961
-0.41031,0 -14.2576,-13.13189 -30.77179,-29.20974 l -30.0025,-29.209738 -30.00249,29.209738 c -16.5142,16.07785 -30.20765,29.20974
-30.51537,29.20974 -0.82058,0 -7.43651,-6.64085 -7.43651,-7.48968 0,-0.39945 13.43701,-13.88086 29.89992,-29.85884 L 381.0907,83.696702
350.62663,54.137452 c -16.71934,-16.27757 -30.41279,-29.85884 -30.41279,-30.2583 0,-0.94869 6.7698,-7.53961 7.74423,-7.53961 0.35901,0
14.36017,13.33163 31.07952,29.55926 z"   
id="path8-7" /> </g> </svg></a></html>


irgendwelche Ideen?

justme1968

das ist keine fehlermeldung.

fehlermeldungen gibt es nur im fhem log. nicht in den filelogs. in den filelogs wird alles geloggt was du konfiguriert hast. dein filelog log (auch) die events der readingsGroup.

du solltest die logs der original devices loggen. die evens der readingsGroup sind zum aktualisieren des frontends gedacht. nicht zum loggen.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

linus76

Was meinst du mit ich sollte die Logs der original devices loggen? Ich will ein Logfile wie:

2016-11-01_00:00:32 Act.WZ off
2016-11-01_00:09:28 Act.WZ off
2016-11-01_00:09:28 Act.WZ off
2016-11-01_00:19:29 Act.WZ off
2016-11-01_00:19:29 Act.WZ off
2016-11-01_00:20:31 Act.WZ off


Wie gesagt hat das alles schon bestens funktioniert, nur irgendein Update hat mir das zerschossen.

Sorry, aber ich kann dir nicht ganz folgen ;).

justme1968

zeig mal wie dein log device konfiguriert ist.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

linus76


define FileLog_Thermostat.Wohnzimmer FileLog ./log/Thermostat.Wohnzimmer-%Y-%m.log Thermostat.Wohnzimmer|Thermostat.Wohnzimmer_Weather|Act.WZ.on|Act.WZ.off
attr FileLog_Thermostat.Wohnzimmer logtype text
attr FileLog_Thermostat.Wohnzimmer room Logfiles

justme1968

das Act.WZ.on der regex matched auf das Act.WZ.on im event ...cmd=set Act.WZ on...

schränk mal die regex so ein das nur der device name matched:define FileLog_Thermostat.Wohnzimmer FileLog ./log/Thermostat.Wohnzimmer-%Y-%m.log (Thermostat.Wohnzimmer|Thermostat.Wohnzimmer_Weather|Act.WZ.on|Act.WZ.off):

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

linus76

GENIAL Andre vielen DANK!

Jetzt funktioniert es perfekt - was zwei so Klammern ausmachen können :D ...

Nochmals Danke und schönen Abend,
Martin