[ VERSION 1.2.0 ] 74_AMAD.pm zur Steuerung eines Androidgerätes

Begonnen von CoolTux, 07 August 2015, 09:39:01

Vorheriges Thema - Nächstes Thema

CoolTux

Hallo Olli,

Super, Mensch das freut mich das es nun geht. Kein Problem, ist super gut das wirnun wissen dass FQDN wohl Probleme bereiten. Halte ich Morgen im Wiki fest.
Und nun ungestressten Spass mit AMAD gewünscht  ;D



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

HoTi

Hallo

Gib mir doch bitte ein tipp wo ich suchen soll wenn mein Device ständig auf disabel ist? Gestern hat dich AM mit einem Fehler verabschiedet und nun geht nichts mehr.

Ich habe keine Fehler im Fhem log. Ich brauche nen tipp zum ansetzen damit ich dir alle nötigen Informationen zukommen lassen kann. Irgendwie merkwürdig.

Stand ist der Auslieferungsstand (aktuell heute nen Fhem update gemacht)
Viele Grüße aus  Oberbayern
Tim (RettungsTim)

CoolTux

Hallo Tim,

Stelle mal das verbose des Devices auf 5 und wenn es wieder auf disable ist schicke mir das log zu. Ausserdem brauche ich ein list vom Device damit ich sehen kann wie hoch die internen error counter stehen.



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

HoTi

Also versuche ich das mal.

Warum ist das Attr. Disable 1 gesetzt. Das habe ich 100% nicht gesetzt, ich habe noch nie mit diesem Attribut gearbeitet!

*edit* damit hat sich dann meine Frage erlegt. grml... was soll das ich war nicht einmal zuhause...

Log mit Verbosen 5 und FHEM neustart:
2016.01.05 19:55:50 1: Including fhem.cfg
2016.01.05 19:55:50 3: telnetPortSSL: port 7072 opened
2016.01.05 19:55:50 3: telnetForBlockingFn: port 7073 opened
2016.01.05 19:55:50 3: WEB: port 8083 opened
2016.01.05 19:55:50 3: WEBtablet: port 8084 opened
2016.01.05 19:55:51 2: eventTypes: loaded 6225 events from /opt/fhem/log/eventTypes.txt
2016.01.05 19:55:51 3: TABLETUI: new ext defined infix:tablet/index.html: dir:./www/tablet:
2016.01.05 19:55:51 3: Registering HTTPSRV TABLETUI for URL /tablet/index.html   and assigned link tablet/index.html ...
2016.01.05 19:55:52 1: HMLAN_Parse: hmusb new condition disconnected
2016.01.05 19:55:52 3: Opening hmusb device 127.0.0.1:1234
2016.01.05 19:55:52 3: hmusb device opened
2016.01.05 19:55:52 1: HMLAN_Parse: hmusb new condition init
2016.01.05 19:56:01 3: OWTHERM: Device 05_Aquarium_T1 defined.
given is experimental at ./FHEM/59_PROPLANTA.pm line 498, <$fh> line 866.
when is experimental at ./FHEM/59_PROPLANTA.pm line 500, <$fh> line 866.
when is experimental at ./FHEM/59_PROPLANTA.pm line 504, <$fh> line 866.
given is experimental at ./FHEM/77_UWZ.pm line 175, <$fh> line 888.
when is experimental at ./FHEM/77_UWZ.pm line 177, <$fh> line 888.
when is experimental at ./FHEM/77_UWZ.pm line 181, <$fh> line 888.
2016.01.05 19:56:04 3: Opening my_callmonitor device 192.168.178.1:1012
2016.01.05 19:56:04 3: my_callmonitor device opened
2016.01.05 19:56:04 3: FB_CALLMONITOR (my_callmonitor) - loading cache file /opt/fhem/callmoncache.txt
2016.01.05 19:56:04 2: FB_CALLMONITOR (my_callmonitor) - read 95 contacts from Cache
2016.01.05 19:56:04 3: FHEM2FHEM opening telnet_heizung at 192.168.178.45:7072
2016.01.05 19:56:07 3: Can't connect to 192.168.178.45:7072: No route to host
2016.01.05 19:56:08 3: AMAD (Display) - defined with host 192.168.178.42 on port 8090 and interval 180 (sec)
2016.01.05 19:56:08 3: AMAD (Display) - disabled
2016.01.05 19:56:08 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2016.01.05 19:56:08 3: AMADCommBridge: port 8090 opened
2016.01.05 19:56:08 1: Including /opt/fhem/log/fhem.save
2016.01.05 19:56:10 3: Device Display_FLUR added to ActionDetector with 000:10 time
2016.01.05 19:56:10 3: Device EG_TH added to ActionDetector with 012:00 time
2016.01.05 19:56:10 3: Device EG_ez_LI added to ActionDetector with 000:10 time
2016.01.05 19:56:10 3: Device EG_ez_TK_mi added to ActionDetector with 028:00 time
2016.01.05 19:56:10 3: Device EG_wc_FK_mi added to ActionDetector with 028:00 time
2016.01.05 19:56:10 3: Device EG_wz_LI added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device EG_wz_RT_links added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device EG_wz_RT_rechts added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device EG_wz_TC added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device GT_ga_BM added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device KE_hr_TK added to ActionDetector with 028:00 time
2016.01.05 19:56:11 3: Device OC3 added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device OG_TH added to ActionDetector with 012:00 time
2016.01.05 19:56:11 3: Device OG_az_FK_dach added to ActionDetector with 028:00 time
2016.01.05 19:56:11 3: Device OG_bz_FK_dach added to ActionDetector with 028:00 time
2016.01.05 19:56:11 3: Device OG_bz_RT_Fenster added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device OG_bz_RT_Wand added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device OG_bz_TC added to ActionDetector with 000:10 time
2016.01.05 19:56:11 3: Device OG_kz_RT added to ActionDetector with 000:10 time
2016.01.05 19:56:12 3: Device OG_kz_TK_mi added to ActionDetector with 000:50 time
2016.01.05 19:56:12 3: Device OG_sz_TK_mi added to ActionDetector with 000:50 time
2016.01.05 19:56:12 3: Device Waesche added to ActionDetector with 000:10 time
2016.01.05 19:56:12 3: Opening FIRMATA device /dev/firmata
2016.01.05 19:56:12 3: Can't open /dev/firmata: No such file or directory
2016.01.05 19:56:12 1: OWX: 1-Wire bus Temperatur: interface Firmata detected in FIRMATA
2016.01.05 19:56:12 1: usb create starting
2016.01.05 19:56:13 1: usb create end
2016.01.05 19:56:14 3: mailcheck: connected to
2016.01.05 19:56:14 3: mailcheck: logged in to
2016.01.05 19:56:15 2: SecurityCheck:  WEBtablet has no associated allowed device with basicAuth. telnetForBlockingFn has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2016.01.05 19:56:15 0: Featurelevel: 5.7
2016.01.05 19:56:15 0: Server started with 306 defined entities (fhem.pl:10363/2016-01-04 perl:5.020002 os:linux user:fhem pid:2798)
2016.01.05 19:56:15 3: CUL_HM set Display_FLUR_Sw statusRequest
2016.01.05 19:56:15 1: HMLAN_Parse: hmusb new condition ok
2016.01.05 19:56:16 3: CUL_HM set EG_ez_LI_Sw statusRequest
2016.01.05 19:56:17 3: CUL_HM set EG_wz_LI_Sw statusRequest
2016.01.05 19:56:18 3: CUL_HM set GT_ga_TO statusRequest
2016.01.05 19:56:19 3: CUL_HM set Waesche_Sw statusRequest
2016.01.05 19:56:22 1: OWX: 1-Wire devices found on bus Temperatur ()


hier der list:


Internals:
   DEF        192.168.178.42
   HOST       192.168.178.42
   INTERVAL   180
   NAME       Display
   NR         882
   PORT       8090
   STATE      disabled
   TYPE       AMAD
   VERSION    1.0.0
   Readings:
     2016-01-03 15:46:59   androidVersion  4.2 Jelly Bean
     2016-01-03 15:46:59   automagicState  not supported from your device
     2016-01-03 15:46:59   bluetooth       off
     2016-01-03 15:46:59   checkActiveTask
     2016-01-03 15:46:59   connectedBTdevices
     2016-01-03 15:46:59   connectedBTdevicesMAC
     2016-01-03 15:46:59   currentMusicAlbum no soundplayer activ
     2016-01-03 15:46:59   currentMusicArtist no soundplayer activ
     2016-01-03 15:46:59   currentMusicTrack no soundplayer activ
     2016-01-05 19:56:08   deviceState     online
     2016-01-05 18:32:15   display         aus
     2016-01-03 15:46:59   flow_SetCommands aktiv
     2016-01-03 15:46:59   flow_informations aktiv
     2016-01-03 17:52:34   lastSetCommandError 192.168.178.42: No route to host
     2016-01-03 17:52:34   lastSetCommandState cmd_error
     2016-01-03 17:53:00   lastStatusRequestError unknown error, please contact the developer
     2016-01-05 18:32:15   lastStatusRequestState statusRequest_done
     2016-01-03 15:46:59   nextAlarmDay
     2016-01-03 15:46:59   nextAlarmTime
     2016-01-03 15:46:59   powerLevel      1.0
     2016-01-03 15:46:59   powerPlugged    0
     2016-01-03 15:46:59   screen          on
     2016-01-03 15:46:59   screenBrightness 130
     2015-12-23 14:14:13   screenFullscreen off
     2015-12-23 16:27:24   screenLock      off
     2016-01-03 15:46:59   screenOrientation auto
     2016-01-05 19:56:08   state           disabled
     2016-01-05 18:17:16   touch           ja
     2016-01-03 15:46:59   volumeMusikBluetooth
     2016-01-03 15:46:59   volumeMusikSpeaker 12
     2016-01-03 15:46:59   volumeNotification 7
   Helper:
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   disable    1
   room       AMAD
   root       1
   verbose    5
Viele Grüße aus  Oberbayern
Tim (RettungsTim)

CoolTux

Es gab ein Problem mit der erreichbarkeit des Tablets. Nach 9 mal nicht erfolgreichen statusRequest und und 3 mal nicht erfolgreichen setCommand wird das Device deaktiviert um Ressourcen zu sparen. Lösch mal das disable und starte FHEM neu.



Grüße

PS: Kommt sowas oft bei Dir vor? Dann solltest Du mal schauen ob die Verbindung zum Tablet eventuell oft abreißt. Es kommt vor das einige Androiden bei Standby das WLAN abschalten.
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

HoTi

nein das war das erste mal. und das auch nur weil sich AM aufgehängt hat.

jetzt geht es wieder, dann weiß ich das nächste mal bescheid.
Viele Grüße aus  Oberbayern
Tim (RettungsTim)

limats

Hallo zusammen,

mir ist heute aufgefallen, dass mein Tablet es irgendwie schafft, mehrere Connections zu FHEM aufzumachen:


root@arm:/opt/fhem# netstat -a|grep 8090
tcp        0      0 *:8090                  *:*                     LISTEN     
tcp        0      0 arm.fritz.box:8090      FlurTablet.fritz.:60738 VERBUNDEN 
tcp        0      0 arm.fritz.box:8090      FlurTablet.fritz.:36288 VERBUNDEN 
tcp        0      0 arm.fritz.box:8090      FlurTablet.fritz.:37641 VERBUNDEN 
tcp        0      0 arm.fritz.box:8090      FlurTablet.fritz.:48209 VERBUNDEN


Und im FHEM habe ich dann folgende CommBridge-Devices:

AMADCommBridge
AMADCommBridge_192.168.1.14_36288
AMADCommBridge_192.168.1.14_37641
AMADCommBridge_192.168.1.14_48209
AMADCommBridge_192.168.1.14_60738

Sollte eigentlich nicht sein, oder?
Ursache könnte sein, dass mein Tablet vorher Netzwerkprobleme hatte. Zumindest gab es dort eine Automagic-Fehlermeldung von wegen "Network unreachable".

Gruß
Leo
Fhem auf BBB:
HM-CFG-USB für div. HM-Sensoren, CUL+WMBUS für EnergyCam, Nanocul für IT, Arduino Mega 2560 als 1-wire-Gateway und für div. digitale Ein-/Ausgänge, Volkszähler-USB-IR-Lesekopf mit SMLUSB, Solarsteuerung über VBUS

CoolTux

Das ist durchaus möglich. Schau mal ob Du die Verbindungen irgendwie weg bekommst. Eventuell durch FHEM neustart.
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

limats

Hab sie jetzt mit "delete" gelöscht. Das funktioniert natürlich.
Wär aber interessant zu wissen, wie man die mehrfachen Verbindungen verhindern kann (entweder auf Automagic-Seite oder im FHEM).
Ist bzgl. Ressourcen bestimmt nicht optimal, wenn immer mehr Sockets aufgemacht werden.
Fhem auf BBB:
HM-CFG-USB für div. HM-Sensoren, CUL+WMBUS für EnergyCam, Nanocul für IT, Arduino Mega 2560 als 1-wire-Gateway und für div. digitale Ein-/Ausgänge, Volkszähler-USB-IR-Lesekopf mit SMLUSB, Solarsteuerung über VBUS

CoolTux

Ich kann mir da bei passender Gelegenheit ja mal Gedanken machen.     ;D



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

Pyromane

Guten Abend,

an erster Stellt möchte ich ein dickes Danke für die Erweiterung aussprechen. Zusammen mit einem HM Bewegungsmelder dient mein 10" Tab nun der zentralen Steuerung/Übersicht.  :)

Laut Wiki sollte beim ersten Anlegen automatisch ein "AMADCommBridge" erstellt werden, da ich jedoch AMAD lange vor dieser Erweiterung angelegt habe fehlt mir nun diese AMAD Instanz. Wie kann ich diese nachträglich anlegen?

CoolTux


define AMADCommBridge AMAD


Wichtig dabei ist FHEM Update machen auf 1.0 und Flowset 1.0 installieren.





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

hyper2910

Hi,

ein klasse Modul.  Jedoch bekomme ich von meinen Sony Devices nur eine Verbindung mit den Flows 0.6, wenn ich 1.0.0 importiere bleiben die Device auf Initialized.
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

Pyromane


CoolTux

Zitat von: hyper2910 am 08 Januar 2016, 18:20:05
Hi,

ein klasse Modul.  Jedoch bekomme ich von meinen Sony Devices nur eine Verbindung mit den Flows 0.6, wenn ich 1.0.0 importiere bleiben die Device auf Initialized.

Vielleicht ist das WLan Kabel lose?   ;)
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