mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 07:16:03 +00:00
31_HUEDevice.pm: added carbonmonoxide reading
git-svn-id: https://svn.fhem.de/fhem/trunk@21365 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
90744eeedf
commit
c767c28915
@ -1607,6 +1607,9 @@ HUEDevice_Parse($$)
|
|||||||
|
|
||||||
#Eurotronic Spirit ZigBee (SPZB0001)
|
#Eurotronic Spirit ZigBee (SPZB0001)
|
||||||
$readings{valve} = ceil((100/255) * $state->{valve}) if( defined ($state->{valve}) );
|
$readings{valve} = ceil((100/255) * $state->{valve}) if( defined ($state->{valve}) );
|
||||||
|
|
||||||
|
#Heiman Gassensor HS1CG
|
||||||
|
$readings{carbonmonoxide} = $state->{carbonmonoxide} if( defined($state->{carbonmonoxide}) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{lastupdated} = ReadingsVal( $name, '.lastupdated', '' ) if( !$hash->{lastupdated} );
|
$hash->{lastupdated} = ReadingsVal( $name, '.lastupdated', '' ) if( !$hash->{lastupdated} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user