2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +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:
justme-1968 2020-03-06 12:00:00 +00:00
parent 90744eeedf
commit c767c28915

View File

@ -1607,6 +1607,9 @@ HUEDevice_Parse($$)
#Eurotronic Spirit ZigBee (SPZB0001)
$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} );