Hallo,
mein Filelog
Internals:
CFGFN
DEF ./log/StromTageswerte-%Y.log counter_summe:.*
FD 37
FUUID 5f040d56-f33f-55bb-6e74-37c7d41de4abd23d
NAME FileLog_StromTageswerte
NOTIFYDEV counter_summe
NR 9588
NTFY_ORDER 50-FileLog_StromTageswerte
REGEXP counter_summe:.*
STATE active
TYPE FileLog
currentlogfile ./log/StromTageswerte-2020.log
logfile ./log/StromTageswerte-%Y.log
READINGS:
2020-07-07 08:26:15 linesInTheFile 21
Attributes:
room System->FileLog
loggt von den 3 readings nur "state"
Internals:
DEF myStromCalculator:EseraCount_ESERA_1C0000000FF1501D_value1_EnergyDay
DEVICE myStromCalculator
FUUID 5dcbb48f-f33f-55bb-d57b-862c9bdd7b29fbdc
NAME counter_summe
NOTIFYDEV myStromCalculator,global
NR 317
NTFY_ORDER 50-counter_summe
READING EseraCount_ESERA_1C0000000FF1501D_value1_EnergyDay
STATE <table style="width:200px;border: 1px solid black">
<tr>
<th>Gesamt:</th>
<th>2.990 kWh</th>
</tr
<tr>
<th>Messwerte:</th>
<th>2.48 kWh</th>
</tr>
<tr>
<th>Fehlbestand:</th>
<th>0.51 kWh</th>
</tr>
</table>
TYPE readingsProxy
CONTENT:
myStromCalculator 1
OLDREADINGS:
READINGS:
2020-07-07 08:26:15 devices 2.48
2020-07-07 08:26:15 diff 0.51
2020-07-07 08:26:15 state 2.990
Attributes:
alias Strom Tageswerte
group Alle
icon measure_power
room System->Status,Zaehler
stateFormat <table style="width:200px;border: 1px solid black">
<tr>
<th>Gesamt:</th>
<th>state kWh</th>
</tr
<tr>
<th>Messwerte:</th>
<th>devices kWh</th>
</tr>
<tr>
<th>Fehlbestand:</th>
<th>diff kWh</th>
</tr>
</table>
userReadings devices {
ReadingsNum("myStromHeizungCalculator","EseraCount_ESERA_2D0000000F8B0A1D_value1_EnergyDay","")+
ReadingsNum("myStromWamaCalculator","EseraCount_ESERA_2D0000000F8B0A1D_value2_EnergyDay","")+
ReadingsNum("myStromWerkstattCalculator","EseraCount_ESERA_640000000F992A1D_value1_EnergyDay","")+
ReadingsNum("myStromTrocknerCalculator","EseraCount_ESERA_640000000F992A1D_value2_EnergyDay","")+
ReadingsNum("myStromFridgeCalculator","ZWave_SWITCH_BINARY_2_value_EnergyDay","")+
ReadingsNum("myStromSpumaCalculator","ZWave_SWITCH_BINARY_13_value_EnergyDay","")+
ReadingsNum("myStromHifiCalculator","ZWave_SWITCH_BINARY_16_value_EnergyDay","")+
ReadingsNum("myStromFreezerCalculator","shellyplugs79585B_value_EnergyDay","")+
ReadingsNum("myStromPcCalculator","shellyplugs041ADD_value_EnergyDay","")+
ReadingsNum("myStromSaecoCalculator","shellyplugs7A3425_value_EnergyDay","")+
ReadingsNum("myStromServerCalculator","shellyplugs041588_value_EnergyDay","")
}, diff {ReadingsNum("$name","state","")-ReadingsNum("$name","devices","") }
Wie bekomme ich alle 3 readings ins log?
Meine Erfahrung bei readingsProxy war bisher das ohne eocr für state auch kein event erzeugt wird, aber wird ja offensichtlich, wenn er ins LogFile geschrieben wird.
Setz mal ein event-on-change-reading ob das hilft für die zwei anderen Readings.
Gruß
Thomas
ja, das wars - Danke!
Komisch ich dachte immer event-on-change-reading wäre um die Events einzuschränken, anscheinend verhält sich Readingsproxy hier anders ...