update readingsGroup

Begonnen von justme1968, 08 Juli 2014, 11:47:10

Vorheriges Thema - Nächstes Thema

justme1968

ich hatte open nicht dir richtige version angehängt.

bitte probiere es noch einmal.

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

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

frank

hallo andre,

sobald ich eine raumansicht mit einer readingsgroup öffne, stürzt fhem ab.

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

justme1968

was steht im log? was auf der console?

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

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

frank

2014.07.24 13:19:33.699 4: Connection closed for FHEMWEB:192.168.1.23:1038
2014.07.24 13:19:33.730 4: HTTP FHEMWEB:192.168.1.23:1042 GET /fhem?room=01_ALARM

das steht im log.

# sh[1832]: ++++do set_modulemen++++
das steht im telnet fenster. verbindung zur fritzbox.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

justme1968

das deutet beides noch nicht auf readingsGroup hin.

da muss noch mehr stehen. mit der alten version läuft es?

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

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

justme1968

mit console meine ich die ausgabe due kommt wenn du fhem von hand gestartet hast. wie das auf der fritzbox geht weiss ich nicht.

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

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

frank

Zitatmit der alten version läuft es?
die version aus svn läuft bestens.

Zitatda muss noch mehr stehen.
fhem.log ist mit global verbose 5. mit telnet und linux (fritzbox) bin ich nicht vertraut. da könnte ein freak bestimmt noch mehr rausholen.  ;) da muss ich wohl mal forschen.

sobald ich die version aus beitrag #28 nehme und shutdown restart mache, stürzt fhem beim öffnen einer raumübersicht mit enthaltener readingsgroup ab. firefox kann gar nichts darstellen, sondern meldet, dass keine verbindung möglich ist.

die datei habe ich auch schon ein zweites mal runtergeladen. keine änderung. zuerst hatte ich einen default room im webif über attribut eingestellt, der eine readinggroup enthielt. da kam ich gar nicht mehr an fhem ran.

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

justme1968

ich hatte noch eine debug zeile in der version drin gelassen. kann sein das die fritzbox das nicht kann. hab ich eben raus genommen und dir version in #28 noch mal ersetzt. bitte probiere es noch mal damit.

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

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

frank

hier jetzt nochmal die console


# ./var/InternerSpeicher/fhem/startfhem
# Use of uninitialized value $d in hash element at fhem.pl line 3272.
Use of uninitialized value $d in hash element at fhem.pl line 3292.
Use of uninitialized value $reading in concatenation (.) or string at ./FHEM/98_
PID20.pm line 496.
Use of uninitialized value $sensor in concatenation (.) or string at ./FHEM/98_P
ID20.pm line 496.
Use of uninitialized value $dev in hash element at fhem.pl line 3185.
Subroutine HandleTimeout redefined at ./FHEM/98_apptime.pm line 24.
Subroutine CallFn redefined at ./FHEM/98_apptime.pm line 58.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value $n in hash element at fhem.pl line 3272.
Use of uninitialized value in concatenation (.) or string at (eval 58) line 10.
Useless use of join or string in void context at (eval 190) line 6.
Useless use of join or string in void context at (eval 190) line 23.
Use of uninitialized value in concatenation (.) or string at (eval 178) line 10.
Useless use of join or string in void context at (eval 193) line 6.
Useless use of join or string in void context at (eval 193) line 23.
Can't call method "Dumper" without a package or object reference at ./FHEM/33_re
adingsGroup.pm line 715.


die neue version probieren, oder noch warten?

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

justme1968

das ist genau das problem das ich eben behoben habe. also bitte die neue version von eben probieren.

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

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

frank

vom prinzip her funktioniert es. soweit erstmal danke. ich werden dann mal damit rumspielen.

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

frank

es gibt immer noch schwierigkeiten beim zuordnen. die definition sollte noch aus dem ersten fehlerpost stimmen. der screenshot ist mit

{'c:1' => 'style="background-color:pink"'}

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

justme1968

bitte poste noch mal die komplette definition.

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

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

frank

bitte schön...

Internals:
   DEF        MeinWetter:<aktuell>,<heute>,<morgen>,fc3_day_of_week,fc4_day_of_week,fc5_day_of_week
MeinWetter:icon,fc1_icon,fc2_icon,fc3_icon,fc4_icon,fc5_icon
MeinWetter:wind_condition,fc1_high_c,fc2_high_c,fc3_high_c,fc4_high_c,fc5_high_c
MeinWetter:pressure,fc1_low_c,fc2_low_c,fc3_low_c,fc4_low_c,fc5_low_c
<Raum>,<Hum>,<Tist>,<Tdew>,<Tsoll>,<Mode>,<Tnight>,<Tday>,<TC>,<Vist>,<Vsoll>,<Verr>,<VD>
Broetje:humidity,measured-temp,dewpoint
Thermostat.(WZ|OZ|AZ|Bad|Kueche|Keller|SZ|GZ|Bad.OG):humidity,measured-temp,dewpoint,desired-temp,controlMode@{$DEVICE."_Climate"},night-temp,day-temp,battery,ValvePosition@{valveOfDevice($DEVICE)},ValveDesired@{valveOfDevice($DEVICE)},R-valveErrorPos@{valveOfDevice($DEVICE)},battery@{valveOfDevice($DEVICE)}
   NAME       myTemp
   NR         461
   NTFY_ORDER 50-myTemp
   STATE      Initialized
   TYPE       readingsGroup
   mayBeVisible 1
   Content:
     Broetje    1
     MeinWetter 1
     Thermostat.AZ 1
     Thermostat.Bad 1
     Thermostat.Bad.OG 1
     Thermostat.GZ 1
     Thermostat.Keller 1
     Thermostat.Kueche 1
     Thermostat.OZ 1
     Thermostat.SZ 1
     Thermostat.WZ 1
   Content2:
     Thermostat.AZ_Climate 1
     Thermostat.Bad.OG_Climate 1
     Thermostat.Bad_Climate 1
     Thermostat.GZ_Climate 1
     Thermostat.Keller_Climate 1
     Thermostat.Kueche_Climate 1
     Thermostat.OZ_Climate 1
     Thermostat.SZ_Climate 1
     Thermostat.WZ_Climate 1
     Ventil.AZ.Nord 1
     Ventil.Bad 1
     Ventil.Kueche 1
     Ventil.SZ  1
     Ventil.WZ  1
   DEVICES:
     ARRAY(0x142ab38)
     ARRAY(0x1401df0)
     ARRAY(0x142cf00)
     ARRAY(0x142cea0)
     ARRAY(0x142ce60)
     ARRAY(0x142ab58)
     ARRAY(0x13da688)
     ARRAY(0x13da608)
     ARRAY(0x13da5d8)
     ARRAY(0x13da638)
     ARRAY(0x13da478)
     ARRAY(0x14fb288)
     ARRAY(0x14fafe8)
     ARRAY(0x14fbb08)
     ARRAY(0x14f3b28)
   DEVICES2:
     ARRAY(0x142ab38)
     ARRAY(0x1401df0)
     ARRAY(0x142cf00)
     ARRAY(0x142cea0)
     ARRAY(0x142ce60)
     ARRAY(0x142ab58)
     ARRAY(0x13da688)
     ARRAY(0x13da608)
     ARRAY(0x13da5d8)
     ARRAY(0x13da638)
     ARRAY(0x13da478)
     ARRAY(0x14fb288)
     ARRAY(0x14fafe8)
     ARRAY(0x14fbb08)
     ARRAY(0x14f3b28)
     ARRAY(0x1521998)
     ARRAY(0x1521bf8)
     ARRAY(0x1521c38)
     ARRAY(0x1521c78)
     ARRAY(0x1521cb8)
     ARRAY(0x1521a38)
     ARRAY(0x1521d58)
     ARRAY(0x1521d98)
     ARRAY(0x1521dd8)
     ARRAY(0x1521e18)
     ARRAY(0x1521c58)
     ARRAY(0x1521db8)
     ARRAY(0x1521c08)
     ARRAY(0x1521d68)
     ARRAY(0x1521fa8)
     ARRAY(0x1521fe8)
     ARRAY(0x1522028)
     ARRAY(0x1522068)
     ARRAY(0x1521a88)
     ARRAY(0x1522008)
     ARRAY(0x1522158)
     ARRAY(0x1522198)
     ARRAY(0x15221d8)
     ARRAY(0x1522218)
     ARRAY(0x1521ee8)
     ARRAY(0x15222b8)
     ARRAY(0x15222f8)
     ARRAY(0x1522338)
     ARRAY(0x1522378)
   Fhem:
     lastDefChange 1
     last_update 1406205535.6189
   Helper:
     Bm:
       Readingsgroup_attr:
         cnt        9
         dmx        0
         mAr
         max        0
         tot        0
       Readingsgroup_get:
         cnt        11
         dmx        0
         mAr
         max        0
         tot        0
       Readingsgroup_notify:
         cnt        2224
         dmx        0
         max        521
         tot        55688
         mAr:
           HASH(0x13bfbd0)
           HASH(0x12ce088)
Attributes:
   cellStyle  {'c:1' => 'style="border-style:solid"'}
   commands   { 'desired-temp' => 'desired-temp:','controlMode' => 'controlMode:' }
   mapping    { 'Broetje' => 'Wetter','MeinWetter' => '','Thermostat.AZ' => 'EG Arbeitszimmer','Thermostat.Keller' => 'UG Keller','Thermostat.SZ' => 'OG Schlafzimmer','Thermostat.WZ'=>'EG Wohnzimmer','Thermostat.Kueche' => 'EG Küche','Thermostat.GZ' => 'OG Gästezimmer','Thermostat.Bad' => 'EG Bad','Thermostat.Bad.OG' => 'OG Bad','Thermostat.OZ' => 'EG Kaminzimmer','desired-temp' => '','controlMode' => ''}
   nameStyle  { 'style="color:yellow"' }
   notime     1
   room       01_INFO
   valueColumn {fc1_high_c => 2,fc1_low_c => 2}
   valueFormat { 'measured-temp' => "%0.1f °C",'dewpoint' => "%0.1f °C", 'fc1_high_c' => "%.1f °C", 'fc1_low_c' => "%.1f °C", 'fc2_high_c' => "%.1f °C", 'fc2_low_c' => "%.1f °C", 'fc3_high_c' => "%.1f °C", 'fc3_low_c' => "%.1f °C", 'fc4_high_c' => "%.1f °C", 'fc4_low_c' => "%.1f °C", 'fc5_high_c' => "%.1f °C", 'fc5_low_c' => "%.1f °C", 'ToutIst' => "%.1f °C", 'night-temp' => "%.1f °C", 'day-temp' => "%.1f °C", 'humidity' => "%.0f %%", 'ValvePosition' => "%.0f %%", 'ValveDesired' => "%.0f %%", 'R-valveErrorPos' => "%.0f %%" }
   valueIcon  {'battery.ok' => 'batterie@lightgreen','battery.low' => 'batterie@red','icon' => '%VALUE','fc1_icon' => '%VALUE','fc2_icon' => '%VALUE','fc3_icon' => '%VALUE','fc4_icon' => '%VALUE','fc5_icon' => '%VALUE'}
   valueStyle {if($READING eq "humidity"){      if($VALUE > 80){'style="color:dodgerblue"'}      elsif($VALUE > 60){'style="color:lightblue"'}      elsif($VALUE > 40){'style="color:lightgreen"'}      else{'style="color:yellow"'}}  elsif(($READING eq "measured-temp") || ($READING eq "ToutIst")){      if($VALUE > 24){'style="color:violet"'}      elsif($VALUE > 21){'style="color:orangered"'}      elsif($VALUE > 18){'style="color:orange"'}      elsif($VALUE > 15){'style="color:lightgreen"'}      else{'style="color:lightblue"'}}  elsif($READING eq "dewpoint"){      if(ReadingsVal($DEVICE,"measured-temp","") > ($VALUE + 3)){'style="color:lightgreen"'}      elsif(ReadingsVal($DEVICE,"measured-temp","") > $VALUE){'style="color:orange"'}      else{'style="color:orangered"'}}    elsif($READING =~ m/day_of/){'style="color:yellow"'}    else{'style="color:lightgrey"'}}


gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

frank

es scheint so, als würden namenelemente (<>) falsch gezählt werden. zumindestens, wenn mehrere aufeinander folgen.

gruss frank
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html