userReadings, monotonic

Begonnen von PatrickR, 28 Dezember 2018, 17:31:25

Vorheriges Thema - Nächstes Thema

PatrickR

Mahlzeit!

Heute hatte ich ein seltsames Phänomen. Der Wert eines Readings sprang auf 0, das darauf aufbauende userReading mit monotonic ebenfalls:


2018-12-28 13:09:47 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER: 0.0 1.RAIN_COUNTER 0.0
2018-12-28 13:09:47 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER_FHEM: 0.0 1.RAIN_COUNTER_FHEM 0.0
2018-12-27 21:04:56 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER: 0.0 1.RAIN_COUNTER 0.0
2018-12-27 20:40:01 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER: 0.3 1.RAIN_COUNTER 0.3
2018-12-27 06:45:16 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER: 141.3 1.RAIN_COUNTER 141.3
2018-12-27 06:45:16 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER_FHEM: 283.200000000002 1.RAIN_COUNTER_FHEM 283.200000000002
2018-12-26 19:06:22 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER: 141.0 1.RAIN_COUNTER 141.0
2018-12-26 19:06:22 AU.GA.Wetterstation HMCCUDEV 1.RAIN_COUNTER_FHEM: 282.900000000002 1.RAIN_COUNTER_FHEM 282.900000000002


Das UserReading ist wie folgt definiert:

1.RAIN_COUNTER_FHEM:1.RAIN_COUNTER:.[\d\.]+ monotonic {ReadingsVal($name, '1.RAIN_COUNTER', 0)}


Patrick
lepresenced - Tracking von Bluetooth-LE-Tags (Gigaset G-Tag) mittels PRESENCE

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Rich Cook