[ 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

So es ging doch etwas schneller wie gedacht. Konnte vieles wiederverwenden und musste nur ein zwei Sachen abfangen und ändern.
Nächter Versuch. Und bitte gleich loggen.
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

michael.winkler

wow, danke für die schnelle Hilfe. Anbei das neue Log. Jetzt kommen noch mehr Readings. Teilweise funktionieren Befehle in Richtung Tablet schon z.B. Screen on/off oder Sendmsg. Was nicht zu gehen schein ist noch die Lautstärkeregelung. Da ich nicht weiß welche Readings alle existieren müssen, kann ich natürlich nicht beurteilen ob schon alle da sind.

CoolTux

Das sieht erstmal sehr gut aus. Machst Du auch immer das mit dem DEF und dann modify. Die Sache mit dem Volume muß ich mal schauen. Hast Du irgendwas angeschlossen an dem Tablet? über Klinke oder Bluetooth?
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

michael.winkler

nein ich habe einen Statusrequest gestellt. Das mit dem DEF kann ich morgen noch mal testen. An das Tablet habe ich nichts angeschlossen.

CoolTux

Also die gute Nachricht ist, nicht ein einziger Fehler  ;D
Aber wieso kein Volume an kommt muß ich mal in Ruhe aus dem Log analysieren.



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

Icinger

Guten Morgen,

trotz einem Update des Flowsets:
fhem
2016.06.18 07:53:04 1: RMDIR: ./restoreDir/2016-06-04
2016.06.18 07:53:04 1: UPD ./CHANGED
2016.06.18 07:53:04 1: UPD FHEM/26_tahoma.pm
2016.06.18 07:53:05 1: UPD FHEM/74_AMAD.pm
2016.06.18 07:53:05 1: UPD FHEM/lib/74_AMADautomagicFlowset_2.2.3.xml
2016.06.18 07:53:05 1:
2016.06.18 07:53:05 1: New entries in the CHANGED file:
2016.06.18 07:53:05 1:   - feature: 74_AMAD: battery_temperature formated
2016.06.18 07:53:05 1:   - bugfix: 74_AMAD: deviceState timestamp bugfix for usb-ethernet Devices
2016.06.18 07:53:05 1:
2016.06.18 07:53:05 1:
2016.06.18 07:54:10 1: update finished, "shutdown restart" is needed to activate the changes.
2016.06.18 07:54:10 1:
2016.06.18 07:54:15 1: fheminfo server response: ==> ok


Wird das Flowset nicht aufs Handy gesendet bei einem currentFlowsetUpdate:
2016.06.18 08:12:41 5: AMAD (Stefan_Handy) - Processing data: checkActiveTask@@0@@@@
2016.06.18 08:12:49 5: AMAD (Stefan_Handy) - set Stefan_Handy currentFlowsetUpdate
2016.06.18 08:12:49 4: AMAD (Stefan_Handy) - Send HTTP POST with URL http://192.168.1.37:8090/fhem-amad/currentFlowsetUpdate
2016.06.18 08:12:53 4: AMAD (Stefan_Handy) - AMAD_checkDeviceState: run Check
2016.06.18 08:12:53 4: AMAD (Stefan_Handy) - AMAD_checkDeviceState: set new Timer
2016.06.18 08:12:59 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:00 5: AMAD (Stefan_Handy) - Processing data: connectedBTdevices@@null@@@@connectedBTdevicesMAC@@null@@@@
2016.06.18 08:13:00 5: AMAD (Stefan_Handy) - Processing data: flow_informations@@aktiv@@@@
2016.06.18 08:13:00 5: AMAD (Stefan_Handy) - Processing data: flow_SetCommands@@aktiv@@@@
2016.06.18 08:13:00 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: connectedBTdevices@@null@@@@connectedBTdevicesMAC@@null@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flow_SetCommands@@aktiv@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: automagicState@@Automagic Premium
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: automagicState@@Automagic Premium
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:02 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:03 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:03 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@
2016.06.18 08:13:03 5: AMAD (Stefan_Handy) - Processing data: flowsetVersionAtDevice@@2.2.2@@@@


Any Idea? Ich kanns natürlich auch händisch rüberschieben, aber dafür ist das update ja eigentlich da, oder? gg

lg, Stefan
Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

CoolTux

Springt den der Updateflow in Automagic an? Der Rest wird über die CommBridge gesteuert. Also brauche ich ein verbose 5 der Bridge.
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

Icinger

Updateflow läuft. Kommt auch die Benachrichtigung am Handy "Starte Download blablabla...."

Hier mal ein V5-Log der letzten paar Minuten

lg, Stefan

PS: Habe gestern erst auf 2.2.2 upgedatet, das lief problemlos durch.
Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

CoolTux

Gib mal bitte ein list vom Device. Und schau mal bitte welche Versionsnummer die AMAD Flowsetgruppe hat.
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

Icinger

Flowset-Gruppe steht auf 2.2.2


   NR         454
   PORT       8090
   STATE      active
   TYPE       AMAD
   VERSIONFLOWSET 2.2.2
   VERSIONMODUL 2.2.3
   Readings:
     vor einer Stunde   airplanemode    off
     vor einer Stunde   androidVersion  4.4 KitKat
     vor 22 Minuten   automagicState  Automagic Premium
     vor 3 Minuten   batteryHealth   2
     vor 3 Minuten   batteryTemperature 255
     vor einer Stunde   bluetooth       on
     vor ein paar Sekunden   checkActiveTask 0
     vor ein paar Sekunden   connectedBTdevices
     vor ein paar Sekunden   connectedBTdevicesMAC
     vor einer Stunde   currentMusicAlbum no player active
     vor einer Stunde   currentMusicApp no player active
     vor einer Stunde   currentMusicArtist no player active
     vor einer Stunde   currentMusicTrack no player active
     vor ein paar Sekunden   deviceState     online
     vor einer Stunde   dockingState    undocked
     vor ein paar Sekunden   flow_SetCommands aktiv
     vor 3 Minuten   flow_informations aktiv
     vor ein paar Sekunden   flowsetVersionAtDevice 2.2.2
     vor 40 Minuten   incommingWhatsAppMessageFrom Lydia
     vor einer Stunde   keyguardSet     0
     vor 22 Minuten   lastSetCommandState setCmd_done
     vor ein paar Sekunden   lastStatusRequestState statusRequest_done
     vor einer Stunde   nextAlarmDay    off
     vor einem Tag   nextAlarmDayc   -1
     vor einer Stunde   nextAlarmTime   off
     vor einem Tag   nextAlarmTimec  06:30:00
     vor einem Tag   nextAlarmTimef  06:30:00
     vor einem Monat   nextAlarmTimef|4 0
     vor 3 Minuten   powerLevel      98
     vor 3 Minuten   powerPlugged    0
     vor 9 Minuten   screen          off unlocked
     vor einer Stunde   screenBrightness 255
     vor 9 Minuten   screenOrientation portrait
     vor 9 Minuten   screenOrientationMode auto
     vor ein paar Sekunden   state           active
     vor einer Stunde   volume          14
     vor einer Stunde   volumeNotification 12
   Helper:
     deviceStateErrorCounter 0
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   DbLogExclude .*
   event-on-change-reading .*
   room       AMAD
   userReadings nextAlarmDayc:nextAlarmDay.* {my %d=("Mo"=>1,"Di"=>2,"Mi"=>3,"Do"=>4,"Fr"=>5,"Sa"=>6,"So"=>0,"off"=>-1);;return $d{ReadingsVal("Stefan_Handy","nextAlarmDay",0)};;},
nextAlarmTimef:nextAlarmTime.* {my $a=ReadingsVal("Stefan_Handy","nextAlarmTime","00:00");;$a= $a eq "off"?"06:30:00":$a.":00";;fhem("setreading Stefan_Handy
   NR         454
   PORT       8090
   STATE      active
   TYPE       AMAD
   VERSIONFLOWSET 2.2.2
   VERSIONMODUL 2.2.3
   Readings:
     2016-06-18 07:51:55   airplanemode    off
     2016-06-18 07:51:53   androidVersion  4.4 KitKat
     2016-06-18 08:20:04   automagicState  Automagic Premium
     2016-06-18 08:38:43   batteryHealth   2
     2016-06-18 08:38:43   batteryTemperature 255
     2016-06-18 07:51:54   bluetooth       on
     2016-06-18 08:41:54   checkActiveTask 0
     2016-06-18 08:41:54   connectedBTdevices
     2016-06-18 08:41:54   connectedBTdevicesMAC
     2016-06-18 07:51:54   currentMusicAlbum no player active
     2016-06-18 07:51:54   currentMusicApp no player active
     2016-06-18 07:51:54   currentMusicArtist no player active
     2016-06-18 07:51:54   currentMusicTrack no player active
     2016-06-18 08:41:54   deviceState     online
     2016-06-18 07:51:54   dockingState    undocked
     2016-06-18 08:41:54   flow_SetCommands aktiv
     2016-06-18 08:38:43   flow_informations aktiv
     2016-06-18 08:41:54   flowsetVersionAtDevice 2.2.2
     2016-06-18 08:02:00   incommingWhatsAppMessageFrom Lydia
     2016-06-18 07:51:54   keyguardSet     0
     2016-06-18 08:19:53   lastSetCommandState setCmd_done
     2016-06-18 08:41:54   lastStatusRequestState statusRequest_done
     2016-06-18 07:51:54   nextAlarmDay    off
     2016-06-16 23:03:30   nextAlarmDayc   -1
     2016-06-18 07:51:54   nextAlarmTime   off
     2016-06-16 23:03:30   nextAlarmTimec  06:30:00
     2016-06-16 23:03:30   nextAlarmTimef  06:30:00
     2016-05-08 00:47:38   nextAlarmTimef|4 0
     2016-06-18 08:38:43   powerLevel      98
     2016-06-18 08:38:43   powerPlugged    0
     2016-06-18 08:33:03   screen          off unlocked
     2016-06-18 07:51:53   screenBrightness 255
     2016-06-18 08:32:56   screenOrientation portrait
     2016-06-18 08:32:56   screenOrientationMode auto
     2016-06-18 08:41:54   state           active
     2016-06-18 07:51:55   volume          14
     2016-06-18 07:51:53   volumeNotification 12
   Helper:
     deviceStateErrorCounter 0
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   DbLogExclude .*
   event-on-change-reading .*
   room       AMAD
   userReadings nextAlarmDayc:nextAlarmDay.* {my %d=("Mo"=>1,"Di"=>2,"Mi"=>3,"Do"=>4,"Fr"=>5,"Sa"=>6,"So"=>0,"off"=>-1);;return $d{ReadingsVal("Stefan_Handy","nextAlarmDay",0)};;},
nextAlarmTimef:nextAlarmTime.* {my $a=ReadingsVal("Stefan_Handy","nextAlarmTime","00:00");;$a= $a eq "off"?"06:30:00":$a.":00";;fhem("setreading di_Kaffeemaschine_neu Einschaltzeit ".TU_Get_Decrement($a,"00:15:00"));;return $a},
nextAlarmTimec:nextAlarmTime.* {my $a=ReadingsVal("Stefan_Handy","nextAlarmTime","00:00");;return $a eq "off"?"06:30:00":TU_Get_Decrement($a,"00:15:00")}

Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

CoolTux

Hallo Stefan

Du hast ein shutdown restart vergessen oder das Modulupdate hat nicht korrekt geklappt. In den Internals muß sowohl Versionflowset als auch Versionmodul auf 2.2.3 stehen. Habe gerade mal im svn geschaut, da ist alles sauber.


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

Icinger

**kopfauftischknall**

Danke, hatte ich doch tatsächlich vergessen :((

Sorry, für die Mühe.

lg, Stefan
Verwende deine Zeit nicht mit Erklärungen. Die Menschen hören (lesen) nur, was sie hören (lesen) wollen. (c) Paulo Coelho

CoolTux

Nicht schlimm. Passiert. Alles supi. Na dann wünsche ich mal ein entspanntes We.


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

moonsorrox

#674
Zitat von: CoolTux am 18 Juni 2016, 08:57:35
Du hast ein shutdown restart vergessen oder das Modulupdate hat nicht korrekt geklappt. In den Internals muß sowohl Versionflowset als auch Versionmodul auf 2.2.3 stehen.

also ich habe hier auch stehen...
VERSIONFLOWSET 2.2.2
VERSIONMODUL 2.2.3

habe das Update mal manuell angestoßen und auch ein shutdown restart nicht vergessen...!

das hier flowsetVersionAtDevice 2.2.2 ist richtig..?
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM