[ AMAD2 - obsolete] 74_AMAD.pm zur Steuerung eines Androidgerätes

Begonnen von CoolTux, 02 März 2016, 11:14:41

Vorheriges Thema - Nächstes Thema

CoolTux

#615
Zitat von: michael.winkler am 15 Juni 2016, 17:53:20
Hallo,

ich habe das gleich Problem wie "lulatsch66". Ich verwende zum testen gerade ein Android 4.0.4 auch hier ist im Log folgendes zu sehen:


11.06.2016 15:01:17.057 [SetCommands] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
11.06.2016 15:01:17.060 [SetCommands] Flow ended.
11.06.2016 15:01:17.083 [Informations] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
11.06.2016 15:01:17.084 [Informations] Flow ends execution due to errors
11.06.2016 15:01:17.085 [Informations] Error:
ch.gridvision.ppam.androidautomagiclib.util.p: Condition funktioniert nicht vor Android Version 4.1 (Jelly Bean, API 16)
at ch.gridvision.ppam.androidautomagic.c.b.aw.a(SourceFile:70)
at ch.gridvision.ppam.androidautomagic.c.c.e.a(SourceFile:661)
at ch.gridvision.ppam.androidautomagic.c.c.e.b(SourceFile:975)
at ch.gridvision.ppam.androidautomagic.c.c.e.a(SourceFile:62)
at ch.gridvision.ppam.androidautomagic.c.c.e$1.run(SourceFile:784)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)


Bist Du hier schon etwas weitergekommen?

Guten Morgen,

Hier schlägt wohl eine Condition zu welche erst ab einer bestimmten Version zur Verfügung steht. Ich werde mal schauen welche das wohl sein kann.



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Mitte gehe einmal in den Informationsflow ganz ganz nach Links und entferne die Verbindung zur Expression "Trigger == Unterbrechungen Modus".
Vielleicht ist es das dann schon.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

michael.winkler

ich tue mir da etwas schwer. Wenn ich mir den Trigger anschaue sehe ich oben nein und unten kommen mehrere Weg zu diesem Trigger. Welche von den Verbindungen muss ich entfernen?

CoolTux

Du musst nicht zum Trigger sondern zur Expression welche den Trigger ab ruft.
Anbei ein Bild. Auf der Linie wo die 3 Pun kte sind und der Pfeil hinzeigt diese Linie musst Du versuchen zu treffen, zur not ziehe die Expression ruhig irgendwo ganz zur Seite und dann etwas runter dann kannst Du auch die Linie treffen. Das ganze muß zweimal gemacht werden. Da 2 Linien.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

michael.winkler

danke für den Screenshot. Habe die zwei Leitungen entfernt. Leider habe ich im Log immer noch die Meldung. Ich habe das Log hier mal mit angehängt

CoolTux

Ich ahne schlimmes.
Bitte deaktiviere mal alle Flows, dann legen mal einen neuen Flow an, Trigger ist nicht nötig, und ziehe von dem Rechteck mit den runden Kanten das plus nach unten und wähle condition, dann nimmst du aus der vorhanden liste die condition wlan verbunden {global_apsssid}

wenn Du das gemacht hast wählst du aus dem menü des flows ausführen aus.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

michael.winkler

Hab ich gemacht. Beim Ausführen wird es kurz rot und im Log Steht folgendes:


17.06.2016 11:03:17.400 Execution context acquire
17.06.2016 11:03:17.408 [Flow1] Starting to execute flow 'Flow1' with Context{global{},local{flow_name=Flow1,triggertime=1466154197400,trigger=Manual}}
17.06.2016 11:03:17.411 [Flow1] Start executing condition 'WLAN Verbunden: {global_apssid}'
17.06.2016 11:03:18.433 Condition 'WLAN Verbunden: {global_apssid}' SSID matches = false
17.06.2016 11:03:18.437 [Flow1] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
17.06.2016 11:03:18.451 [Flow1] Flow ended.
17.06.2016 11:03:18.454 Flows need not to be saved
17.06.2016 11:03:18.462 Widgets need not to be saved
17.06.2016 11:03:18.467 Execution context release
17.06.2016 11:03:18.468 Disposing execution context
17.06.2016 11:03:18.471 Removed wake lock tracker [Flow1]
17.06.2016 11:03:18.474 Releasing wake lock tracker [Flow1]
17.06.2016 11:03:18.500 Global Variables saved.
17.06.2016 11:03:20.756 Flows need not to be saved
17.06.2016 11:03:20.986 Trim memory with level 20
17.06.2016 11:05:50.925 Service received action

CoolTux

ok aber kein Fehler wie bei AMAD. So alla Condition only bla bla?

Wieso sagt das Teil eigentlich das WLan nicht verbunden ist? Ich lese bei jeder WLAN Verbunden Condition bei Dir ein false.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

michael.winkler

keine Ahnung. Das ist ein SurfTab breeze 7.0 von TrekStor, welches definitiv per WLAN angebunden ist. Software habe ich aktuell nur einen Dateiexplorer und die Automationssoftware drauf.

CoolTux

Ok lass uns mal testen. Mach mal folgendes. Bei dem Flow den Du testweise angelegt hast gehst Du auf die Condition und ziehst das plus nach unten, dann sagst du dort JA und wählst wieder Condition und zwar die Condition debug. dafür musst du eine neue condition anlegen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Pi_Newbie

Hallo zusammen,

beim durchlesen der Beiträge habe ich festgestellt, dass Spotify wohl über das AMAD2-Modul ansteuerbar ist. Kann mal bitte jemand ein Screenshot zeigen bzgl. der Integration in die TabletUi und wie er die Tonausgabe/Streaming realisiert hat?

Das wäre echt super! Mein Ziel ist es "Spotify" in der TabletUi zu sehen, gewünschte Playlist auszuwählen und das Audio dann an einen Denon AVR-1912/Sonos/Bose zu senden. Hier soll jedoch noch die Ausgabestelle auswählbar sein.

Vielen herzlichen Dank und beste Grüße,
Roman
Pi3 mit Jessie lite, KNX-Installation


CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

michael.winkler

ok, habe ich gemacht. Anbei das Log


17.06.2016 11:47:45.482 Execution context acquire
17.06.2016 11:47:45.486 [Flow1] Starting to execute flow 'Flow1' with Context{global{},local{flow_name=Flow1,triggertime=1466156865482,trigger=Manual}}
17.06.2016 11:47:45.490 [Flow1] Start executing condition 'WLAN Verbunden: {global_apssid}'
17.06.2016 11:47:46.505 Condition 'WLAN Verbunden: {global_apssid}' SSID matches = false
17.06.2016 11:47:46.519 [Flow1] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
17.06.2016 11:47:46.550 [Flow1] Flow ended.
17.06.2016 11:47:46.554 Flows need not to be saved
17.06.2016 11:47:46.562 Widgets need not to be saved
17.06.2016 11:47:46.566 Execution context release
17.06.2016 11:47:46.567 Disposing execution context
17.06.2016 11:47:46.571 Removed wake lock tracker [Flow1]
17.06.2016 11:47:46.572 Releasing wake lock tracker [Flow1]
17.06.2016 11:47:46.599 Global Variables saved.
17.06.2016 11:47:49.469 Flows need not to be saved
17.06.2016 11:47:50.427 Trim memory with level 20
17.06.2016 11:48:23.359 Execution context acquire
17.06.2016 11:48:23.363 [Flow1] Starting to execute flow 'Flow1' with Context{global{},local{flow_name=Flow1,triggertime=1466156903359,trigger=Manual}}
17.06.2016 11:48:23.367 [Flow1] Start executing condition 'WLAN Verbunden: {global_apssid}'
17.06.2016 11:48:24.384 Condition 'WLAN Verbunden: {global_apssid}' SSID matches = false
17.06.2016 11:48:24.397 [Flow1] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
17.06.2016 11:48:24.429 [Flow1] Flow continues executing with the next step.
17.06.2016 11:48:24.434 [Flow1] Start executing condition 'Debug Dialog'
17.06.2016 11:48:24.812 Flow data written
17.06.2016 11:48:24.841 Flows saved
17.06.2016 11:48:24.842 d:
17.06.2016 11:48:24.849 176106, h: c34387fc7880d1db8b03a16cca673c4c0b545536
17.06.2016 11:48:24.872 Verification file updated
17.06.2016 11:48:24.874 Saved flows in 102 ms
17.06.2016 11:48:31.823 [Flow1] End executing condition 'Debug Dialog' with return value true
17.06.2016 11:48:31.878 [Flow1] Flow ended.
17.06.2016 11:48:31.882 Flows need not to be saved
17.06.2016 11:48:31.891 Widgets need not to be saved
17.06.2016 11:48:31.898 Execution context release
17.06.2016 11:48:31.900 Disposing execution context
17.06.2016 11:48:31.904 Removed wake lock tracker [Flow1]
17.06.2016 11:48:31.905 Releasing wake lock tracker [Flow1]
17.06.2016 11:48:31.963 Global Variables saved.
17.06.2016 11:48:59.983 Execution context acquire
17.06.2016 11:48:59.987 [Flow1] Starting to execute flow 'Flow1' with Context{global{},local{flow_name=Flow1,triggertime=1466156939983,trigger=Manual}}
17.06.2016 11:48:59.991 [Flow1] Start executing condition 'WLAN Verbunden: {global_apssid}'
17.06.2016 11:49:01.034 Condition 'WLAN Verbunden: {global_apssid}' SSID matches = false
17.06.2016 11:49:01.038 [Flow1] End executing condition 'WLAN Verbunden: {global_apssid}' with return value false
17.06.2016 11:49:01.059 [Flow1] Flow continues executing with the next step.
17.06.2016 11:49:01.064 [Flow1] Start executing condition 'Debug Dialog'
17.06.2016 11:49:02.168 Flow data written
17.06.2016 11:49:02.196 Flows saved
17.06.2016 11:49:02.198 d:
17.06.2016 11:49:02.210 176106, h: 46c81695283fcda102f03948979f8edb7b397462
17.06.2016 11:49:02.242 Verification file updated
17.06.2016 11:49:02.246 Saved flows in 884 ms
17.06.2016 11:51:27.963 [Flow1] End executing condition 'Debug Dialog' with return value false
17.06.2016 11:51:28.017 [Flow1] Flow ended.
17.06.2016 11:51:28.020 Flows need not to be saved
17.06.2016 11:51:28.026 Widgets need not to be saved
17.06.2016 11:51:28.033 Execution context release
17.06.2016 11:51:28.034 Disposing execution context
17.06.2016 11:51:28.082 Global Variables saved.
17.06.2016 11:51:28.136 Removed wake lock tracker [Flow1]
17.06.2016 11:51:28.138 Releasing wake lock tracker [Flow1]
17.06.2016 12:24:05.622 Flows need not to be saved
17.06.2016 12:24:06.151 Trim memory with level 20
17.06.2016 12:25:22.581 Service received action

CoolTux

Verstehe ich nicht. Du hast bei WLAN zu Dialog die Bedingung auf ja gesetzt? Ist das richtig? Irgendwie lese ich das die Condition mit false endet das bedeutet er dürfte dann gar nicht weiter machen wenn die Voraussetzung zum weiter machen true ist, also JA
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net