export object variable

This commit is contained in:
Marko Oldenburg 2022-01-02 07:13:04 +01:00
parent 35a4f60a53
commit 842e41e3dc
4 changed files with 12 additions and 8 deletions

View File

@ -1,11 +1,11 @@
UPD 2022-01-01_20:15:38 115601 FHEM/73_AutoShuttersControl.pm
UPD 2022-01-02_06:41:53 75212 lib/FHEM/Automation/ShuttersControl.pm
UPD 2022-01-02_07:04:23 75300 lib/FHEM/Automation/ShuttersControl.pm
UPD 2022-01-02_06:39:39 2691 lib/FHEM/Automation/ShuttersControl/Dev.pm
UPD 2022-01-02_06:34:39 2677 lib/FHEM/Automation/ShuttersControl/Roommate.pm
UPD 2022-01-02_06:41:11 32018 lib/FHEM/Automation/ShuttersControl/Shutters.pm
UPD 2022-01-02_07:04:24 32028 lib/FHEM/Automation/ShuttersControl/Shutters.pm
UPD 2022-01-02_06:37:09 25452 lib/FHEM/Automation/ShuttersControl/Shading.pm
UPD 2022-01-02_06:36:31 112122 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm
UPD 2022-01-02_06:34:28 40322 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2022-01-02_07:04:20 40382 lib/FHEM/Automation/ShuttersControl/Helper.pm
UPD 2022-01-02_06:41:32 2209 lib/FHEM/Automation/ShuttersControl/Window.pm
UPD 2022-01-01_20:15:38 11706 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm
UPD 2022-01-01_20:15:38 7265 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm

View File

@ -139,6 +139,12 @@ eval {
## Import der FHEM Funktionen
#-- Run before package compilation
BEGIN {
## 2 Objekte werden erstellt
our $shutters = FHEM::Automation::ShuttersControl::Shutters->new();
our $ascDev = FHEM::Automation::ShuttersControl::Dev->new();
use Exporter qw(import);
our @EXPORT_OK = qw / $shutters $ascDev /;
# Import from main context
GP_Import(
@ -269,10 +275,6 @@ my %posSetCmds = (
EnOcean => 'position',
);
## 2 Objekte werden erstellt
our $shutters = FHEM::Automation::ShuttersControl::Shutters->new();
our $ascDev = FHEM::Automation::ShuttersControl::Dev->new();
sub ascAPIget {
my $getCommand = shift;
my $shutterDev = shift;

View File

@ -88,6 +88,8 @@ our %EXPORT_TAGS = (
],
);
use FHEM::Automation::ShuttersControl '$shutters $ascDev';
use GPUtils qw(GP_Import);
## Import der FHEM Funktionen
BEGIN {

View File

@ -51,7 +51,7 @@ use utf8;
use FHEM::Automation::ShuttersControl::Shutters::Readings;
use FHEM::Automation::ShuttersControl::Shutters::Attr;
use FHEM::Automation::ShuttersControl::Roommate;
use FHEM::Automation::ShuttersControl::Roommate qw (:ALL);
use FHEM::Automation::ShuttersControl::Window;
use base