From fac8aae0a9b9ab87269098dd61957c3403c337be Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 21 Nov 2021 11:45:54 +0000 Subject: [PATCH] 31_HUEDevice.pm: added alarm reading for Tuya Zigbee Smart Sirene mit Temperatur- und Feuchtigkeitsmessung git-svn-id: https://svn.fhem.de/fhem/trunk@25249 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 0e9a9800a..938df41d1 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1425,8 +1425,8 @@ HUEDevice_Parse($$) $hash->{helper}{lights} = {map {$_=>1} @{$result->{lights}}}; $hash->{lights} = join( ",", sort { $a <=> $b } @{$result->{lights}} ); } else { - $hash->{helper}{lights} = {}; - $hash->{lights} = ''; + #$hash->{helper}{lights} = {}; + #$hash->{lights} = ''; } if( ref($result->{state}) eq 'HASH' ) { @@ -1632,6 +1632,7 @@ HUEDevice_Parse($$) $readings{battery} = $state->{battery} if( defined($state->{battery}) ); $readings{batteryPercent} = $state->{battery} if( defined($state->{battery}) ); $readings{batteryState} = $state->{lowbattery}?'low':'ok' if( defined($state->{lowbattery}) ); + $readings{alarm} = $state->{alarm}?'1':'0' if( defined($state->{alarm}) ); #Xiaomi Aqara Vibrationsensor (lumi.vibration.aq1) $readings{tiltangle} = $state->{tiltangle} if( defined ($state->{tiltangle}) ); @@ -1966,7 +1967,7 @@ HUEDevice_Attr($$$;$) The default and minimum is 60 if the IODev has not set pollDevices to 1. The default ist 0 if the IODev has set pollDevices to 1. Groups are updated only on definition and statusRequest, but see createGroupReadings
- Sensor devices will not be autocreated. Use get <bridge> sensors will provide the sensor id vor manual definition.

+ Sensor devices will only be autocreated with deconz bridge devices. Use get <bridge> sensors will provide the sensor id vor manual definition.

Examples: