change model name for smartlock 3.0 api conform. fix little bugs #10
@ -50,7 +50,7 @@ sub Initialize($) {
|
||||
|
||||
$hash->{AttrList} =
|
||||
'IODev '
|
||||
. 'model:opener,smartlock '
|
||||
. 'model:smartlock,opener,smartdoor,smartlock3 '
|
||||
. 'disable:1 '
|
||||
. $::readingFnAttributes;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
UPD 2021-11-27_18:02:39 9224 FHEM/73_NUKIBridge.pm
|
||||
UPD 2021-11-27_18:01:59 7548 FHEM/74_NUKIDevice.pm
|
||||
UPD 2021-11-27_18:08:11 40444 lib/FHEM/Devices/Nuki/Bridge.pm
|
||||
UPD 2021-11-27_15:28:59 15728 lib/FHEM/Devices/Nuki/Device.pm
|
||||
UPD 2021-11-27_21:26:06 9224 FHEM/73_NUKIBridge.pm
|
||||
UPD 2021-11-27_21:30:28 7569 FHEM/74_NUKIDevice.pm
|
||||
UPD 2021-11-27_21:26:06 40444 lib/FHEM/Devices/Nuki/Bridge.pm
|
||||
UPD 2021-11-27_21:32:02 15123 lib/FHEM/Devices/Nuki/Device.pm
|
||||
|
@ -107,7 +107,8 @@ if ($@) {
|
||||
my %deviceTypes = (
|
||||
0 => 'smartlock',
|
||||
2 => 'opener',
|
||||
4 => 'smartlockNG'
|
||||
3 => 'smartdoor',
|
||||
4 => 'smartlock3'
|
||||
);
|
||||
|
||||
my %modes = (
|
||||
@ -448,23 +449,6 @@ sub Parse {
|
||||
"NUKIDevice ($name) - find logical device: $hash->{NAME}" );
|
||||
|
||||
return $hash->{NAME};
|
||||
|
||||
##################
|
||||
## Zwischenlösung so für die Umstellung, kann später gelöscht werden
|
||||
# if ( ::AttrVal( $name, 'model', '' ) eq '' ) {
|
||||
# ::CommandDefMod( undef,
|
||||
# $name
|
||||
# . ' NUKIDevice '
|
||||
# . $hash->{NUKIID} . ' '
|
||||
# . $decode_json->{deviceType} );
|
||||
# ::CommandAttr( undef,
|
||||
# $name
|
||||
# . ' model '
|
||||
# . $deviceTypes{ $decode_json->{deviceType} } );
|
||||
# ::Log3( $name, 2, "NUKIDevice ($name) - redefined Defmod" );
|
||||
# }
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
::Log3( $name, 4,
|
||||
|
Loading…
Reference in New Issue
Block a user