[ 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

Zitat von: Invers am 26 März 2016, 09:26:26
Auch guten Morgen.

2 Möglichkeiten hast Du
In FHEM in die Detail Liste des Handys gehen und vorbereitend in der set Auswahlliste den Punkt statusRequest auswählen. NOCH NICHT BESTÄTTIGEN. Auf dem Handy den Information Flow aktivieren und nun schnell den Request auslösen.

In Automagic unter Verwalten -> globale Variablen eine neue globale Variable definieren. Name global_bridgeport mit dem Wert 8090.


Dankedir, das hat funktioniert, wobei die Variable nicht angelegt werden musste, sondern bereits existiert.

Mein s5 läuft nun also.

Verdammt hast recht. Da habe ich nicht aufgepasst. Ich werde das heute noch korrigieren und dann neu einstellen.

Mit dem anderen Geräten warte ich nun bis dahin.

Nochmals vielen Dank für die Hilfe.

Habe ich heute Morgen neu eingestellt. Passt also jetzt
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

Invers

Pi3B+ mit SSD/ Bullseye | FB7590 AX | 12 x Dect200 | CUL433+868 | SDuino | HM-LAN | 3 x Heizung FHT + FKontakte | KeyMatic + 4 FB | HM Wandtaster 2-fach m. LED | 6 x Türkont. TFK-TI | HM-Bew.-Melder innen | 3 x Smoked. HM-SEC-SD-2

CoolTux

Kurz zur Info. Es gibt einige Probleme mit dem Weather Modul, Yahoo hat auf API Key umgestellt.
Da ich das recht dringend brauche konzentriere ich meine Ressourcen die nächsten Tage darauf das Modul Weather erstmal wieder lauffähig zu bekommen. Daher wird hier kurze Pause gemacht.


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

cotecmania

Hi,

nach einem Neustart von FHEM heute morgen nach Installation von Updates bleiben meine 2 AMAD-Tablets im state "initialized" stehen und gehen nicht auf active.
Das blieb auch nach 15 minuten noch so.
Ein Restart eines Tablets aenderte auch nichts.

Readings sind aber wohl aktuell. In diesem state kann man allerdings keine sets an AMAD absenden wie z.B. ttsMsg ...

Internals:
   DEF        192.168.1.227 FRITZ!BoxJo
   HOST       192.168.1.227
   INTERVAL   180
   NAME       AMAD_Iconia1
   NR         994
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSION    1.2.0
   Readings:
     2016-03-25 17:05:16   airplanemode    off
     2016-03-27 11:29:03   androidVersion  5.1 Lollipop MR1
     2016-03-27 11:29:05   automagicState  Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
     2016-03-27 11:29:04   bluetooth       on
     2016-03-27 11:17:05   checkActiveTask
     2016-03-27 11:29:04   connectedBTdevices
     2016-03-27 11:29:04   connectedBTdevicesMAC
     2016-03-27 11:29:04   currentMusicAlbum no soundplayer activ
     2016-03-27 11:29:04   currentMusicArtist no soundplayer activ
     2016-03-27 11:29:04   currentMusicTrack no soundplayer activ
     2016-03-27 11:14:02   deviceState     online
     2016-03-27 11:29:04   dockingState    undocked
     2016-03-27 11:17:05   flow_SetCommands aktiv
     2016-03-27 11:17:03   flow_informations aktiv
     2016-03-27 11:17:04   flowsetVersionAtDevice 1.9.61
     2016-03-27 11:29:04   keyguardSet     0
     2016-03-26 14:26:51   lastSetCommandState setCmd_error
     2016-03-27 11:29:40   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-27 11:29:40   lastStatusRequestState statusRequest_error
     2016-03-27 11:29:04   nextAlarmDay
     2016-03-27 11:29:04   nextAlarmTime
     2016-03-27 11:29:03   powerLevel      50.0
     2016-03-27 11:29:03   powerPlugged    0
     2016-03-27 11:29:07   screen          on unlocked
     2016-03-27 11:29:03   screenBrightness 188
     2016-03-27 11:29:05   screenOrientation landscape
     2016-03-27 11:29:05   screenOrientationMode manual
     2016-03-27 11:14:02   state           initialized
     2016-03-27 11:29:05   volume          15
     2016-03-27 11:29:03   volumeNotification 15
   Helper:
     infoErrorCounter 5
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Internals:
   BRIDGE     1
   CONNECTS   23
   FD         43
   NAME       AMADCommBridge
   NR         995
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSION    1.2.0
   Readings:
     2016-03-25 10:53:28   expertMode      1
     2016-03-25 10:52:39   fhemServerIP    192.168.1.150
     2016-03-27 11:14:02   state           opened
Attributes:
   room       Interfaces


Gruss
FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

cotecmania

Zitat von: cotecmania am 27 März 2016, 11:32:22
Hi,

nach einem Neustart von FHEM heute morgen nach Installation von Updates bleiben meine 2 AMAD-Tablets im state "initialized" stehen und gehen nicht auf active.
Das blieb auch nach 15 minuten noch so.
Ein Restart eines Tablets aenderte auch nichts.

Readings sind aber wohl aktuell. In diesem state kann man allerdings keine sets an AMAD absenden wie z.B. ttsMsg ...

Internals:
   DEF        192.168.1.227 FRITZ!BoxJo
   HOST       192.168.1.227
   INTERVAL   180
   NAME       AMAD_Iconia1
   NR         994
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSION    1.2.0
   Readings:
     2016-03-25 17:05:16   airplanemode    off
     2016-03-27 11:29:03   androidVersion  5.1 Lollipop MR1
     2016-03-27 11:29:05   automagicState  Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
     2016-03-27 11:29:04   bluetooth       on
     2016-03-27 11:17:05   checkActiveTask
     2016-03-27 11:29:04   connectedBTdevices
     2016-03-27 11:29:04   connectedBTdevicesMAC
     2016-03-27 11:29:04   currentMusicAlbum no soundplayer activ
     2016-03-27 11:29:04   currentMusicArtist no soundplayer activ
     2016-03-27 11:29:04   currentMusicTrack no soundplayer activ
     2016-03-27 11:14:02   deviceState     online
     2016-03-27 11:29:04   dockingState    undocked
     2016-03-27 11:17:05   flow_SetCommands aktiv
     2016-03-27 11:17:03   flow_informations aktiv
     2016-03-27 11:17:04   flowsetVersionAtDevice 1.9.61
     2016-03-27 11:29:04   keyguardSet     0
     2016-03-26 14:26:51   lastSetCommandState setCmd_error
     2016-03-27 11:29:40   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-27 11:29:40   lastStatusRequestState statusRequest_error
     2016-03-27 11:29:04   nextAlarmDay
     2016-03-27 11:29:04   nextAlarmTime
     2016-03-27 11:29:03   powerLevel      50.0
     2016-03-27 11:29:03   powerPlugged    0
     2016-03-27 11:29:07   screen          on unlocked
     2016-03-27 11:29:03   screenBrightness 188
     2016-03-27 11:29:05   screenOrientation landscape
     2016-03-27 11:29:05   screenOrientationMode manual
     2016-03-27 11:14:02   state           initialized
     2016-03-27 11:29:05   volume          15
     2016-03-27 11:29:03   volumeNotification 15
   Helper:
     infoErrorCounter 5
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Internals:
   BRIDGE     1
   CONNECTS   23
   FD         43
   NAME       AMADCommBridge
   NR         995
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSION    1.2.0
   Readings:
     2016-03-25 10:53:28   expertMode      1
     2016-03-25 10:52:39   fhemServerIP    192.168.1.150
     2016-03-27 11:14:02   state           opened
Attributes:
   room       Interfaces


EDIT : Uuups. Wieso habe ich wieder Version 1.2 ???

Gruss
FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

cotecmania

Das Update hat mich wohl wieder auf Version 1.2 zurück gesetzt.
Nachdem ich die neue Version wieder aktiviert hatte, war mein Neues Tablet active.
Das mit Android 4.2.2 nicht. Meldete den Fehler
"Trigger funktioniert nicht vor Android Version 4.3 (Jelly Bean, API 18)"

Erst nachdem ich den Fehler quitiierte, ging auch dieses auf active ...

Gruss
FHEM auf RaspberryPI B (buster)
2xCUL868 für MAX/Slow_RF, HM-LAN, JeeLink
MAX!/HM-Thermostate, FS20/HM-Rolladenschalter, FS20-EM, LevelJet-Ölstandsmessung, PCA301, IT, KM271, IPCAM, FireTAB10 FTUI

hyper2910

Hi,

die 74_AMADautomagicFlowset_1.9.67.xml wirft bei mir immer Fehler, die 74_AMADautomagicFlowset_1.9.61.xml läuft einwandfrei
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

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

hyper2910

Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

CoolTux

Das war die richtige Antwort. Ich danke Dir  ;D
Wird sicher was mit meinem Variablentest zu tu haben.
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

hyper2910

Hier das log


Informations] End executing action 'Script: amad_flowset_version = "1.9.67"'
28.03.2016 20:24:06.990 [Informations] End executing condition 'Expression: trigger == "Eingehender Anruf. Status: Klingelt, Nummern: Alle"' with return value false
28.03.2016 20:24:06.990 [Informations] End executing condition 'Expression: trigger == "Benachrichtigung in Statusbar angezeigt: com.whatsapp"' with return value false
28.03.2016 20:24:06.991 [Informations] Emergency stop count reached, disabling flow and current flow execution
28.03.2016 20:24:07.109 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.109 [Informations] End executing action 'Script: setCommandFlow_state = "aktiv"'
28.03.2016 20:24:07.116 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.117 [Informations] Action 'Flowsetversion'
java.net.MalformedURLException: java.lang.IllegalArgumentException: invalid port: -1
at java.net.URL.<init>(URL.java:190)
at java.net.URL.<init>(URL.java:125)
at ch.gridvision.ppam.androidautomagic.c.a.bv$1.d(SourceFile:322)
at ch.gridvision.ppam.androidautomagic.c.a.bv$1.a(SourceFile:290)
at ch.gridvision.ppam.androidautomagiclib.util.dj$1.run(SourceFile:39)
at java.lang.Thread.run(Thread.java:818)

28.03.2016 20:24:07.117 [Informations] End executing action 'Flowsetversion' and exception java.lang.IllegalArgumentException: invalid port: -1
28.03.2016 20:24:07.122 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.122 [Informations] End executing condition 'Expression: getAndroidSDKVersion() >= "19"' with return value true
28.03.2016 20:24:07.124 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.125 [Informations] End executing action 'Script: runTask = "null"'
28.03.2016 20:24:07.127 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.170 [Informations] End executing action 'Script: connected_devices_names = "null"; connected_devices_addresses = "null"'
28.03.2016 20:24:07.171 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.599 [Informations] End executing condition 'WLAN Verbunden: {global_apssid}' with return value true
28.03.2016 20:24:07.604 [Informations] Emergency stop reached, stopping flow execution
28.03.2016 20:24:07.691 [Informations] End executing condition 'WLAN Verbunden: {global_apssid}' with return value true
28.03.2016 20:24:07.692 [Informations] Emergency stop reached, stopping flow execution
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

CoolTux

Irgendwie scheint meine Idee vom setzen des Ports über eine Prüfung nicht geklappt zu haben.
Schau mal bitte ob Du eine globale Variable namens global_bridgeport hast.
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

hyper2910

Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

CoolTux

Sehe gerade im 67er habe ich das noch gar nicht drin.

Ich versuche das mal die Tage hoch zu laden. Auf meinem Entwickler Tablet habe ich da schon was vorbereitet.
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

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