[ 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

hyper2910

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

CoolTux

ok. aufgepasst und mitgemacht.

Installiere den 67er Flowset. Gehe in FHEM in die Detailansicht vom Device. Stelle das set auf statusRequest aber noch nicht ausführen. Dann aktivierst Du auf dem Device das Informationsflow und drückst sofort den set Befehl los.


;D
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

Hallo,

hab jetzt schon mehrmals bemerkt, dass nach einem Neustart von FHEM die AMAD-Devices nicht auf "active" gehen.
Logfile :
2016.03.29 10:45:30 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:45:30 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:45:45 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:45:45 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:46:00 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:46:00 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:46:15 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 10:46:15 3: AMAD (AMAD_Lenovo) - GetUpdate, FHEM or Device not ready yet


Internals:
   APSSID     FRITZ!BoxJo
   DEF        192.168.1.227 FRITZ!BoxJo
   HOST       192.168.1.227
   NAME       AMAD_Iconia1
   NR         994
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSIONFLOWSET 1.9.67
   VERSIONMODUL 1.9.65
   Readings:
     2016-03-27 11:37:52   airplanemode    off
     2016-03-29 09:09:11   androidVersion  5.1 Lollipop MR1
     2016-03-29 09:09:12   automagicState  Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
     2016-03-29 09:09:12   bluetooth       on
     2016-03-28 20:37:34   checkActiveTask
     2016-03-29 09:09:12   connectedBTdevices
     2016-03-29 09:09:12   connectedBTdevicesMAC
     2016-03-29 09:09:12   currentMusicAlbum no soundplayer activ
     2016-03-29 09:09:12   currentMusicArtist no soundplayer activ
     2016-03-29 09:09:12   currentMusicTrack no soundplayer activ
     2016-03-29 09:09:46   deviceState     offline
     2016-03-29 09:09:12   dockingState    undocked
     2016-03-28 20:37:33   flow_SetCommands aktiv
     2016-03-28 20:37:32   flow_informations aktiv
     2016-03-28 20:37:32   flowsetVersionAtDevice 1.9.61
     2016-03-29 09:09:12   keyguardSet     0
     2016-03-28 12:21:21   lastSetCommandState setCmd_done
     2016-03-29 09:09:46   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-29 09:09:46   lastStatusRequestState statusRequest_error
     2016-03-29 09:09:12   nextAlarmDay
     2016-03-29 09:09:12   nextAlarmTime
     2016-03-29 09:09:11   powerLevel      36.0
     2016-03-29 09:09:11   powerPlugged    1
     2016-03-29 09:09:15   screen          off locked
     2016-03-29 09:09:11   screenBrightness 188
     2016-03-29 09:09:13   screenOrientation landscape
     2016-03-29 09:09:13   screenOrientationMode manual
     2016-03-29 10:14:02   state           initialized
     2016-03-29 09:09:12   volume          15
     2016-03-29 09:09:11   volumeNotification 15
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Internals:
   APSSID     FRITZ!BoxJo
   DEF        192.168.1.201 FRITZ!BoxJo
   HOST       192.168.1.201
   NAME       AMAD_Lenovo
   NR         996
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSIONFLOWSET 1.9.67
   VERSIONMODUL 1.9.65
   Readings:
     2016-03-27 11:48:01   bluetooth       off
     2016-03-28 16:56:59   checkActiveTask
     2016-03-28 16:56:59   connectedBTdevices
     2016-03-28 16:56:59   connectedBTdevicesMAC
     2016-03-29 09:09:10   deviceState     offline
     2016-03-28 16:56:58   flow_SetCommands aktiv
     2016-03-28 20:37:31   flow_informations aktiv
     2016-03-28 16:56:58   flowsetVersionAtDevice 1.9.61
     2016-03-27 11:47:57   lastSetCommandState setCmd_done
     2016-03-29 09:09:10   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-29 09:09:10   lastStatusRequestState statusRequest_error
     2016-03-28 16:56:58   powerLevel      87.0
     2016-03-28 16:56:58   powerPlugged    0
     2016-03-28 11:46:47   screen          off unlocked
     2016-03-28 11:46:47   screenOrientation landscape
     2016-03-28 11:46:47   screenOrientationMode auto
     2016-03-29 10:14:02   state           initialized
     2016-03-27 11:48:18   volume          12
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       Interfaces


Zuvor haben die funktioniert ...
Ideen ?

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

Setzte mal beide Device auf online.

set DEVICE deviceState online


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

schnitzelbrain

Zitat von: CoolTux am 28 März 2016, 20:53:34
ok. aufgepasst und mitgemacht.

Installiere den 67er Flowset. Gehe in FHEM in die Detailansicht vom Device. Stelle das set auf statusRequest aber noch nicht ausführen. Dann aktivierst Du auf dem Device das Informationsflow und drückst sofort den set Befehl los.


;D

Hallo, hab gerade das Update auf die neuste Version gemacht und hatte den gleichen Fehler als hyper2910
Ebenso war die Variable global_bridgeport nicht vorhanden.

Hat zwar ein paar Anläufe benötigt aber mit deinem oben genannten Tip ging dann alles.

Variable wurde gesetzt und der Java Fehler war weg, läuft  ;D

CoolTux

Ich stelle heute Abend einen aktuallisierten Flowset online. Da sollte es dann sauberer gehen.
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

Zitat von: CoolTux am 29 März 2016, 10:54:49
Setzte mal beide Device auf online.

set DEVICE deviceState online


Grüße

set geht erst, wenn das Ding active ist : set command only works if state not equal initialized
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

Erstmal nur bei einem Device zum Testen machen bitte.

setreading Device state active

Dann online setzen.

Wie sieht es mit dem Informationflow in Automagic aus? Gehe von aus das der immer aus geht mit Fehlern. Wenn ja bitte wie oben beschrieben Verfahren.
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,

das neuere Tablet (5.1) konnte ich damit aktivieren.

Am 4.2er kam eine Fehlermeldung :
Flow Informations mit Fehler beendet
unsupported Method AndroidGetSDKVersion wit 0 arg ....

Nachdem diese quittiert waren, lieferte auch das Alte wieder Werte.

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

Vielen Dank für den Hinweis. Ich werde versuche das mal etwas ab zu ändern.
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

Zitat von: CoolTux am 28 März 2016, 20:53:34
ok. aufgepasst und mitgemacht.

Installiere den 67er Flowset. Gehe in FHEM in die Detailansicht vom Device. Stelle das set auf statusRequest aber noch nicht ausführen. Dann aktivierst Du auf dem Device das Informationsflow und drückst sofort den set Befehl los.


;D

Habs trotz mehreren Versuchen nicht geschafft.
Aber die Variable laesst sich doch einfach von Hand anlegen.
Auf dem Device "global_bridgeport" mit Wert 8090 anlegen und schon gehts ....

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

Wie macht Ihr das eigentlich, dass nicht bei jedem Update von FHEM die Version 1.2 wieder eingespielt wird, bzw. wann wird die V2 offiziell ?

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

Pyromane

Das sollte dir helfen:
attr global exclude_from_update AMAD2XYZ.pm
Bitte den genauen Dateinamen anpassen.

CoolTux

Zitat von: Pyromane am 29 März 2016, 16:42:00
Das sollte dir helfen:
attr global exclude_from_update AMAD2XYZ.pm
Bitte den genauen Dateinamen anpassen.


attr global exclude_from_update AMAD.pm


Vielen Dank für den Hinweis Pyromane.


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

Das nimmt ja kein Ende. Nun habe ich folgendes im Log nach Import Flow xx.97 :

2016.03.29 16:41:18 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 16:41:18 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 16:41:33 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 16:41:33 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 16:41:48 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 16:41:48 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set  fhemServerIP <IP-FHEM> NOW!
2016.03.29 16:42:03 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.29 16:42:03 3: AMAD (AMAD_Iconia1) - 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.67
   VERSIONMODUL 1.9.65
   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 16:45:17   checkActiveTask
     2016-03-29 16:45:17   connectedBTdevices
     2016-03-29 16:45:17   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 14:39:17   deviceState     online
     2016-03-29 14:39:00   dockingState    undocked
     2016-03-29 16:45:17   flow_SetCommands aktiv
     2016-03-29 16:45:16   flow_informations aktiv
     2016-03-29 16:45:16   flowsetVersionAtDevice 1.9.67
     2016-03-29 14:39:06   keyguardSet     0
     2016-03-29 15:58:23   lastSetCommandError
     2016-03-29 16:24:56   lastSetCommandState setCmd_done
     2016-03-29 09:09:46   lastStatusRequestError empty response, check automagicApp on your device
     2016-03-29 16:45:17   lastStatusRequestState statusRequest_done
     2016-03-29 14:39:02   nextAlarmDay    off
     2016-03-29 14:39:02   nextAlarmTime   off
     2016-03-29 16:45:16   powerLevel      39.0
     2016-03-29 16:45:16   powerPlugged    1
     2016-03-29 16:35:30   screen          off unlocked
     2016-03-29 14:38:51   screenBrightness 188
     2016-03-29 16:35:28   screenOrientation landscape
     2016-03-29 16:35:28   screenOrientationMode manual
     2016-03-29 16:45:17   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


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