Ich versuche das AMAD Modul mit dem Firetab zum laufen zu bekommen. Ich habe die Testversion von Automagic Premium installiert und auch sonst den rest aus dem Wiki nachgebaut. Aber an zweiter Stelle hänge ich schon:
Zitatset AMADCommBridge fhemServerIP <FHEM-IP>
ergibt folgendes:
ZitatUnknown argument fhemServerIP, bearword as argument or wrong parameter(s), choose one of screenMsg ttsMsg volume deviceState screenBrightness screen screenOrientation screenFullscreen openURL nextAlarmTime statusRequest system bluetooth notifySndFile clearNotificationBar activateVoiceInput volumeNotification vibrate
Auch bei dem nächsten Schritt gehts nicht weiter.
ZitatErstelle einen Flow mit einer HTTP Request Aktion mit folgendem Inhalt
In der App gibt es nur "HTTP Request (Experimental)" und darin sind nicht die Einstellmöglichkeiten wie im Wiki erforderlich.
Alles in allem bekomme ich nur folgendes:
Internals:
DEF 192.168.178.82
HOST 192.168.178.82
INTERVAL 180
NAME AMADCommBridge
NR 431
PORT 8090
STATE initialized
TYPE AMAD
VERSION 1.2.0
Readings:
2016-03-12 14:16:48 deviceState online
2016-03-12 14:28:49 lastStatusRequestError 192.168.178.82: Connection refused
2016-03-12 14:28:49 lastStatusRequestState statusRequest_error
2016-03-12 14:16:48 state initialized
Helper:
infoErrorCounter 4
setCmdErrorCounter 0
Attributes:
room AMAD
Hallo,
was genau möchtest Du denn machen? Das mit HTTP Request benötigst Du nur wenn Du selber Daten an FHEM senden möchtest. Das ist erstmal aussen vor.
Wieso hast Du Dein Androiddevice in FHEM genau so genannt wie die CommBridge sich selbst anlegt mit Namen?
Bitte lese noch mal das Wiki, da steht genau drin wie man ein Gerät definiert.
Das hab ich echt überlesen 8)
Ich hab das XML installiert und auch das Device neu angelegt (mit kreativerem Namen ;D)
Mitlerweile hat sich dann das Readings so verändert:
ZitatReadings:
2016-03-12 14:48:32 deviceState online
2016-03-12 14:51:35 lastStatusRequestError empty response, check automagicApp on your device
2016-03-12 14:51:35 lastStatusRequestState statusRequest_error
2016-03-12 14:48:32 state initialized
Was ich damit machen möchte? Ich möchte wie im Wiki beschrieben die Ladekontrolle des Tablets mit einer Steckdose steuern außerdem will ich das Display bei Homestatus "LangeWeg" deaktivieren und bei einem "Popup" auch wieder aktivieren. Also im grunde nichts wildes...
Ok dazu brauchst du erstmal nichts besonderes weiter machen. Das Flowset installieren und das Device einrichten.
Schau bitte ob Du nun 2 Devices hast. Einmal Dein kreativer Name und einmal die CommBridge.
Des weiteren sollten sich die Flows Informations, SetCommands und VoiceControl in Automagic finden.
Mit der Testversion sind nur max 3 Flows erlaubt. Leider sind aber schon Flows drinn in der Testversion und in der aktuellen 1.2 sind auch 5. Daher werden nicht alle Flows installiert. Am besten die Full Version kaufen.
Ne, hab nur ein Device gefunden jetzt.
Das Einrichten macht mir Kopfweh. Wenn du damit "set AMADCommBridge fhemServerIP <FHEM-IP>" meinst will das nicht funktionieren.
Ich installiere nun dann die volle Version.
Mach mal ein
list TYPE=AMAD
Und poste die Ausgabe.
Wenn da nur ein Device raus kommt dann lösche das bitte und mache erneut ein define für Dein Tablet/Handy.
Grüße
Zitat von: CoolTux am 12 März 2016, 15:08:25
list TYPE=AMAD
Und poste die Ausgabe.
Tadaaa :-)
ZitatInternals:
DEF 192.168.178.82
HOST 192.168.178.82
INTERVAL 180
NAME WandTabletWohnzimmer
NR 431
PORT 8090
STATE initialized
TYPE AMAD
VERSION 1.2.0
Readings:
2016-03-12 14:48:32 deviceState online
2016-03-12 15:06:34 lastStatusRequestError empty response, check automagicApp on your device
2016-03-12 15:06:34 lastStatusRequestState statusRequest_error
2016-03-12 14:48:32 state initialized
Helper:
infoErrorCounter 6
setCmdErrorCounter 0
Attributes:
room AMAD
Sieht doch gut aus. Am besten du machst die Bridge von HAND
define AMADCommBridge AMAD
Und mach mal dann ein list von der Bridge bitte
Zitat
Internals:
DEF 192.168.178.82
HOST 192.168.178.82
INTERVAL 180
NAME WandTabletWohnzimmer
NR 431
PORT 8090
STATE active
TYPE AMAD
VERSION 1.2.0
Readings:
2016-03-12 15:21:34 airplanemode off
2016-03-12 15:21:34 androidVersion 5.1 Lollipop MR1
2016-03-12 15:21:34 automagicState Flow SetCommands mit Fehler beendet
Fehler: Unable to resolve host "none": No address associated with hostname
Last executed: Action StatusRequest
2016-03-12 15:21:34 bluetooth off
2016-03-12 15:21:34 checkActiveTask
2016-03-12 15:21:34 connectedBTdevices
2016-03-12 15:21:34 connectedBTdevicesMAC
2016-03-12 15:21:34 currentMusicAlbum no soundplayer activ
2016-03-12 15:21:34 currentMusicArtist no soundplayer activ
2016-03-12 15:21:34 currentMusicTrack no soundplayer activ
2016-03-12 14:48:32 deviceState online
2016-03-12 15:21:34 flow_SetCommands aktiv
2016-03-12 15:21:34 flow_informations aktiv
2016-03-12 15:21:26 lastSetCommandState cmd_done
2016-03-12 15:09:35 lastStatusRequestError check automagicApp on your device
2016-03-12 15:21:34 lastStatusRequestState statusRequest_done
2016-03-12 15:21:34 nextAlarmDay
2016-03-12 15:21:34 nextAlarmTime
2016-03-12 15:21:34 powerLevel 40.0
2016-03-12 15:21:34 powerPlugged 2
2016-03-12 15:21:34 screen on
2016-03-12 15:21:34 screenBrightness 255
2016-03-12 15:21:34 screenOrientation auto
2016-03-12 15:21:34 state active
2016-03-12 15:20:26 volume 15
2016-03-12 15:21:34 volumeMusikBluetooth
2016-03-12 15:21:34 volumeMusikSpeaker 15
2016-03-12 15:21:34 volumeNotification 7
Helper:
infoErrorCounter 0
setCmdErrorCounter 0
Attributes:
room AMAD
Läuft... "Screen" scheint auf dem Firetab nicht zu funktionieren. An geht es, dann ist aber der Zwangslockscreen aktiv, aus überhaupt nicht.
Hast Du auch die CommBridge?
Ja ist da:
Internals:
BRIDGE 1
CFGFN
CONNECTS 3
FD 25
NAME AMADCommBridge
NR 584
PORT 8090
STATE opened
TYPE AMAD
VERSION 1.2.0
Readings:
2016-03-12 15:26:10 expertMode 1
2016-03-12 15:26:36 fhemServerIP 192.168.178.64
2016-03-12 15:28:12 receiveVoiceCommand null
2016-03-12 15:28:12 receiveVoiceDevice WandTabletWohnzimmer
2016-03-12 15:25:52 state opened
Attributes:
room AMAD
Sehr schön. Na dann viel Spaß mit AMAD ;D
Vielen Dank für die Hilfe CoolTux.
Das mit dem "Screen nicht abschaltbar" hast du zufällig noch nicht gehört, oder?
Geht der Bildschirm nicht aus wenn du screen off setzt? Hatte ich glaube so noch nicht gehört. Kann mich jedenfalls nicht erinnern.
Okay, das problem wäre auch gelöst. Hat sich mit dem fully-Browser "Keep Screen on" gebissen. Nur das dämliche Amazon-Lockscreen muss da weg :D
Versuch mal ein set Tablet screen unlock. Vielleicht hast ja Glück
nüscht :D
Hallo,
ich habe nun auch AMAD installiert, habe aber keine CommBridge.
Ein LIST zeigt mir nur meine 2 Hosts. Sprachausgabe z.B. funktioniert ..
ein define AMADCommBridge AMAD liefert : there is already a AMAD Bridge, di .....
ein list AMADCommBridge liefert : No device named AMADCommBridge found
Gruss
Guten Morgen,
Mach mal bitte ein
list TYPE=AMAD
Grüße
Guten morgen,
Zitat von: CoolTux am 25 März 2016, 07:19:59
Guten Morgen,
Mach mal bitte ein
list TYPE=AMAD
Grüße
Internals:
DEF 192.168.1.227
HOST 192.168.1.227
INTERVAL 180
NAME AMAD_Iconia1
NR 992
PORT 8090
STATE initialized
TYPE AMAD
VERSION 1.2.0
Readings:
2016-03-25 08:25:00 airplanemode off
2016-03-25 08:25:00 androidVersion 5.1 Lollipop MR1
2016-03-25 08:25:00 automagicState Aktiviere Automagic unter Einstellungen -> Benachrichtigungen -> Benachrichtigungszugriff
2016-03-25 08:25:00 bluetooth off
2016-03-25 08:25:00 checkActiveTask
2016-03-25 08:25:00 connectedBTdevices
2016-03-25 08:25:00 connectedBTdevicesMAC
2016-03-25 08:25:00 currentMusicAlbum no soundplayer activ
2016-03-25 08:25:00 currentMusicArtist no soundplayer activ
2016-03-25 08:25:00 currentMusicTrack no soundplayer activ
2016-03-25 08:28:39 deviceState online
2016-03-25 08:25:00 flow_SetCommands aktiv
2016-03-25 08:25:00 flow_informations aktiv
2016-03-25 08:24:17 lastSetCommandState cmd_done
2016-03-25 08:25:00 lastStatusRequestState statusRequest_done
2016-03-25 08:25:00 nextAlarmDay
2016-03-25 08:25:00 nextAlarmTime
2016-03-25 08:25:00 powerLevel 100.0
2016-03-25 08:25:00 powerPlugged 0
2016-03-25 08:25:00 screen on
2016-03-25 08:25:00 screenBrightness 188
2016-03-25 08:25:00 screenOrientation landscape
2016-03-25 08:28:39 state initialized
2016-03-25 00:07:21 volume 15
2016-03-25 08:25:00 volumeMusikBluetooth
2016-03-25 08:25:00 volumeMusikSpeaker 15
2016-03-25 08:25:00 volumeNotification 15
Helper:
infoErrorCounter 0
setCmdErrorCounter 0
Attributes:
room Interfaces
Hab jetzt auch alle AMADs nochmal geloescht, Fhem neu gestartet und obiges Device neu angelegt.
Aber keine CommBridge wird erzeugt.
Kann das Tablet zwar steuern z.B. mit Screen On, das funktioniert, aber aufm Tablet erscheint ein Fehler :
Flow SetCommands mit Fehler beendet ... Unable to resolve host "none" . No address associated with hostname
Gruss
Bitte noch Löchen. Dann noch mal anlegen aber mit Namen Tablet.
define Tablet AMAD IP
Hi,
Tablet gibts bei mir schon, hab jetzt TabletOne (ohne underscore) verwendet und gleichzeitig auf Version 2 geswitched :-[
Oder was soll es mit dem Namen "Tablet" auf sich haben ?
2016.03.25 09:05:06 3: AMAD (AMAD_Iconia1) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:05:06 3: AMAD (AMAD_Iconia1) - GetUpdate, Please set fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:06:38 3: AMAD (AMADCommBridge) - defined Bridge with Socketport 8090
2016.03.25 09:06:38 3: AMAD (AMADCommBridge) - Attention!!! By the first run, dont forget to "set AMADCommBridge fhemServerIP <IP-FHEM>"
2016.03.25 09:06:38 1: define AMADCommBridge AMAD: AMADCommBridge: Can't open server port at 8090: Address already in use
2016.03.25 09:06:38 3: AMAD (TabletOne) - defined with host 192.168.1.227 on port 8090 and AccessPoint-SSID FRITZ!BoxJo
2016.03.25 09:06:54 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:06:54 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:07:09 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:07:09 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:07:24 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:07:24 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:07:39 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:07:39 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:07:54 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:07:54 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:08:09 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:08:09 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:08:24 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:08:24 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:08:39 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:08:39 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:08:54 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:08:54 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:09:09 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:09:09 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:09:24 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:09:24 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:09:39 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:09:39 3: AMAD (TabletOne) - GetUpdate, Please set AMADCommBridge fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:16:35 3: AMAD (TabletOne) - GetUpdate, Please set fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:16:50 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:16:50 3: AMAD (TabletOne) - GetUpdate, Please set fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:17:05 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:17:05 3: AMAD (TabletOne) - GetUpdate, Please set fhemServerIP <IP-FHEM> NOW!
2016.03.25 09:17:20 3: AMAD (TabletOne) - GetUpdate, FHEM or Device not ready yet
2016.03.25 09:17:20 3: AMAD (TabletOne) - GetUpdate, Please set fhemServerIP <IP-FHEM> NOW!
Internals:
APSSID FRITZ!BoxJo
DEF 192.168.1.227 FRITZ!BoxJo
HOST 192.168.1.227
NAME TabletOne
NR 992
PORT 8090
STATE initialized
TYPE AMAD
VERSIONFLOWSET 1.9.61
VERSIONMODUL 1.9.61
Readings:
2016-03-25 09:13:40 state initialized
Helper:
infoErrorCounter 0
setCmdErrorCounter 0
Attributes:
room AMAD
ein manuelles define der Commbridge liefert nun : AMADCommBridge: Can't open server port at 8090: Address already in use
TabletOne geht nicht "active" ...
Gruss
A er angelegt ist die Bridge. Korrekt? Hast Du einen Dienst der schon auf Port 8090 läuft?
Wenn die Bridge angelegt ist, mach mal bitte sein
set AMADCommBridge fhemServerIP ...
Und dann ein Neustart.
Nein die Bridge fehlt nach wie vor ...
Komischerweise lieferte nach Neustart : define AMADCommBridge AMDA den Fehler :
AMADCommBridge: Can't open server port at 8090: Address already in use
Jetzt kommt :
there is already a AMAD Bridge, did you want to define a AMAD host use: define <name> AMAD <HOST-IP> <ACCESSPOINT-SSID>
Aber die Bridge ist definitiv nicht da ...
8090 ist der Port meines FHEMWEBs ...
Internals:
CONNECTS 90
DEF 8090 global
FD 7
NAME WEBopen
NR 31
NTFY_ORDER 50-WEBopen
PORT 8090
STATE Initialized
TYPE FHEMWEB
Attributes:
editConfig 1
iconPath default:fhemSVG:openautomation:wetter_PP:wetter_yahoo_60
longpoll 1
refresh 3600
room Interfaces
sortRooms Interfaces Schalter Heizung Strom Rolladen Wetter
stylesheetPrefix darktouchpad
Dann kann das auch nichts werden.
Ich habe zwar eine Änderung der Ports vvor gesehen und auch im Modul eingebaut. Aber die Flows sind noch nicht so weit.
Wäre es möglich Deine Webinstanz auf einen anderen Port zu legen?
Hab grad mal ins 74_AMAD.pm geschaut und folgendes gefunden :
my $port = 8090;
Wenn Du den Port 8090 intern verwendest ist klar dass bei mir die Meldung kommt Port bereits belegt !!!
Ich versuche mal meinen zu verlegen, mit allem was dran hängt ....
Alternativ kann ich Dir anbieten die Tage die Port Änderung über Attribut fertig zu bauen. Ist ja nur das Flowset noch. Bridge und Device haben ja schon das Attribut Port. Aber das würde wegen der Flows noch nicht gehen.
Bingo.
Bin mit meinem FHEMWEB auf 8099 gegangen und schon konnte ich (nach reboot) die Bridge von Hand anlegen ...
Server IP und Expert Mode gesetzt ...
Die Portänderung als Attribut wäre natürlich das Schönste ...
Nun machen wir aber weiter im Thread Version 2, denn mein AMAD-Device geht nicht auf active ...
Zitat von: CoolTux am 25 März 2016, 10:55:12
Alternativ kann ich Dir anbieten die Tage die Port Änderung über Attribut fertig zu bauen. Ist ja nur das Flowset noch. Bridge und Device haben ja schon das Attribut Port. Aber das würde wegen der Flows noch nicht gehen.
Ich bin nun auch mit amad am testen. Allerdings ist bei mir der Port 8090 anderweitig belegt.
Gibt es denn mittlerweile die Möglichkeit den Port zu ändern?
Habe mir erstmal geholfen, indem ich den Port im Modul auf 8099 gesetzt habe und die Einrichtung am Handy auch darauf bezogen habe.
Somit läuft es erstmal, aber es wäre schön, wenn das per attribut im Modul gesetzt werden könnte.
Schaue ich mir die Tage einmal an. Sollte ich mich innerhalb von 14 Tagen nicht melden bitte noch mal anstupsen.
Hi cooltux,
ich sollte Dich ja nochmal ansprechen wegen der variablen Port-Einstellung :)
Das tue ich hiermit ;)
Wäre schön, wenn Du das noch integrieren könntest. Aktuell ändere ich den Port immer im Modul selbst.
Stimmt da war noch was. Ich sehe mal das ich da am WE was mache.
Ich habe gerade gesehen das ich da schon was eingebaut hatte. Kannst Du bitte einmal Deine Definition der CommBridge erweitern und am Ende den Port mit angeben?
define myAMADCommBridge AMADCommBridge 8099
Grüße
Super. Das hat funktioniert!! Danke.
in der Device-Übersicht der AmadCommBridge steht nun auch unter "DEF" der Port 8099, sowie weiter unten unter PORT.
Habe vorher in den Amad-Modul-Dateien wieder den Default-Wert 8090 eingetragen, den ich vorher manuell überschrieben hatte.
Prima!
Habe ich wohl mal vergessen zu Dokumentieren. Hole ich die Tage nach.