[ 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

Tommy82

#375
Zitat von: Clyde am 09 April 2016, 18:32:29
Ein Tablet ist jetzt auf

"read from to http://192.168.1.58:8090 timed out"

gewechselt. Mit

set TabletNickel statusRequest

....

Hab gerade bei mir gesehen das auch nur wenig readings aktuell waren, nach einem statusRequest, werden dann einige aktualisiert, aber auch nicht alle, und es gibt auch ein time out
Internals:
   APSSID     T&T T&T5GHZ
   DEF        192.168.188.23 T&T@@T&T5GHZ
   HOST       192.168.188.23
   NAME       Android_Tablett_Wohnzimmer
   NR         291
   PORT       8090
   STATE      read from to http://192.168.188.23:8090 timed out
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Helper:
     Dblog:
       Androidversion:
         Mydblog:
           TIME       1460225723.80964
           VALUE      4.2 - 4.2.2 Jelly Bean MR1
       Automagicstate:
         Mydblog:
           TIME       1460225725.3038
           VALUE      not supported from your device
       Bluetooth:
         Mydblog:
           TIME       1460225724.92693
           VALUE      on
       Currentmusicalbum:
         Mydblog:
           TIME       1460225724.80166
           VALUE      no soundplayer activ
       Currentmusicartist:
         Mydblog:
           TIME       1460225724.80166
           VALUE      no soundplayer activ
       Currentmusictrack:
         Mydblog:
           TIME       1460225724.80166
           VALUE      no soundplayer activ
       Display:
         Mydblog:
           TIME       1460211280.63384
           VALUE      an
       Dockingstate:
         Mydblog:
           TIME       1460225724.867
           VALUE      undocked
       Keyguardset:
         Mydblog:
           TIME       1460225725.17256
           VALUE      0
       Laststatusrequeststate:
         Mydblog:
           TIME       1460225751.73265
           VALUE      statusRequest_error
       Nextalarmday:
         Mydblog:
           TIME       1460225724.98583
           VALUE      off
       Nextalarmtime:
         Mydblog:
           TIME       1460225724.98583
           VALUE      off
       Powerlevel:
         Mydblog:
           TIME       1460225724.51919
           VALUE      100.0
       Powerplugged:
         Mydblog:
           TIME       1460225724.51919
           VALUE      1
       Screen:
         Mydblog:
           TIME       1460225727.66866
           VALUE      off unlocked
       Screenbrightness:
         Mydblog:
           TIME       1460225723.8714
           VALUE      157
       Screenorientation:
         Mydblog:
           TIME       1460225725.64449
           VALUE      landscape
       Screenorientationmode:
         Mydblog:
           TIME       1460225725.64449
           VALUE      auto
       State:
         Mydblog:
           TIME       1460225751.73265
           VALUE      read from to http://192.168.188.23:8090 timed out
       Volume:
         Mydblog:
           TIME       1460225725.48708
           VALUE      0
       Volumenotification:
         Mydblog:
           TIME       1460225723.74286
           VALUE      0
   Readings:
     2016-04-09 20:15:23   androidVersion  4.2 - 4.2.2 Jelly Bean MR1
     2016-04-09 20:15:25   automagicState  not supported from your device
     2016-04-09 20:15:24   bluetooth       on
     2016-04-09 14:43:34   checkActiveTask
     2016-04-09 20:15:25   connectedBTdevices
     2016-04-09 20:15:25   connectedBTdevicesMAC
     2016-04-09 20:15:24   currentMusicAlbum no soundplayer activ
     2016-04-09 20:15:24   currentMusicArtist no soundplayer activ
     2016-04-09 20:15:24   currentMusicTrack no soundplayer activ
     2016-04-04 20:29:48   deviceState     online
     2016-04-09 16:14:40   display         an
     2016-04-09 20:15:24   dockingState    undocked
     2016-04-09 14:43:34   flow_SetCommands aktiv
     2016-04-09 14:43:34   flow_informations aktiv
     2016-04-09 20:15:25   keyguardSet     0
     2016-03-02 20:42:54   lastSetCommandState cmd_done
     2016-03-31 07:49:20   lastStatusRequestError 192.168.188.23: No route to host
     2016-04-09 20:15:51   lastStatusRequestState statusRequest_error
     2016-04-09 20:15:24   nextAlarmDay    off
     2016-04-09 20:15:24   nextAlarmTime   off
     2016-04-09 20:15:23   powerLevel      100.0
     2016-04-09 20:15:23   powerPlugged    1
     2016-04-09 20:15:27   screen          off unlocked
     2016-04-09 20:15:23   screenBrightness 157
     2016-04-09 20:15:25   screenOrientation landscape
     2016-04-09 20:15:25   screenOrientationMode auto
     2016-04-09 20:15:51   state           read from to http://192.168.188.23:8090 timed out
     2016-04-09 20:15:25   volume          0
     2016-04-09 14:43:34   volumeMusikBluetooth
     2016-04-09 14:43:34   volumeMusikSpeaker 0
     2016-04-09 20:15:23   volumeNotification 0
   Helper:
     infoErrorCounter 1
     setCmdErrorCounter 0
Attributes:
   room       Wohnzimmer


Einer eine idee was noch nicht passt?

Danke


EDIT
Log sieht auch normal aus
2016.04.09 20:20:45.350 3: AMAD (Android_Tablett_Wohnzimmer) - defined with host 192.168.188.23 on port 8090 and AccessPoint-SSID T&T T&T5GHZ
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

CoolTux

#376
Deine SSID's sind bestimmt zwei Netzte. Trenne sie mal durch Komma nicht durch @@. Die zwei @ werden nur verwendet wenn der Name der SSID ein Leerzeichen besitzt.
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: accessburn am 09 April 2016, 15:03:53
Liebster CoolTux :-)
Schaust du noch mal bitte nach meinem "geht nicht"? ;D
Habe mit ein paar unterbrechungen alles noch zwei oder drei mal versucht, auch mal die Readings gelöscht und neu angefangen. Aber nüscht!
Keine Veränderung.

Mach mal ein setreading DEVICE deviceStatus online und dann mal ein statusRequest
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

Tommy82

Zitat von: CoolTux am 09 April 2016, 20:36:15
Deine SSID's sind bestimmt zwei Netzte. Trenne sie mal durch Komma nicht durch @@. Die zwei @ werden nur verwendet wenn der Name der SSID ein Leerzeichen besitzt.

Hast natürlich recht, wer lesen kann ist klar im vorteil.... 8)
kommt aber trotzdem ein  timed out

Internals:
   APSSID     T&T,T&T5GHZ
   DEF        192.168.188.23 T&T,T&T5GHZ
   HOST       192.168.188.23
   NAME       Android_Tablett_Wohnzimmer
   NR         291
   PORT       8090
   STATE      read from to http://192.168.188.23:8090 timed out
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Helper:
     Dblog:
       Androidversion:
         Mydblog:
           TIME       1460227816.3325
           VALUE      4.2 - 4.2.2 Jelly Bean MR1
       Automagicstate:
         Mydblog:
           TIME       1460227817.48055
           VALUE      not supported from your device
       Bluetooth:
         Mydblog:
           TIME       1460227817.15276
           VALUE      on
       Currentmusicalbum:
         Mydblog:
           TIME       1460227817.21954
           VALUE      no soundplayer activ
       Currentmusicartist:
         Mydblog:
           TIME       1460227817.21954
           VALUE      no soundplayer activ
       Currentmusictrack:
         Mydblog:
           TIME       1460227817.21954
           VALUE      no soundplayer activ
       Devicestate:
         Mydblog:
           TIME       1460227755.12513
           VALUE      online
       Display:
         Mydblog:
           TIME       1460211280.63384
           VALUE      an
       Dockingstate:
         Mydblog:
           TIME       1460227817.29069
           VALUE      undocked
       Keyguardset:
         Mydblog:
           TIME       1460227817.35315
           VALUE      0
       Laststatusrequeststate:
         Mydblog:
           TIME       1460227844.1814
           VALUE      statusRequest_error
       Nextalarmday:
         Mydblog:
           TIME       1460227817.08578
           VALUE      off
       Nextalarmtime:
         Mydblog:
           TIME       1460227817.08578
           VALUE      off
       Powerlevel:
         Mydblog:
           TIME       1460227816.27021
           VALUE      100.0
       Powerplugged:
         Mydblog:
           TIME       1460227816.27021
           VALUE      1
       Screen:
         Mydblog:
           TIME       1460227819.9319
           VALUE      on unlocked
       Screenbrightness:
         Mydblog:
           TIME       1460227816.63432
           VALUE      157
       Screenorientation:
         Mydblog:
           TIME       1460227817.94368
           VALUE      landscape
       Screenorientationmode:
         Mydblog:
           TIME       1460227817.94368
           VALUE      auto
       State:
         Mydblog:
           TIME       1460227844.1814
           VALUE      read from to http://192.168.188.23:8090 timed out
       Volume:
         Mydblog:
           TIME       1460227817.8243
           VALUE      0
       Volumenotification:
         Mydblog:
           TIME       1460227816.57617
           VALUE      0
   Readings:
     2016-04-09 20:50:16   androidVersion  4.2 - 4.2.2 Jelly Bean MR1
     2016-04-09 20:50:17   automagicState  not supported from your device
     2016-04-09 20:50:17   bluetooth       on
     2016-04-09 14:43:34   checkActiveTask
     2016-04-09 20:50:17   connectedBTdevices
     2016-04-09 20:50:17   connectedBTdevicesMAC
     2016-04-09 20:50:17   currentMusicAlbum no soundplayer activ
     2016-04-09 20:50:17   currentMusicArtist no soundplayer activ
     2016-04-09 20:50:17   currentMusicTrack no soundplayer activ
     2016-04-09 20:49:15   deviceState     online
     2016-04-09 16:14:40   display         an
     2016-04-09 20:50:17   dockingState    undocked
     2016-04-09 14:43:34   flow_SetCommands aktiv
     2016-04-09 14:43:34   flow_informations aktiv
     2016-04-09 20:50:17   keyguardSet     0
     2016-03-02 20:42:54   lastSetCommandState cmd_done
     2016-03-31 07:49:20   lastStatusRequestError 192.168.188.23: No route to host
     2016-04-09 20:50:44   lastStatusRequestState statusRequest_error
     2016-04-09 20:50:17   nextAlarmDay    off
     2016-04-09 20:50:17   nextAlarmTime   off
     2016-04-09 20:50:16   powerLevel      100.0
     2016-04-09 20:50:16   powerPlugged    1
     2016-04-09 20:50:19   screen          on unlocked
     2016-04-09 20:50:16   screenBrightness 157
     2016-04-09 20:50:17   screenOrientation landscape
     2016-04-09 20:50:17   screenOrientationMode auto
     2016-04-09 20:50:44   state           read from to http://192.168.188.23:8090 timed out
     2016-04-09 20:50:17   volume          0
     2016-04-09 14:43:34   volumeMusikBluetooth
     2016-04-09 14:43:34   volumeMusikSpeaker 0
     2016-04-09 20:50:16   volumeNotification 0
   Helper:
     infoErrorCounter 1
     setCmdErrorCounter 0
Attributes:
   room       Wohnzimmer
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

accessburn

Zitat von: CoolTux am 09 April 2016, 20:44:16
Mach mal ein setreading DEVICE deviceStatus online und dann mal ein statusRequest


The same:  set command only works if state not equal initialized
Wezzy Rpi2b> FHEM, Elro, Intenso, FTUI, Jeelink v3, Max!Cube, Fire5, Foscam, NAS, Fritz!Box + Fon, Max!Wandthermostat, Amazon Echo
Wezzy Rp3b> OctoPi
Jessie Rp3b> UPNP, NAS, Pi-Hole

Tommy82

Zitat von: accessburn am 09 April 2016, 20:55:14

The same:  set command only works if state not equal initialized

Bist du sicher das du die alten Flows gelöscht hast und das neue installiert und aktiviert hast?

Hatte die Meldung nähmlich bei mir auch erst, weil ich vergessen hatte die alten zu löschen
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

accessburn

Zitat von: Tommy82 am 09 April 2016, 20:57:15
Bist du sicher das du die alten Flows gelöscht hast und das neue installiert und aktiviert hast?

Hatte die Meldung nähmlich bei mir auch erst, weil ich vergessen hatte die alten zu löschen

Ja ist 2.0, musste aber nochmal schauen, aber der neue Updater ist ja auch da (1.0.6)
Wezzy Rpi2b> FHEM, Elro, Intenso, FTUI, Jeelink v3, Max!Cube, Fire5, Foscam, NAS, Fritz!Box + Fon, Max!Wandthermostat, Amazon Echo
Wezzy Rp3b> OctoPi
Jessie Rp3b> UPNP, NAS, Pi-Hole

accessburn

Zitat von: CoolTux am 09 April 2016, 20:44:16
Mach mal ein setreading DEVICE deviceStatus online und dann mal ein statusRequest


Fund!
Geht!
deviceState ging, deviceStatus war doof  ;D
Aber warum ging es so, und nicht wenn ich es auf der seite direkt über das set-Dropdown mache?
Wezzy Rpi2b> FHEM, Elro, Intenso, FTUI, Jeelink v3, Max!Cube, Fire5, Foscam, NAS, Fritz!Box + Fon, Max!Wandthermostat, Amazon Echo
Wezzy Rp3b> OctoPi
Jessie Rp3b> UPNP, NAS, Pi-Hole

CoolTux

Hatte sich in der Zeit Dein Status geändert gehabt?
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: Tommy82 am 09 April 2016, 20:57:15
Bist du sicher das du die alten Flows gelöscht hast und das neue installiert und aktiviert hast?

Hatte die Meldung nähmlich bei mir auch erst, weil ich vergessen hatte die alten zu löschen

Set DEVICE state active

Danach noch mal und schaue bitte ob sich der Flow Informations genau in dem Moment ro färbt
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

accessburn

Wird brav rot und alles funktioniert...

Darf ich eine weitere Frage stellen?
Akku zeigt auf dem Tab z.b. 79% an, amad sagt immer 2% weniger, auch in der V1 schon. Wie passiert das?
Wezzy Rpi2b> FHEM, Elro, Intenso, FTUI, Jeelink v3, Max!Cube, Fire5, Foscam, NAS, Fritz!Box + Fon, Max!Wandthermostat, Amazon Echo
Wezzy Rp3b> OctoPi
Jessie Rp3b> UPNP, NAS, Pi-Hole

Helmi55

Hi bei mir steht auch immer initialized
Wenn ich wie oben ein set Device state active eingebe bekomme ich
set command only works if state not equal initialized

Was mach ich falsch - Alte Flows habe ich am Samsung Tab mit 4.4 gelöscht!
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

CoolTux

Zitat von: Helmi55 am 09 April 2016, 22:29:44
Hi bei mir steht auch immer initialized
Wenn ich wie oben ein set Device state active eingebe bekomme ich
set command only works if state not equal initialized

Was mach ich falsch - Alte Flows habe ich am Samsung Tab mit 4.4 gelöscht!

setreading DEVICE state active

Bitte das versuchen.
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: accessburn am 09 April 2016, 21:29:57
Wird brav rot und alles funktioniert...

Darf ich eine weitere Frage stellen?
Akku zeigt auf dem Tab z.b. 79% an, amad sagt immer 2% weniger, auch in der V1 schon. Wie passiert das?

Das lügt eine der Anzeigen. Entweder das vom Tablet oder die Funktion von Automagic welche die AndroidAPI anzapft.
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

Helmi55

Yepp Danke - hält aber nur bis zum nächsten restart/reread von fhem
Sag und wie sehe ich jetzt den Batteriezustand - hatte ich unter 1.0 schon

Und Danke für deine tollen Arbeiten du steckst wirklich sehr viel Zeit in die Projekte
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/