2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 01:14:19 +00:00

31_HUEDevice.pm: added readigns for Xiamo/mijia Honeywell Rauchmelder

git-svn-id: https://svn.fhem.de/fhem/trunk@18403 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-01-24 15:47:40 +00:00
parent c875177e3c
commit 050fbaeb0c

View File

@ -1284,6 +1284,7 @@ HUEDevice_Parse($$)
$readings{state} = $state->{lightlevel} if( defined($state->{lightlevel}) && !defined($state->{lux}) );
$readings{state} = $state->{buttonevent} if( defined($state->{buttonevent}) );
$readings{state} = $state->{presence}?'motion':'nomotion' if( defined($state->{presence}) );
$readings{state} = $state->{fire}?'fire':'nofire' if( defined($state->{fire}) );
$readings{dark} = $state->{dark}?'1':'0' if( defined($state->{dark}) );
$readings{humidity} = $state->{humidity} * 0.01 if( defined($state->{humidity}) );
@ -1297,6 +1298,9 @@ HUEDevice_Parse($$)
$readings{current} = $state->{current} if( defined($state->{current}) );
$readings{consumption} = $state->{consumption} if( defined($state->{consumption}) );
$readings{water} = $state->{water} if( defined($state->{water}) );
$readings{fire} = $state->{fire} if( defined($state->{fire}) );
$readings{tampered} = $state->{tampered} if( defined($state->{tampered}) );
$readings{battery} = $state->{lowbattery}?'low':'OK' if( defined($state->{lowbattery}) );
}
if( scalar keys %readings ) {