- connect 0|1
- If set to 1, a connection to the Android device will be established during
- FHEM start. Note: Set this attribute for one Android device only!
+ If set to 1, a connection to the Android device will be established during
+ FHEM start. Note: Set this attribute for one Android device only!
-
- - macros <MacroDef>[;...]
- Define a list of keycode macros to be sent to an Android device with 'remoteControl'
- command or define shortcuts for remote commands.
- A 'MacroDef' is using the following syntax:
- MacroName:KeyCode[,...]
- or
- MacroName:Command
- Parameter Command is a adb command.
- Example, define a command 'set listpackages':
- attr myDev macros listpackages:shell pm list packages -f
- Several macro definitions can be specified by seperating them using a semicolon.
-
-
- - preset <PresetName>
- Select a preset of keycode macros.
-
-
- - presetFile <Filename>
- Load a set of macros from a preset defintion file.
- If the same macro name is defined in the selected
- preset and in attribute 'macros', the definition in the 'macros' attribute overwrites
- the definition in the preset.
- A preset defintion file is using the following format:
-
- # Comment
- PresetName1
- MacroDef1
- MacroDef2
- ...
- PresetName2
- ...
-
- A 'MacroDef' is using the following syntax:
- MacroName:KeyCode[,...]
- or
- MacroName:Command:Parameters
- Usually Command is 'shell'.
-
+
+ - macros <MacroDef>[;...]
+ Define a list of keycode macros to be sent to an Android device with 'remoteControl'
+ command or define shortcuts for remote commands.
+ A 'MacroDef' is using the following syntax:
+ MacroName:KeyCode[,...]
+ or
+ MacroName:Command
+ Parameter Command is a adb command.
+ Example, define a command 'set listpackages':
+ attr myDev macros listpackages:shell pm list packages -f
+ Several macro definitions can be specified by seperating them using a semicolon.
+
+
+ - preset <PresetName>
+ Select a preset of keycode macros.
+
+
+ - presetFile <Filename>
+ Load a set of macros from a preset defintion file.
+ If the same macro name is defined in the selected
+ preset and in attribute 'macros', the definition in the 'macros' attribute overwrites
+ the definition in the preset.
+ A preset defintion file is using the following format:
+
+ # Comment
+ PresetName1
+ MacroDef1
+ MacroDef2
+ ...
+ PresetName2
+ ...
+
+ A 'MacroDef' is using the following syntax:
+ MacroName:KeyCode[,...]
+ or
+ MacroName:Command:Parameters
+ Usually Command is 'shell'.
+
=end html
diff --git a/fhem/FHEM/89_AndroidDBHost.pm b/fhem/FHEM/89_AndroidDBHost.pm
index 0481b9118..dd476a445 100644
--- a/fhem/FHEM/89_AndroidDBHost.pm
+++ b/fhem/FHEM/89_AndroidDBHost.pm
@@ -4,7 +4,7 @@
#
# 89_AndroidDBHost
#
-# Version 0.6
+# Version 0.7
#
# FHEM Integration for Android Debug Bridge
#
@@ -23,6 +23,7 @@ package main;
use strict;
use warnings;
+use SetExtensions;
sub AndroidDBHost_Initialize ($)
{
@@ -35,18 +36,18 @@ sub AndroidDBHost_Initialize ($)
$hash->{NotifyFn} = "AndroidDBHost::Notify";
$hash->{ShutdownFn} = "AndroidDBHost::Shutdown";
- $hash->{parseParams} = 1;
+ $hash->{parseParams} = 1;
}
package AndroidDBHost;
use strict;
use warnings;
+use SetExtensions;
# use Data::Dumper;
use IPC::Open3;
-use SetExtensions;
# use POSIX;
use GPUtils qw(:all);
@@ -58,7 +59,7 @@ BEGIN {
readingsBulkUpdateIfChanged
readingsBeginUpdate
readingsEndUpdate
- devspec2array
+ devspec2array
Log3
AttrVal
ReadingsVal