[AMADNG] AMAD 4.2 The Next Generation of AMAD with Tasker Support

Begonnen von CoolTux, 25 Mai 2017, 18:24:49

Vorheriges Thema - Nächstes Thema

Amenophis86

Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...

birdy

Zitat von: CoolTux am 24 März 2018, 17:01:58
Hast Du fhem Mal neu gestartet? Kann mir gerade nicht erklären wieso der das als unbekannten Code sieht.

FHEM neu gestartet und jetzt läuft es wieder. Danke für diesen Hinweis.

Muss ich jetzt jedes mal FHEM neu starten wenn zwischen Handy und FHEM die Verbindung verloren gegangen ist?
Seit Tagen kämpfe ich  mit solchen Problemen, das Wiederherstellen der Verbindung ist jedes mal äusserst problematisch und umständlich.
Die alte Version ist über Wochen und Monate stabil gelaufen.
FHEM  @Debian bullseye @Proxmox VE 8.4.1
GMKtec mit AMD Ryzen 7 5700U
CUL 433(a-culfw), CUL 868(SlowRF), Max-Cube CUN geflash, HM-CFG-USB-2 (HMALND)

CoolTux

Eigentlich solltest Du da gar nichts machen müssen. Bei mir laufen 7 Geräte manchmal 1,5 Monate ohne Neustart. Müssen wir beobachten. Melde Dich wenn wieder was ist.
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

birdy

Zitat von: CoolTux am 24 März 2018, 20:30:06
Eigentlich solltest Du da gar nichts machen müssen.

Soeben das Hand neu gestartet. Die Flows "Informations" und "SetCommands" bleiben inaktiv, auch wen die Verbindung mit dem WLAN schon lange wieder steh. Die Flows muss ich jedes mal wieder manuell starten. Dieses mal keine weiteren Probleme, Handy und FHEM haben sich problemlos verbunden.
FHEM  @Debian bullseye @Proxmox VE 8.4.1
GMKtec mit AMD Ryzen 7 5700U
CUL 433(a-culfw), CUL 868(SlowRF), Max-Cube CUN geflash, HM-CFG-USB-2 (HMALND)

CoolTux

Zitat von: CoolTux am 23 März 2018, 22:24:32
Ich behalte es mal im Hinterkopf   ;D

Zitat von: Schlimbo am 23 März 2018, 21:45:56
Hi Leon,
hast du das noch auf dem Schirm?

Würde mir auch noch einen "TakeScreenshot" Befehl wünschen, was hältst du davon?

Mahlzeit,

Ich habe alles soweit umgesetzt. Ich würde heute Abend die neue Version ins Git laden und würde Dich bitten die Sache mit den mediaPlayern mal zu testen. Also play stop und so und ob die Media Readings stimmen.
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

Ok, mir viel gerade ein das ich das neue Flowset ja bereits online hatte.
Es steht nun also im Git die neue Version bereit. Wer mag bitte einmal testen. Hinzugekommen ist
Zitat von: Schlimbo am 25 Februar 2018, 00:38:09
Und könntest du Bitte für mediaButton Control die Apps "Poweramp" und "MXPlayerPro" mit aufnehmen?

Poweramp
com.maxmpz.audioplayer
com.maxmpz.audioplayer.player.PlayerMediaButtonReceiver


MXPlayerPro
com.mxtech.videoplayer.pro
com.mxtech.videoplayer.MediaButtonReceiver


Sowie die Möglichkeit einen Screenshot zu machen.
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

Schlimbo

vielen Dank, funktioniert mit Tasker wie gewünscht  :)
...mit Automagic konnte ich leider noch nicht testen.

CoolTux

Na vielleicht mag mal einer der anderen testen. Ansonsten kann ich es auch einstellen, geht ja nichts kaputt.
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

Neue Version morgen per FHEM update


  • add support to set and read Adaptive brightness
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

basty2

Beim Tasker funktioniert es bei mir. Bei Automagic kommt folgender Fehler: Flow SetCommands mit Fehler beendet Fehler: Die Einstellungen wurden noch nicht überprüft. Bitte überprüfe die Einstellungen zuerst. Last executed: Action Setze Systemeinstellung: System screen_brightness_mode auf {param_brightnessmode}
.
Leider aktualsiert sich der Brightness Wert beim adaptiven Mode nicht.

CoolTux

Gehe bitte mal in Automagic in den Flow SetCommand und schaue ob da was steht.
Wenn nicht
Einstellungen --> Allgemein hacken setzen bei Einstellungen Bestätigen unterdrücken
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

basty2

Hi. Ich bekomme eine liste von errors. fängt an mit ch.gridvision.ppam.androidautomagic.c.a.fn.a(sourceFile:161).
Haken habe ich gesetzt, leider keine Änderung.

CoolTux

Da bräuchte ich bitte mehr. Aktiviere mal für Automagic das Log. Welche Androidversion
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

swsmily

Zitat von: CoolTux am 07 April 2018, 20:25:57
Gehe bitte mal in Automagic in den Flow SetCommand und schaue ob da was steht.
Wenn nicht
Einstellungen --> Allgemein hacken setzen bei Einstellungen Bestätigen unterdrücken

Auch mit diesem Haken kommt bei mir beim Setzen von screenBrightnessMode die Fehlermeldung:
Flow SetCommands mit Fehler beendet Fehler: Die Einstellungen wurden noch nicht überprüft. Bitte überprüfe die Einstellungen zuerst. Last executed: Action Setze Systemeinstellung: System screen_brightness_mode auf {param_brightnessmode}

basty2

#1154
Ist Android 7.1.2.
Hoffe das reicht aus dem log...

08.04.2018 01:37:20.575 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "setreading"' with return value true
08.04.2018 01:37:20.576 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "set"' with return value false
08.04.2018 01:37:20.576 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "readingsval"' with return value false
08.04.2018 01:37:20.576 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "voiceinputvalue"' with return value false
08.04.2018 01:37:20.577 [Send Data to AMADCommBridge] End executing condition 'Expression: amadcmd == "firstrun"' with return value false
08.04.2018 01:37:20.577 [Send Data to AMADCommBridge] End executing condition 'Expression: trigger == "WLAN Verbunden: toGo"' with return value false
08.04.2018 01:37:20.578 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "fhemfunc"' with return value false
08.04.2018 01:37:20.578 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "setreading"' with return value true
08.04.2018 01:37:20.578 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "set"' with return value false
08.04.2018 01:37:20.579 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "readingsval"' with return value false
08.04.2018 01:37:20.579 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "voiceinputvalue"' with return value false
08.04.2018 01:37:20.580 [Send Data to AMADCommBridge] End executing condition 'Expression: amadcmd == "firstrun"' with return value false
08.04.2018 01:37:20.580 [Send Data to AMADCommBridge] End executing condition 'Expression: trigger == "WLAN Verbunden: toGo"' with return value false
08.04.2018 01:37:20.581 [Send Data to AMADCommBridge] End executing condition 'Expression: fhemcmd == "fhemfunc"' with return value false
08.04.2018 01:37:20.581 [Send Data to AMADCommBridge] Flow continues executing with the next step.
08.04.2018 01:37:20.582 [Send Data to AMADCommBridge] Start executing action 'Script: Set FHEMDATA JSON'
08.04.2018 01:37:20.582 Queue contains 70 workerInfos
08.04.2018 01:37:20.583 [Send Data to AMADCommBridge] Flow continues executing with the next step.
08.04.2018 01:37:20.583 [Send Data to AMADCommBridge] Start executing action 'Script: Set FHEMDATA JSON'
08.04.2018 01:37:20.584 Queue contains 71 workerInfos
08.04.2018 01:37:20.597 Global Variables saved.
08.04.2018 01:37:20.628 [Send Data to AMADCommBridge] End executing action 'Script: Set FHEMDATA JSON'
08.04.2018 01:37:20.629 [Send Data to AMADCommBridge] Flow continues executing with the next step.
08.04.2018 01:37:20.629 [Send Data to AMADCommBridge] Start executing action 'HTTP Request: send READINGS data to AMADCommBridge JSON'
08.04.2018 01:37:20.631 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' url = http://xxxx:8090
08.04.2018 01:37:20.631 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' contentType = application/json
08.04.2018 01:37:20.634 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' generalTextData = {"amad": {"amad_id": "xxxx","fhemcmd": "setreading"},"payload": { "flowsetVersionAtDevice": "4.2.2","automagicState": "Flow SetCommands mit Fehler beendet Fehler: Die Einstellungen wurden noch nicht überprüft. Bitte überprüfe die Einstellungen zuerst.  Last executed: Action Setze Systemeinstellung: System screen_brightness_mode auf {param_brightnessmode} "}}
08.04.2018 01:37:20.634 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' variable = respsetreading
08.04.2018 01:37:20.635 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' customHTTPHeaders = Connection: close
08.04.2018 01:37:20.655 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' URL data fetched successfully.
08.04.2018 01:37:20.656 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Connection=close
08.04.2018 01:37:20.656 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Content-Length=76
08.04.2018 01:37:20.656 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Content-Type=text/plain
08.04.2018 01:37:20.656 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Received-Millis=1523144240654
08.04.2018 01:37:20.657 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Response-Source=NETWORK 200
08.04.2018 01:37:20.657 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Selected-Protocol=http/1.1
08.04.2018 01:37:20.657 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Sent-Millis=1523144240643
08.04.2018 01:37:20.658 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge JSON'
08.04.2018 01:37:20.658 [Send Data to AMADCommBridge] Flow ended.
08.04.2018 01:37:20.658 Flows need not to be saved
08.04.2018 01:37:20.662 Widgets need not to be saved
08.04.2018 01:37:20.666 Execution context release
08.04.2018 01:37:20.667 Disposing execution context
08.04.2018 01:37:20.668 Removed wake lock tracker [Send Data to AMADCommBridge]
08.04.2018 01:37:20.668 Releasing wake lock tracker [Send Data to AMADCommBridge]
08.04.2018 01:37:20.669 [Send Data to AMADCommBridge] End executing action 'Script: Set FHEMDATA JSON'
08.04.2018 01:37:20.669 [Send Data to AMADCommBridge] Flow continues executing with the next step.
08.04.2018 01:37:20.670 [Send Data to AMADCommBridge] Start executing action 'HTTP Request: send READINGS data to AMADCommBridge JSON'
08.04.2018 01:37:20.671 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' url = http://xxxx:8090
08.04.2018 01:37:20.671 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' contentType = application/json
08.04.2018 01:37:20.671 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' generalTextData = {"amad": {"amad_id": "xxxx","fhemcmd": "setreading"},"payload": { "flowsetVersionAtDevice": "4.2.2","checkActiveTask": "0"}}
08.04.2018 01:37:20.672 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' variable = respsetreading
08.04.2018 01:37:20.673 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' customHTTPHeaders = Connection: close
08.04.2018 01:37:20.691 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' URL data fetched successfully.
08.04.2018 01:37:20.691 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Connection=close
08.04.2018 01:37:20.692 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Content-Length=76
08.04.2018 01:37:20.692 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header Content-Type=text/plain
08.04.2018 01:37:20.692 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Received-Millis=1523144240690
08.04.2018 01:37:20.692 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Response-Source=NETWORK 200
08.04.2018 01:37:20.692 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Selected-Protocol=http/1.1
08.04.2018 01:37:20.693 [Send Data to AMADCommBridge] Action 'HTTP Request: send READINGS data to AMADCommBridge JSON' Header X-Android-Sent-Millis=1523144240681
08.04.2018 01:37:20.693 [Send Data to AMADCommBridge] End executing action 'HTTP Request: send READINGS data to AMADCommBridge JSON'
08.04.2018 01:37:20.693 [Send Data to AMADCommBridge] Flow ended.
08.04.2018 01:37:20.694 Flows need not to be saved
08.04.2018 01:37:20.697 Widgets need not to be saved
08.04.2018 01:37:20.702 Execution context release
08.04.2018 01:37:20.702 Disposing execution context
08.04.2018 01:37:20.703 Global Variables saved.
08.04.2018 01:37:20.704 Removed wake lock tracker [Send Data to AMADCommBridge]
08.04.2018 01:37:20.704 Releasing wake lock tracker [Send Data to AMADCommBridge]
08.04.2018 01:37:20.814 Running activity (classic): ch.gridvision.ppam.androidautomagic/.logging.LogActivity
08.04.2018 01:37:20.816 AccessibilityService detected a notification screen event: EventType: TYPE_NOTIFICATION_STATE_CHANGED; EventTime: 445376253; PackageName: ch.gridvision.ppam.androidautomagic; MovementGranularity: 0; Action: 0 [ ClassName: android.widget.Toast$TN; Text: [Autoscroll ist ein]; ContentDescription: null; ItemCount: -1; CurrentItemIndex: -1; IsEnabled: false; IsPassword: false; IsChecked: false; IsFullScreen: false; Scrollable: false; BeforeText: null; FromIndex: -1; ToIndex: -1; ScrollX: -1; ScrollY: -1; MaxScrollX: -1; MaxScrollY: -1; AddedCount: -1; RemovedCount: -1; ParcelableData: null ]; recordCount: 0
08.04.2018 01:37:20.822 Service received action ch.gridvision.ppam.androidautomagic.intent.action.TRIGGER_NOTIFICATION_SCREEN_DISPLAYED
08.04.2018 01:37:20.832 Global Variables saved.



EDIT: Nachdem Automagic abgestürzt ist und sich neu gestartet hatte, funktioniert es nun... :)