Hallo,
auf dieser Seite ist unter "Tipps, Tricks, Problemlösungen" die Rede von einem "T:-Reading".
https://wiki.fhem.de/wiki/HP1000 (https://wiki.fhem.de/wiki/HP1000)
Was ist das und was macht das?
Gruß Chris
Das ist das Reading für Temperatur, oft im State als z.B. "T:20" angegeben.
Aber das Reading für Temperatur heisst doch im Fall des HP1000-Moduls "temperature", wenn ich mich nicht irre.
Gruß Chris
Es geht dabei um eine Übersichtsdarstellung im state Reading T: 5, H: 63 z.B.
Ja, bei mir wird das in der Übersicht auch so angezeigt.
Dass man darauf so zugreifen kann und nicht nur auf die Readings an sich, war mir neu.
Wo und wie ich so etwas in der Commandref hätte finden können sollen, ist mir ein Rätsel. :-X
Gruß Chris
Verstehe Deine Aussage nicht.
state ist auch nur ein Reading. Du kannst also auch darauf zugreifen.
Es geht darum, dass auf der verlinkten Seite vom T: Reading gesprochen wird, dass es aber gar nicht gibt.
Ich schätze die Regex matched einfach auf den state Event, welches eben mit T: anfängt.
Ok.
Ist es denn möglich, in einem Logfile Events mehrerer Readings zu speichern und falls ja, wie geht das?
Gruß Chris
Wozu?
Um mir z.B. Temperatur und Niederschlag im weiteren Verlauf in einem SVG-Plot anzeigen lassen zu können. Es ist diebezüglich übrigens sehr mühsam, an brauchbare/zielführende Informationen zu kommen, wenn man (noch) kein FHEM-Experte ist.
Die Commandref liest sich da teilweise sehr hölzern.
Gruß Chris
Zitat von: chq am 31 August 2018, 20:39:50
Um mir z.B. Temperatur und Niederschlag im weiteren Verlauf in einem SVG-Plot anzeigen lassen zu können. Es ist diebezüglich übrigens sehr mühsam, an brauchbare/zielführende Informationen zu kommen, wenn man (noch) kein FHEM-Experte ist.
Die Commandref liest sich da teilweise sehr hölzern.
Gruß Chris
Das T oder H sollte im state nur eine Zusammenfassung sein. Du hast doch bestimmt Readings welche T und H wiederspiegeln. Zum Beispiel temperature und humidity. Oder nicht.
Zeig mal bitte ein list von so einem Device.
Du hast ja bisher sehr allgemein gefragt.
Klar, gerne. :)
Internals:
CHANGED
DEF weatherstation weatherstation
FW WEBweatherstation
FW_PORT 8089
ID weatherstation
INTERVAL 16
IP 192.168.0.101
NAME Wetterstation
NR 65
PASSWORD weatherstation
SERVER_TYPE jsp
STATE T: 12.7 °C H: 96 %
SWVERSION WH2600GEN_V2.2.5
SYSTEMTIME_UTC 2018-8-31 19:6:30
TYPE HP1000
UPLOAD_TYPE default
READINGS:
2018-08-29 08:18:48 Activity alive
2018-08-31 21:01:28 UV 0
2018-08-31 21:01:28 UVR 0
2018-08-28 19:36:40 UVcondition low
2018-08-28 19:36:40 UVcondition_rgb 4C9329
2018-08-29 07:53:44 battery low
2018-08-31 20:58:48 condition nt_rain
2018-08-31 19:28:24 daylight 0
2018-08-31 21:01:28 dewpoint 12.1
2018-08-31 21:01:28 dewpoint_f 53.8
2018-08-31 21:01:28 humidity 96
2018-08-31 21:01:28 humidityAbs 10.7
2018-08-31 21:01:28 humidityAbs_f 99.5
2018-08-31 10:45:12 humidityCondition wet
2018-08-31 10:45:12 humidityCondition_rgb 0066CC
2018-08-31 21:01:28 indoorDewpoint 14.3
2018-08-31 21:01:28 indoorDewpoint_f 60.4
2018-08-31 21:01:28 indoorHumidity 65
2018-08-31 21:01:28 indoorHumidityAbs 11.9
2018-08-31 21:01:28 indoorHumidityAbs_f 128.9
2018-08-29 07:48:40 indoorHumidityCondition ideal
2018-08-29 07:48:40 indoorHumidityCondition_rgb 4C9329
2018-08-31 21:01:28 indoorTemperature 21.1
2018-08-29 07:56:40 indoorTemperatureCondition ideal
2018-08-29 07:56:40 indoorTemperatureCondition_rgb 4C9329
2018-08-31 21:01:28 indoorTemperature_f 70.0
2018-08-31 20:58:48 israining 1
2018-08-31 21:01:28 luminosity 0.00
2018-08-31 21:01:28 pressure 952.10
2018-08-31 21:01:28 pressureAbs 960.10
2018-08-31 21:01:28 pressureAbs_in 28.35
2018-08-31 21:01:28 pressureAbs_mm 7.2
2018-08-31 21:01:28 pressure_in 28.12
2018-08-31 21:01:28 pressure_mm 7.1
2018-08-31 21:01:28 rain 1.8
2018-08-31 21:01:28 rain_day 17.1
2018-08-31 21:01:28 rain_day_in 0.67
2018-08-31 21:01:28 rain_in 0.07
2018-08-31 21:01:28 rain_month 17.1
2018-08-31 21:01:28 rain_month_in 0.67
2018-08-31 21:01:28 rain_week 17.1
2018-08-31 21:01:28 rain_week_in 0.67
2018-08-31 21:01:28 rain_year 17.1
2018-08-31 21:01:28 rain_year_in 0.67
2018-08-31 21:01:28 solarradiation 0.00
2018-08-31 21:01:28 state T: 12.7 °C H: 96 %
2018-08-31 21:01:28 temperature 12.7
2018-08-30 23:12:56 temperatureCondition low
2018-08-30 23:12:56 temperatureCondition_rgb 009999
2018-08-31 21:01:28 temperature_f 54.9
2018-08-31 20:57:44 windCondition calm
2018-08-31 20:57:44 windCondition_rgb FEFEFE
2018-08-28 21:48:40 windWarning
2018-08-31 21:01:28 wind_chill 12.7
2018-08-31 21:01:28 wind_chill_f 54.9
2018-08-31 21:01:28 wind_compasspoint N
2018-08-31 20:56:40 wind_compasspoint_avg10m SW
2018-08-31 21:01:12 wind_compasspoint_avg2m N
2018-08-31 21:01:28 wind_direction 1
2018-08-31 21:01:28 wind_direction_avg2m 3
2018-08-31 21:01:28 wind_gust 0.0
2018-08-31 21:01:28 wind_gust_bft 0
2018-08-31 21:01:28 wind_gust_direction_avg10m 221
2018-08-31 21:01:28 wind_gust_fts 0.0
2018-08-31 21:01:28 wind_gust_kn 0.0
2018-08-31 20:57:44 wind_gust_max10m 0
2018-08-31 21:01:28 wind_gust_mph 0.0
2018-08-31 20:57:44 wind_gust_mph_max10m 0
2018-08-31 21:01:28 wind_gust_mps 0.0
2018-08-31 21:01:28 wind_speed 0.0
2018-08-31 20:51:20 wind_speed_avg2m 0.0
2018-08-31 21:01:28 wind_speed_bft 0
2018-08-31 20:04:08 wind_speed_bft_avg2m 0
2018-08-31 21:01:28 wind_speed_fts 0.0
2018-08-31 21:01:28 wind_speed_kn 0.0
2018-08-31 20:51:20 wind_speed_kn_avg2m 0.0
2018-08-31 21:01:28 wind_speed_mph 0.0
2018-08-31 20:51:20 wind_speed_mph_avg2m 0.0
2018-08-31 21:01:28 wind_speed_mps 0.0
2018-08-31 17:20:40 wind_speed_mps_avg2m 0.0
fhem:
infix updateweatherstation
helper:
history:
windchill:
12.7
winddir:
1
windgust:
0.0
windgustmph:
0.0
windspeed:
0.0
windspeedmph:
0.0
Attributes:
event-on-change-reading israining,temperature,wind_gust_max10m
stateReadings temperature humidity
stateReadingsFormat 1
Zitat von: chq am 31 August 2018, 21:03:17
Klar, gerne. :)
Internals:
CHANGED
DEF weatherstation weatherstation
FW WEBweatherstation
FW_PORT 8089
ID weatherstation
INTERVAL 16
IP 192.168.0.101
NAME Wetterstation
NR 65
PASSWORD weatherstation
SERVER_TYPE jsp
STATE T: 12.7 °C H: 96 %
SWVERSION WH2600GEN_V2.2.5
SYSTEMTIME_UTC 2018-8-31 19:6:30
TYPE HP1000
UPLOAD_TYPE default
READINGS:
2018-08-29 08:18:48 Activity alive
2018-08-31 21:01:28 UV 0
2018-08-31 21:01:28 UVR 0
2018-08-28 19:36:40 UVcondition low
2018-08-28 19:36:40 UVcondition_rgb 4C9329
2018-08-29 07:53:44 battery low
2018-08-31 20:58:48 condition nt_rain
2018-08-31 19:28:24 daylight 0
2018-08-31 21:01:28 dewpoint 12.1
2018-08-31 21:01:28 dewpoint_f 53.8
2018-08-31 21:01:28 humidity 96
2018-08-31 21:01:28 humidityAbs 10.7
2018-08-31 21:01:28 humidityAbs_f 99.5
2018-08-31 10:45:12 humidityCondition wet
2018-08-31 10:45:12 humidityCondition_rgb 0066CC
2018-08-31 21:01:28 indoorDewpoint 14.3
2018-08-31 21:01:28 indoorDewpoint_f 60.4
2018-08-31 21:01:28 indoorHumidity 65
2018-08-31 21:01:28 indoorHumidityAbs 11.9
2018-08-31 21:01:28 indoorHumidityAbs_f 128.9
2018-08-29 07:48:40 indoorHumidityCondition ideal
2018-08-29 07:48:40 indoorHumidityCondition_rgb 4C9329
2018-08-31 21:01:28 indoorTemperature 21.1
2018-08-29 07:56:40 indoorTemperatureCondition ideal
2018-08-29 07:56:40 indoorTemperatureCondition_rgb 4C9329
2018-08-31 21:01:28 indoorTemperature_f 70.0
2018-08-31 20:58:48 israining 1
2018-08-31 21:01:28 luminosity 0.00
2018-08-31 21:01:28 pressure 952.10
2018-08-31 21:01:28 pressureAbs 960.10
2018-08-31 21:01:28 pressureAbs_in 28.35
2018-08-31 21:01:28 pressureAbs_mm 7.2
2018-08-31 21:01:28 pressure_in 28.12
2018-08-31 21:01:28 pressure_mm 7.1
2018-08-31 21:01:28 rain 1.8
2018-08-31 21:01:28 rain_day 17.1
2018-08-31 21:01:28 rain_day_in 0.67
2018-08-31 21:01:28 rain_in 0.07
2018-08-31 21:01:28 rain_month 17.1
2018-08-31 21:01:28 rain_month_in 0.67
2018-08-31 21:01:28 rain_week 17.1
2018-08-31 21:01:28 rain_week_in 0.67
2018-08-31 21:01:28 rain_year 17.1
2018-08-31 21:01:28 rain_year_in 0.67
2018-08-31 21:01:28 solarradiation 0.00
2018-08-31 21:01:28 state T: 12.7 °C H: 96 %
2018-08-31 21:01:28 temperature 12.7
2018-08-30 23:12:56 temperatureCondition low
2018-08-30 23:12:56 temperatureCondition_rgb 009999
2018-08-31 21:01:28 temperature_f 54.9
2018-08-31 20:57:44 windCondition calm
2018-08-31 20:57:44 windCondition_rgb FEFEFE
2018-08-28 21:48:40 windWarning
2018-08-31 21:01:28 wind_chill 12.7
2018-08-31 21:01:28 wind_chill_f 54.9
2018-08-31 21:01:28 wind_compasspoint N
2018-08-31 20:56:40 wind_compasspoint_avg10m SW
2018-08-31 21:01:12 wind_compasspoint_avg2m N
2018-08-31 21:01:28 wind_direction 1
2018-08-31 21:01:28 wind_direction_avg2m 3
2018-08-31 21:01:28 wind_gust 0.0
2018-08-31 21:01:28 wind_gust_bft 0
2018-08-31 21:01:28 wind_gust_direction_avg10m 221
2018-08-31 21:01:28 wind_gust_fts 0.0
2018-08-31 21:01:28 wind_gust_kn 0.0
2018-08-31 20:57:44 wind_gust_max10m 0
2018-08-31 21:01:28 wind_gust_mph 0.0
2018-08-31 20:57:44 wind_gust_mph_max10m 0
2018-08-31 21:01:28 wind_gust_mps 0.0
2018-08-31 21:01:28 wind_speed 0.0
2018-08-31 20:51:20 wind_speed_avg2m 0.0
2018-08-31 21:01:28 wind_speed_bft 0
2018-08-31 20:04:08 wind_speed_bft_avg2m 0
2018-08-31 21:01:28 wind_speed_fts 0.0
2018-08-31 21:01:28 wind_speed_kn 0.0
2018-08-31 20:51:20 wind_speed_kn_avg2m 0.0
2018-08-31 21:01:28 wind_speed_mph 0.0
2018-08-31 20:51:20 wind_speed_mph_avg2m 0.0
2018-08-31 21:01:28 wind_speed_mps 0.0
2018-08-31 17:20:40 wind_speed_mps_avg2m 0.0
fhem:
infix updateweatherstation
helper:
history:
windchill:
12.7
winddir:
1
windgust:
0.0
windgustmph:
0.0
windspeed:
0.0
windspeedmph:
0.0
Attributes:
event-on-change-reading israining,temperature,wind_gust_max10m
stateReadings temperature humidity
stateReadingsFormat 1
Ist doch alles da und in einzelnen Readings. Sowohl temperature als auch humidity. Ich verstehe das yproblem nicht. Logge die beiden Readings und du hast alles.
Ja, so versuche ich es grad.
Zunächst einmal die Temperatur:
define W_temperatureLog FileLog ./log/W_temperature-%Y-%m-%d.log Wetterstation:temperature:.*
attr nrarchive 1
Danke.
Gruß Chris
Ich hoffe du willst nicht für jedes Reading ein eigenes Log erstellen.
define W_Log FileLog ./log/W_temperature-%Y-%m-%d.log Wetterstation:(temperature|humidity):.*
attr nrarchive 1