From 6ecd092f6431e515cd2fd35e8b57bd3bb3ffda97 Mon Sep 17 00:00:00 2001 From: moises <> Date: Tue, 20 Oct 2020 08:22:30 +0000 Subject: [PATCH] 32_withings: fixed database write for sleepstate: light git-svn-id: https://svn.fhem.de/fhem/trunk@22993 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/32_withings.pm | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index 209bc7c50..c22376d36 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 32_withings: fixed database write for sleepstate: light - feature: 98_WeekdayTimer: Allow flexible state values when delayed. - feature: 89_FULLY: Several new commands. Now using JSON. - change: 59_Weather: add forcast attributs to english commandref diff --git a/fhem/FHEM/32_withings.pm b/fhem/FHEM/32_withings.pm index 07afe1b04..cbc9a67e9 100644 --- a/fhem/FHEM/32_withings.pm +++ b/fhem/FHEM/32_withings.pm @@ -4015,6 +4015,11 @@ sub withings_DbLog_splitFn($) { $reading = 'heartPulse'; $unit = 'bpm'; } + elsif($event =~ m/sleepstate/) + { + $reading = 'sleepstate'; + $unit = ''; + } elsif($event =~ m/ecgQRS/) { $reading = 'ecgQRS';