mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 13:26:02 +00:00
Added CUL_WS to the type-list, so the unit-type for temperature and humidity is inserted in the db.
git-svn-id: https://svn.fhem.de/fhem/trunk@568 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c0cda51366
commit
f34f5e4ddd
@ -198,6 +198,13 @@ DbLog_ParseEvent($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# CUL_WS
|
||||||
|
elsif($type eq "CUL_WS") {
|
||||||
|
if($event =~ m(T:.*)) { $reading= "data"; $value= $event; }
|
||||||
|
if($reading eq "temperature") { $unit= "°C"; }
|
||||||
|
if($reading eq "humidity") { $unit= "%"; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@result= ($reading,$value,$unit);
|
@result= ($reading,$value,$unit);
|
||||||
return @result;
|
return @result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user