[ 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

Deine Bridge hat kein Reading für fhemServerIP. Oder noch schlimmer Du hast keine Bridge.

Die Fehlermeldung muss ich genauer machen. Danke für den Hinweis.

Mach mal bitte


list TYPE=AMAD
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

Uuups, was ist denn hier passiert ...

AMADCommBridge
AMADCommBridge_192.168.1.227_55214
AMADCommBridge_192.168.1.227_58408
AMADCommBridge_192.168.1.227_59952
AMADCommBridge_192.168.1.227_60930
AMADCommBridge_192.168.1.227_60931
AMAD_Iconia1
AMAD_Lenovo


Hab die jetzt mal alle geloescht bis auf die OHNE IP-Adresse.
Die hat auch das Reading fuer FHEM
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

 .... die werden immer wieder neu angelegt mit anderen Endnummern :

AMADCommBridge
AMADCommBridge_192.168.1.227_44358
AMADCommBridge_192.168.1.227_49301
AMADCommBridge_192.168.1.227_53131
AMADCommBridge_192.168.1.227_56658
AMAD_Iconia1
AMAD_Lenovo


FHEM - Neustart hat auch nichts gebracht ...

Hmmm ....
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

CoolTux

Das ist korrekt so. Das sind die offenen Socketverbindungen von den Geräten zur CommBridge. Die müssen da sein.

Mach mal ein list AMADCommBridge bitte
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

Warum dann nur mit der IP-Adresse des neuen Devices ?
Neu : xx.227
Alt : xx.201

Internals:
   BRIDGE     1
   CONNECTS   99
   FD         43
   NAME       AMADCommBridge
   NR         995
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSIONFLOWSET 1.9.67
   VERSIONMODUL 1.9.65
   Readings:
     2016-03-29 18:04:00   deviceState     online
     2016-03-25 10:53:28   expertMode      1
     2016-03-25 10:52:39   fhemServerIP    192.168.1.150
     2016-03-29 17:58:14   state           opened
Attributes:
   port       8090
   room       Interfaces


2016.03.29 18:27:36 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 18:27:36 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 18:27:36 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 18:27:36 3: AMAD (AMAD_Lenovo) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 18:27:51 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 18:27:51 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 18:27:51 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 18:27:51 3: AMAD (AMAD_Lenovo) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
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

CoolTux

Wie hast Du es  geschafft ein deviceState online Reading in die Bridge zu bekommen? Ich fürchte es ist das beste Du löschst alles mal und legst es neu an.
Wenn Du bis heute Abend so 21 Uhr rum warten kannst dann Stele ich gleiche eine aktuelle Version bereit welche die Port Probleme lösen sollte.
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

Ich habe eben eine neue Version auf GitHub hochgeladen. Es müssen sowohl das Modul als auch das Flowset upgedatet werden.

@cotecmania
Anscheinend wird Deine CommBridge nicht korrekt erkannt. Das zeigt mir auch Deine Fehlermeldung


2016.03.29 18:27:51 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!


eigentlich müsste es anders heißen


2016.03.29 18:27:51 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
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

Keine Ahnung wie ich das geschafft habe.
Gerade noch auf die Neueste Version geswitched :

2016.03.29 22:11:08 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 22:11:08 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 22:11:08 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 22:11:08 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!


Internals:
   APSSID     FRITZ!BoxJo
   DEF        192.168.1.227 FRITZ!BoxJo
   HOST       192.168.1.227
   NAME       AMAD_Iconia1
   NR         994
   PORT       8090
   STATE      active
   TYPE       AMAD
   VERSIONFLOWSET 1.9.69
   VERSIONMODUL 1.9.66
   Readings:
     2016-03-29 14:39:17   airplanemode    off
     2016-03-29 14:38:53   androidVersion  5.1 Lollipop MR1
     2016-03-29 14:39:19   automagicState  Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
     2016-03-29 14:39:04   bluetooth       on
     2016-03-29 22:11:24   checkActiveTask
     2016-03-29 22:11:24   connectedBTdevices
     2016-03-29 22:11:24   connectedBTdevicesMAC
     2016-03-29 14:39:08   currentMusicAlbum no soundplayer activ
     2016-03-29 14:39:08   currentMusicArtist no soundplayer activ
     2016-03-29 14:39:08   currentMusicTrack no soundplayer activ
     2016-03-29 22:07:13   deviceState     online
     2016-03-29 14:39:00   dockingState    undocked
     2016-03-29 22:11:24   flow_SetCommands aktiv
     2016-03-29 22:10:25   flow_informations aktiv
     2016-03-29 22:11:23   flowsetVersionAtDevice 1.9.69
     2016-03-29 14:39:06   keyguardSet     0
     2016-03-29 15:58:23   lastSetCommandError
     2016-03-29 20:25:56   lastSetCommandState setCmd_done
     2016-03-29 09:09:46   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-29 22:11:24   lastStatusRequestState statusRequest_done
     2016-03-29 14:39:02   nextAlarmDay    off
     2016-03-29 14:39:02   nextAlarmTime   off
     2016-03-29 22:10:25   powerLevel      84.0
     2016-03-29 22:10:25   powerPlugged    0
     2016-03-29 22:11:24   screen          off unlocked
     2016-03-29 14:38:51   screenBrightness 188
     2016-03-29 22:11:24   screenOrientation landscape
     2016-03-29 22:11:24   screenOrientationMode manual
     2016-03-29 22:11:24   state           active
     2016-03-29 14:39:15   volume          15
     2016-03-29 14:38:55   volumeNotification 15
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Internals:
   BRIDGE     1
   CONNECTS   261
   FD         43
   NAME       AMADCommBridge
   NR         995
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSIONFLOWSET 1.9.67
   VERSIONMODUL 1.9.65
   Readings:
     2016-03-29 18:04:00   deviceState     online
     2016-03-25 10:53:28   expertMode      1
     2016-03-25 10:52:39   fhemServerIP    192.168.1.150
     2016-03-29 17:58:14   state           opened
Attributes:
   port       8090
   room       Interfaces


Muss wohl morgen alles mal löschen und von Vorne beginnen. Meld mich dann ...

Gruss
Joe

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

CoolTux

Hallo Joe

Versuch mal nur die CommBridge zu löschen und dann wieder neu an zu legen.


define AMADCommBridge AMAD


Sollte ausreichen.



Grüße
Leon
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

Guten morgen,

CommBridge geloescht und neu angelegt brachte den Erfolg (Logeintraege sind nun weg) :

2016.03.30 08:46:43 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:43 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:43 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:43 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:44 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2016.03.30 08:46:44 3: AMAD (AMADCommBridge) - Attention!!! By the first run, dont forget to "set AMADCommBridge fhemServerIP <IP-FHEM>"
2016.03.30 08:46:44 3: AMADCommBridge: port 8090 opened
2016.03.30 08:46:58 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:58 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:58 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:58 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!


Warum existieren die zusätzlichen CommBridges nur fuer eines meiner 2 Devices ?
AMADCommBridge
AMADCommBridge_192.168.1.227_35167
AMADCommBridge_192.168.1.227_37368
AMADCommBridge_192.168.1.227_41911
AMADCommBridge_192.168.1.227_49692
AMAD_Iconia1
AMAD_Lenovo


Gruss
Joe
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

Weitere Fehlermeldung auf Android 4.2.2-Tablet :

Trigger funktioniert nicht vor Android 4.3 (Jellybean) API 18
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

CoolTux

Zitat von: cotecmania am 30 März 2016, 08:58:35
Guten morgen,

CommBridge geloescht und neu angelegt brachte den Erfolg (Logeintraege sind nun weg) :

2016.03.30 08:46:43 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:43 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:43 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:43 3: AMAD () - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:44 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2016.03.30 08:46:44 3: AMAD (AMADCommBridge) - Attention!!! By the first run, dont forget to "set AMADCommBridge fhemServerIP <IP-FHEM>"
2016.03.30 08:46:44 3: AMADCommBridge: port 8090 opened
2016.03.30 08:46:58 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:58 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.30 08:46:58 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.30 08:46:58 3: AMAD (AMADCommBridge) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!


Warum existieren die zusätzlichen CommBridges nur fuer eines meiner 2 Devices ?
AMADCommBridge
AMADCommBridge_192.168.1.227_35167
AMADCommBridge_192.168.1.227_37368
AMADCommBridge_192.168.1.227_41911
AMADCommBridge_192.168.1.227_49692
AMAD_Iconia1
AMAD_Lenovo


Gruss
Joe

Super das das geklappt hat.
Es sieht so aus das nur Dein eines Gerät mit der Bridge redet. Werden bei dem anderen denn die Readings aktualisiert?
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

Zitat von: cotecmania am 30 März 2016, 09:10:22
Weitere Fehlermeldung auf Android 4.2.2-Tablet :

Trigger funktioniert nicht vor Android 4.3 (Jellybean) API 18

Wenn Du das quittierst, ist dann die Meldung für immer weg?
Es gibt unter den Einstellungen von Automagic einen Punkt Einstellungen Bestätigung unterdrücken. Dann sollte sowas gar nicht mehr kommen. Wäre aber interessant welcher Trigger das ist. Kannst Du das sehen?
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

Nein habe nicht rausgefunden welcher Trigger das ist ...

Neues Problem. Das Tablet mit den 4 Bridges aktualisiert die Readings nicht :

Internals:
   APSSID     FRITZ!BoxJo
   DEF        192.168.1.227 FRITZ!BoxJo
   HOST       192.168.1.227
   NAME       AMAD_Iconia1
   NR         994
   PORT       8090
   STATE      192.168.1.227: Connection refused
   TYPE       AMAD
   VERSIONFLOWSET 1.9.69
   VERSIONMODUL 1.9.66
   Readings:
     2016-03-29 14:39:17   airplanemode    off
     2016-03-30 08:47:15   androidVersion  5.1 Lollipop MR1
     2016-03-29 14:39:19   automagicState  Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
     2016-03-29 14:39:04   bluetooth       on
     2016-03-30 10:49:08   checkActiveTask
     2016-03-30 10:49:08   connectedBTdevices
     2016-03-30 10:49:08   connectedBTdevicesMAC
     2016-03-29 14:39:08   currentMusicAlbum no soundplayer activ
     2016-03-29 14:39:08   currentMusicArtist no soundplayer activ
     2016-03-29 14:39:08   currentMusicTrack no soundplayer activ
     2016-03-29 22:07:13   deviceState     online
     2016-03-29 14:39:00   dockingState    undocked
     2016-03-30 10:49:08   flow_SetCommands aktiv
     2016-03-30 10:49:07   flow_informations aktiv
     2016-03-30 10:49:07   flowsetVersionAtDevice 1.9.69
     2016-03-29 14:39:06   keyguardSet     0
     2016-03-29 15:58:23   lastSetCommandError
     2016-03-30 09:50:12   lastSetCommandState setCmd_done
     2016-03-29 09:09:46   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-30 14:00:44   lastStatusRequestState statusRequest_error
     2016-03-29 14:39:02   nextAlarmDay    off
     2016-03-29 14:39:02   nextAlarmTime   off
     2016-03-30 10:49:07   powerLevel      67.0
     2016-03-30 10:49:07   powerPlugged    0
     2016-03-30 10:48:59   screen          on unlocked
     2016-03-30 08:47:15   screenBrightness 188
     2016-03-30 10:48:59   screenOrientation landscape
     2016-03-30 10:48:59   screenOrientationMode manual
     2016-03-30 14:00:44   state           192.168.1.227: Connection refused
     2016-03-29 14:39:15   volume          15
     2016-03-30 08:47:15   volumeNotification 15
   Helper:
     infoErrorCounter 1
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Das "Alte" (4.2.2), welches keine Bridges erstellt, hat aktuelle Readings :

Internals:
   APSSID     FRITZ!BoxJo
   DEF        192.168.1.201 FRITZ!BoxJo
   HOST       192.168.1.201
   NAME       AMAD_Lenovo
   NR         996
   PORT       8090
   STATE      active
   TYPE       AMAD
   VERSIONFLOWSET 1.9.69
   VERSIONMODUL 1.9.66
   Readings:
     2016-03-30 11:03:08   bluetooth       off
     2016-03-30 14:02:44   checkActiveTask
     2016-03-30 14:02:44   connectedBTdevices
     2016-03-30 14:02:44   connectedBTdevicesMAC
     2016-03-29 14:42:38   deviceState     online
     2016-03-30 14:02:44   flow_SetCommands aktiv
     2016-03-30 14:02:44   flow_informations aktiv
     2016-03-30 14:02:43   flowsetVersionAtDevice 1.9.69
     2016-03-29 14:57:15   lastSetCommandState setCmd_done
     2016-03-29 09:09:10   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-30 14:02:44   lastStatusRequestState statusRequest_done
     2016-03-30 14:02:44   powerLevel      73.0
     2016-03-30 14:02:44   powerPlugged    0
     2016-03-30 14:00:30   screen          off unlocked
     2016-03-30 08:47:14   screenBrightness 175
     2016-03-30 14:00:30   screenOrientation landscape
     2016-03-30 14:00:30   screenOrientationMode auto
     2016-03-30 14:02:44   state           active
     2016-03-29 14:57:16   volume          13
     2016-03-30 08:47:14   volumeNotification 5
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Was bedeutet :      2016-03-30 14:00:44   state           192.168.1.227: Connection refused

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

CoolTux

Das muss ich mir heute Abend in aller Ruhe anschauen. Bei dem Tablet was nicht aktuallisiert, hast Du da Fehlermeldungen von Automagic?
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