change package name
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Developed with Kate
|
# Developed with Kate
|
||||||
#
|
#
|
||||||
# (c) 2017-2018 Copyright: Marko Oldenburg (leongaultier at gmail dot com)
|
# (c) 2017-2019 Copyright: Marko Oldenburg (leongaultier at gmail dot com)
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
#
|
#
|
||||||
# Special thanks goes to comitters:
|
# Special thanks goes to comitters:
|
||||||
@ -66,19 +66,19 @@ sub GardenaSmartBridge_Initialize($) {
|
|||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
|
|
||||||
# Provider
|
# Provider
|
||||||
$hash->{WriteFn} = "GardenaSmartBridge::Write";
|
$hash->{WriteFn} = "FHEM::GardenaSmartBridge::Write";
|
||||||
$hash->{Clients} = ":GardenaSmartDevice:";
|
$hash->{Clients} = ":GardenaSmartDevice:";
|
||||||
$hash->{MatchList} = { "1:GardenaSmartDevice" => '^{"id":".*' };
|
$hash->{MatchList} = { "1:GardenaSmartDevice" => '^{"id":".*' };
|
||||||
|
|
||||||
# Consumer
|
# Consumer
|
||||||
$hash->{SetFn} = "GardenaSmartBridge::Set";
|
$hash->{SetFn} = "FHEM::GardenaSmartBridge::Set";
|
||||||
$hash->{DefFn} = "GardenaSmartBridge::Define";
|
$hash->{DefFn} = "FHEM::GardenaSmartBridge::Define";
|
||||||
$hash->{UndefFn} = "GardenaSmartBridge::Undef";
|
$hash->{UndefFn} = "FHEM::GardenaSmartBridge::Undef";
|
||||||
$hash->{DeleteFn} = "GardenaSmartBridge::Delete";
|
$hash->{DeleteFn} = "FHEM::GardenaSmartBridge::Delete";
|
||||||
$hash->{RenameFn} = "GardenaSmartBridge::Rename";
|
$hash->{RenameFn} = "FHEM::GardenaSmartBridge::Rename";
|
||||||
$hash->{NotifyFn} = "GardenaSmartBridge::Notify";
|
$hash->{NotifyFn} = "FHEM::GardenaSmartBridge::Notify";
|
||||||
|
|
||||||
$hash->{AttrFn} = "GardenaSmartBridge::Attr";
|
$hash->{AttrFn} = "FHEM::GardenaSmartBridge::Attr";
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
"debugJSON:0,1 "
|
"debugJSON:0,1 "
|
||||||
. "disable:1 "
|
. "disable:1 "
|
||||||
@ -94,7 +94,7 @@ sub GardenaSmartBridge_Initialize($) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
package GardenaSmartBridge;
|
package FHEM::GardenaSmartBridge;
|
||||||
use GPUtils qw(GP_Import)
|
use GPUtils qw(GP_Import)
|
||||||
; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt
|
; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Developed with Kate
|
# Developed with Kate
|
||||||
#
|
#
|
||||||
# (c) 2017-2018 Copyright: Marko Oldenburg (leongaultier at gmail dot com)
|
# (c) 2017-2019 Copyright: Marko Oldenburg (leongaultier at gmail dot com)
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
#
|
#
|
||||||
# Special thanks goes to comitters:
|
# Special thanks goes to comitters:
|
||||||
@ -66,12 +66,12 @@ sub GardenaSmartDevice_Initialize($) {
|
|||||||
|
|
||||||
$hash->{Match} = '^{"id":".*';
|
$hash->{Match} = '^{"id":".*';
|
||||||
|
|
||||||
$hash->{SetFn} = "GardenaSmartDevice::Set";
|
$hash->{SetFn} = "FHEM::GardenaSmartDevice::Set";
|
||||||
$hash->{DefFn} = "GardenaSmartDevice::Define";
|
$hash->{DefFn} = "FHEM::GardenaSmartDevice::Define";
|
||||||
$hash->{UndefFn} = "GardenaSmartDevice::Undef";
|
$hash->{UndefFn} = "FHEM::GardenaSmartDevice::Undef";
|
||||||
$hash->{ParseFn} = "GardenaSmartDevice::Parse";
|
$hash->{ParseFn} = "FHEM::GardenaSmartDevice::Parse";
|
||||||
|
|
||||||
$hash->{AttrFn} = "GardenaSmartDevice::Attr";
|
$hash->{AttrFn} = "FHEM::GardenaSmartDevice::Attr";
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
"readingValueLanguage:de,en "
|
"readingValueLanguage:de,en "
|
||||||
. "model:watering_computer,sensor,mower,ic24,power "
|
. "model:watering_computer,sensor,mower,ic24,power "
|
||||||
@ -86,7 +86,7 @@ sub GardenaSmartDevice_Initialize($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
## unserer packagename
|
## unserer packagename
|
||||||
package GardenaSmartDevice;
|
package FHEM::GardenaSmartDevice;
|
||||||
|
|
||||||
use GPUtils qw(GP_Import)
|
use GPUtils qw(GP_Import)
|
||||||
; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt
|
; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt
|
||||||
|
Reference in New Issue
Block a user