[ 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

the ratman

mal schaun, ob ich wieder nur zu dumm bin, oder endlich mal ne idee liefern kann.

hab eben probiert, amad2 ein paar webcmd's beizubringen. bei z.b. bt geht das ganz gut (bis auf fehlende infos wofür das dropdown is), bei sachen wie ttsMsg gehts gar nicht.
wär das ne idee, webcmd's formatierter und erweiterter (ttsMsg mit z.b. eingabefeld) mit rein zu nehmen? käme z.b. im floorplan sicher lustig, dort ein texteingabefeld für ne schnelle hausinformation zu haben.
ich bin halt ein fan von tts - das dumme gequassel hat hier noch jeder mitbekommen - im gegensatz zu blinkenden lämpchen oder so *g*.

[rumspinnen]
was ich z.b. noch lustig fände (aber sicher viel zu speziell und echt nur ne spinnerei is), wäre grade bei tts mp3's/tts voranstellen zu können. ich mach das bisher immer "händisch" und würd mir so bei meinen infos viel arbeit sparen *g*. so kommt man zu nem wunderbaren veranstaltungshallen-feeling, das auch immer 100% gleich kling "ding-ding-dong achtung durchsage: xxx".
man sollte dann quasi für ttsMsg eine oder mehrere grundeinstellung haben wie z.b. [amad-geräte][mp3-auswahl][feste-tts-text-auswahl1][modul-alias/name][feste-tts-text-auswahl2][wartezeit] und selbiges dann immer beim aufruf von "set ttsMsg g1g2g3 geX xxx" in fhem vor den gewünschten text gestellt bekommen.
("g1g2g3" wären dann die amad-geräte, die die msg senden sollen und "geX" wäre dann die gewünschte grundeinstellung,
ohne "g1g2g3" kommt die tts nur am jeweiligen amad-gerät und ohne "geX" arbeitet ttsMsg wie bisher nur mit dem gegebenen text "xxx")
[/rumspinnen]
→do↑p!dnʇs↓shit←

Intruder1956

Info:  :)
Habe nach update heute noch diese Meldung im Log
2016.04.08 14:54:47 1: PERL WARNING: Use of uninitialized value in hash element at ./FHEM/74_AMAD.pm line 144.

Gruß Werner
Zotac CI547 32GB RAM 500GB SSD,ESXI 6.5, VM-Fhem5.8, VM-ioBroker, Cul 868Mhz;Cul 433Mhz = Busware, LGW, HM-MOD-RPI-PCB, Uniroll, IT YCR-100 TMT2100,ITR-1500, LD382 mit Wifilight, ESA 2000 + SENSOR WZ SET,FS20 TFK, HM-Sec-SC, HM-CC-RT-DN,PCA301,

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

hi,

nach dem offiziellen 2.00 update heute, bekomme ich folgende Infos:

DirksTablet
read from to http://192.168.178.48:8090 timed out


auf allen Device wo auch das Flow 2.0 drauf ist,

die alten Flows laufen!
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

CoolTux

Damit kann ich nichts anfangen.
Mit ein List vom Device machen. Hast Du das Update gemacht? Hast Du das Flowset installiert? Also das alte gelöscht das neue importiert?
Und wie gesagt ich brauche ein list und verbose 5 Auszug des Logs.
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

Help...

Nach update doof :'(
Alle Flows gelöscht, 2.0 importiert (Nur 4 Stk.?) auch SSID hinzugefügt (ist das in 2.0 neu?) und es steht nur "initialized" da.
Was hab ich verpennt oder vergessen?

Internals:
   APSSID     Sternenflotte_Hauptquartier
   DEF        192.168.178.82 Sternenflotte_Hauptquartier
   HOST       192.168.178.82
   NAME       WandTabletWohnzimmer
   NR         430
   PORT       8090
   STATE      initialized
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Readings:
     2016-04-06 22:29:39   airplanemode    off
     2016-04-06 22:29:39   androidVersion  5.1 Lollipop MR1
     2016-04-06 22:29:39   bluetooth       off
     2016-04-06 22:29:39   checkActiveTask
     2016-04-06 22:29:39   connectedBTdevices
     2016-04-06 22:29:39   connectedBTdevicesMAC
     2016-04-06 22:29:39   currentMusicAlbum no soundplayer activ
     2016-04-06 22:29:39   currentMusicArtist no soundplayer activ
     2016-04-06 22:29:39   currentMusicTrack no soundplayer activ
     2016-04-06 23:02:39   deviceState     offline
     2016-03-25 07:40:28   display         aus
     2016-04-06 22:29:39   flow_SetCommands aktiv
     2016-04-06 22:29:39   flow_informations aktiv
     2016-04-06 22:00:07   lastSetCommandError 192.168.178.82: No route to host
     2016-04-06 22:00:07   lastSetCommandState cmd_error
     2016-04-06 23:02:39   lastStatusRequestError 192.168.178.82: No route to host
     2016-04-06 23:02:39   lastStatusRequestState statusRequest_error
     2016-04-06 22:29:39   nextAlarmDay
     2016-04-06 22:29:39   nextAlarmTime
     2016-04-06 22:29:39   powerLevel      36.0
     2016-04-06 22:29:39   powerPlugged    0
     2016-04-06 22:29:39   screen          off
     2016-04-06 22:29:39   screenBrightness 1
     2016-04-06 22:29:39   screenOrientation auto
     2016-04-08 19:09:05   state           initialized
     2016-03-18 23:30:54   touch           nein
     2016-04-04 23:01:34   volume          15
     2016-04-06 22:29:39   volumeMusikBluetooth
     2016-04-06 22:29:39   volumeMusikSpeaker 15
     2016-04-06 22:29:39   volumeNotification 7
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       AMAD
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

Hast Du ein shutdown restart gemacht?
Hast Du die fhemServerIP in der Bridge drin? Was sagt verbose 5 im Log
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

Für alle die die entsprechenden Einträge in der Bridge und die SSID fürs Device gemacht haben und es dennoch nicht geht. Bitte einmal ein shutdown restart machen. Geht es dann immer noch nicht. List von Bridge und Device und logauszug vom verbose 5!
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

Restart hatte ich durchgeführt.


Bridge:
ZitatInternals:
   BRIDGE     1
   FD         24
   NAME       AMADCommBridge
   NR         432
   PORT       8090
   STATE      opened
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Readings:
     2016-03-12 15:26:10   expertMode      1
     2016-04-08 19:09:49   fhemServerIP    192.168.178.20
     2016-03-17 12:20:21   receiveVoiceCommand null
     2016-03-17 12:20:21   receiveVoiceDevice WandTabletWohnzimmer
     2016-04-08 19:09:05   state           opened
Attributes:
   room       AMAD
Die IP('s) stimmen.

Log:
Zitat2016.04.08 19:40:41 4: AMAD (WandTabletWohnzimmer) - GetUpdate, FHEM or Device not ready yet
2016.04.08 19:40:56 4: AMAD (WandTabletWohnzimmer) - GetUpdate, FHEM or Device not ready yet
2016.04.08 19:40:05 3: AMAD (WandTabletWohnzimmer) - defined with host 192.168.178.82 on port 8090 and AccessPoint-SSID Sternenflotte_Hauptquartier
2016.04.08 19:40:05 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2016.04.08 19:40:05 3: AMAD (AMADCommBridge) - Attention!!! By the first run, dont forget to "set AMADCommBridge fhemServerIP <IP-FHEM>"
2016.04.08 19:40:05 3: AMADCommBridge: port 8090 opened
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

knopf_piano

Hi,
update 2.0, flow-update.
Auffälligkeiten:
- AMADCommBridge wird nur nach anlegen des amad-device in fhem-web angelegt, wenn ich rereadcfg oder shutdown restart mache ist sie weg. dann muss ich fhem-serverip wieder eintragen
- set <device> screen lock bringt mir fehler "Fehler: Konnte PIN nicht setzen..."
- Leerzeichen in SSID-Name wird nicht angenommen - händisch im .pm eingetragen, damit ich mal arbeiten kann :-)
- attr-typo setOpenUrlBroswer anstatt setOpenUrlBrowser


define am AMAD 192.168.50.84 test
attr am room AMAD
attr am setOpenUrlBroswer de.ozerov.fully|de.ozerov.fully.MainActivity
attr am setScreenlockPIN 1414
attr am root 1
attr am verbose 5


log:

2016-04-08_19:41:33 am flowsetVersionAtDevice: 2.0.0
2016-04-08_19:41:33 am lastStatusRequestState: statusRequest_done
2016-04-08_19:41:33 am active
2016-04-08_19:41:33 am flow_SetCommands: aktiv
2016-04-08_19:41:33 am lastStatusRequestState: statusRequest_done
2016-04-08_19:41:33 am active
2016-04-08_19:41:33 am checkActiveTask:
2016-04-08_19:41:33 am lastStatusRequestState: statusRequest_done
2016-04-08_19:41:33 am active
2016-04-08_19:41:33 am connectedBTdevicesMAC:
2016-04-08_19:41:33 am connectedBTdevices:
2016-04-08_19:41:33 am lastStatusRequestState: statusRequest_done
2016-04-08_19:41:33 am active
2016-04-08_19:41:33 am automagicState: Automagic Premium
2016-04-08_19:41:33 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am flowsetVersionAtDevice: 2.0.0
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am flow_SetCommands: aktiv
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am checkActiveTask:
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am connectedBTdevices:
2016-04-08_19:42:49 am connectedBTdevicesMAC:
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am screenOrientation: portrait
2016-04-08_19:42:49 am screenOrientationMode: auto
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done
2016-04-08_19:42:49 am active
2016-04-08_19:42:49 am screen: off unlocked
2016-04-08_19:42:49 am lastStatusRequestState: statusRequest_done


Grüße
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

Darf ich mal fragen wozu ich eigentlich ein Wikieintag und ne Commandref schreibe wenn sie dann gekonnt ignoriert wird? Leerzeichen in der SSID funktionieren!! Wenn man sie korrekt setzt!!
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

#326
Zitat von: CoolTux am 08 April 2016, 18:10:09
Damit kann ich nichts anfangen.
Mit ein List vom Device machen. Hast Du das Update gemacht? Hast Du das Flowset installiert? Also das alte gelöscht das neue importiert?
Und wie gesagt ich brauche ein list und verbose 5 Auszug des Logs.


Hi, 

Das Flowset habe ich über currentFlowsetUpdate aktualisiert!  Also das 1.9.76 nicht gelöscht.


hier das List
Internals:
   APSSID     Dirks WLAN;ENIGMA2
   DEF        192.168.178.48 Dirks@@WLAN;ENIGMA2
   HOST       192.168.178.48
   NAME       DirksZ4Tablet
   NR         673
   PORT       8090
   STATE      read from to http://192.168.178.48:8090 timed out
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Readings:
     2016-04-06 22:50:26   airplanemode    off
     2016-04-08 18:02:08   androidVersion  6.0 Marshmallow
     2016-04-08 18:02:09   automagicState  Automagic Premium
     2016-04-08 18:02:09   bluetooth       on
     2016-04-08 06:44:48   checkActiveTask
     2016-04-08 18:02:08   connectedBTdevices [BKB50]
     2016-04-08 18:02:08   connectedBTdevicesMAC [90:7F:61:9D:12:66]
     2016-04-08 18:02:09   currentMusicAlbum no soundplayer activ
     2016-04-08 18:02:09   currentMusicArtist no soundplayer activ
     2016-04-08 18:02:09   currentMusicTrack no soundplayer activ
     2016-04-08 09:46:57   deviceState     online
     2016-04-08 18:02:09   dockingState    undocked
     2016-04-08 06:44:48   flow_SetCommands aktiv
     2016-04-08 06:44:48   flow_informations aktiv
     2016-04-08 06:44:48   flowsetVersionAtDevice 1.9.71
     2016-04-07 09:43:40   incomingCallerName Roswitha Hild
     2016-04-07 09:43:40   incomingCallerNumber +49240236621
     2016-04-06 20:06:22   incommingWhatsAppMessageFrom Caves Beach Resort
     2016-04-08 18:02:09   keyguardSet     0
     2016-04-08 09:48:39   lastSetCommandState setCmd_done
     2016-04-08 18:02:37   lastStatusRequestState statusRequest_error
     2016-04-08 18:02:09   nextAlarmDay    off
     2016-04-08 18:02:09   nextAlarmTime   off
     2016-04-08 18:02:08   powerLevel      49.0
     2016-04-08 18:02:08   powerPlugged    0
     2016-04-08 18:02:11   screen          on unlocked
     2016-04-08 18:02:08   screenBrightness 133
     2016-04-08 18:02:09   screenOrientation landscape
     2016-04-08 18:02:09   screenOrientationMode auto
     2016-04-08 18:02:37   state           read from to http://192.168.178.48:8090 timed out
     2016-04-08 18:02:09   volume          7
     2016-04-08 18:02:08   volumeNotification 0
   Helper:
     infoErrorCounter 1
     setCmdErrorCounter 0
Attributes:
   room       AMAD



wenn ich einen StatusRequest mache, wird kurz verbunden und dann wieder getrennt!

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

hyper2910

Zitat von: CoolTux am 08 April 2016, 20:04:38
Darf ich mal fragen wozu ich eigentlich ein Wikieintag und ne Commandref schreibe wenn sie dann gekonnt ignoriert wird? Leerzeichen in der SSID funktionieren!! Wenn man sie korrekt setzt!!
Kommt doch sogar eim Editieren die Info wie es geht!
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

CoolTux

Zitat von: accessburn am 08 April 2016, 19:42:50
Restart hatte ich durchgeführt.


Bridge:Die IP('s) stimmen.

Log:

Dein Device ist offline gesetzt bitte sei so nett und mache noch mal ein shutdown restart.


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

CoolTux

Zitat von: hyper2910 am 08 April 2016, 20:04:58

Hi, 

Das Flowset habe ich über currentFlowsetUpdate aktualisiert!  Also das 1.9.76 nicht gelöscht.


hier das List
Internals:
   APSSID     Dirks WLAN;ENIGMA2
   DEF        192.168.178.48 Dirks@@WLAN;ENIGMA2
   HOST       192.168.178.48
   NAME       DirksZ4Tablet
   NR         673
   PORT       8090
   STATE      read from to http://192.168.178.48:8090 timed out
   TYPE       AMAD
   VERSIONFLOWSET 2.0.0
   VERSIONMODUL 2.0.0
   Readings:
     2016-04-06 22:50:26   airplanemode    off
     2016-04-08 18:02:08   androidVersion  6.0 Marshmallow
     2016-04-08 18:02:09   automagicState  Automagic Premium
     2016-04-08 18:02:09   bluetooth       on
     2016-04-08 06:44:48   checkActiveTask
     2016-04-08 18:02:08   connectedBTdevices [BKB50]
     2016-04-08 18:02:08   connectedBTdevicesMAC [90:7F:61:9D:12:66]
     2016-04-08 18:02:09   currentMusicAlbum no soundplayer activ
     2016-04-08 18:02:09   currentMusicArtist no soundplayer activ
     2016-04-08 18:02:09   currentMusicTrack no soundplayer activ
     2016-04-08 09:46:57   deviceState     online
     2016-04-08 18:02:09   dockingState    undocked
     2016-04-08 06:44:48   flow_SetCommands aktiv
     2016-04-08 06:44:48   flow_informations aktiv
     2016-04-08 06:44:48   flowsetVersionAtDevice 1.9.71
     2016-04-07 09:43:40   incomingCallerName Roswitha Hild
     2016-04-07 09:43:40   incomingCallerNumber +49240236621
     2016-04-06 20:06:22   incommingWhatsAppMessageFrom Caves Beach Resort
     2016-04-08 18:02:09   keyguardSet     0
     2016-04-08 09:48:39   lastSetCommandState setCmd_done
     2016-04-08 18:02:37   lastStatusRequestState statusRequest_error
     2016-04-08 18:02:09   nextAlarmDay    off
     2016-04-08 18:02:09   nextAlarmTime   off
     2016-04-08 18:02:08   powerLevel      49.0
     2016-04-08 18:02:08   powerPlugged    0
     2016-04-08 18:02:11   screen          on unlocked
     2016-04-08 18:02:08   screenBrightness 133
     2016-04-08 18:02:09   screenOrientation landscape
     2016-04-08 18:02:09   screenOrientationMode auto
     2016-04-08 18:02:37   state           read from to http://192.168.178.48:8090 timed out
     2016-04-08 18:02:09   volume          7
     2016-04-08 18:02:08   volumeNotification 0
   Helper:
     infoErrorCounter 1
     setCmdErrorCounter 0
Attributes:
   room       AMAD



wenn ich einen StatusRequest mache, wird kurz verbunden und dann wieder getrennt!

Aus irgendein Grund ist Dein Tablet nicht erreichbar. Mach mal bitte ein shutdown restart.
Und schaue ob Dein Flowset Update geklappt hat. Die Gruppe heißt jetzt was mit 2.0 und ob die Flows aktiv sind. Am besten noch mal die Flows deaktivieren und wieder aktivieren das der Server von Automagic neu gestartet wird.
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