Logitech Harmony Hub

Begonnen von der-Lolo, 07 August 2013, 14:17:16

Vorheriges Thema - Nächstes Thema

Markus M.

Zitat von: justme1968 am 19 Dezember 2018, 17:47:25- die discovery sollte jetzt automatisch gehen. d.h. wie früher nur define <hub> harmony <ip>.
-@Markus M.: die domain wird jetzt aus der discover nachricht ausgelesen. schau mal ob das auch bei dir geht.
Discovery funktioniert jetzt, Verbindung auch.
Allerdings funktionieren jetzt keine Aktionen mehr, es tut sich nichts und danach kommt unmittelbar "Disconnected"

2018.12.19 18:08:58 4: harmony: connect
2018.12.19 18:08:58 3: harmony: connected
2018.12.19 18:08:58 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:09:12 4: harmony: sending PowerOff for 0.1s for Receiver
2018.12.19 18:09:12 4: harmony: send: <iq type='render' id='7'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction'>status=press:action={'command'::'PowerOff','type'::'IRCommand','deviceId'::'46111130'}:timestamp=0</oa></iq>
2018.12.19 18:09:12 1: cmd: vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction
2018.12.19 18:09:12 1: txt: { "hbus": { "cmd": "vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction" } }
2018.12.19 18:09:12 4: harmony: send: <iq type='render' id='8'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction'>status=release:action={'command'::'PowerOff','type'::'IRCommand','deviceId'::'46111130'}:timestamp=100</oa></iq>
2018.12.19 18:09:12 1: cmd: vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction
2018.12.19 18:09:12 1: txt: { "hbus": { "cmd": "vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction" } }
2018.12.19 18:09:12 2: harmony: disconnect
2018.12.19 18:09:14 4: harmony: connect
2018.12.19 18:09:14 3: harmony: connected
2018.12.19 18:09:14 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:09:22 2: harmony: disconnect
2018.12.19 18:09:22 4: harmony: connect
2018.12.19 18:09:22 3: harmony: connected
2018.12.19 18:09:22 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:09:34 4: harmony: send: <iq type='get' id='9'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity'>activityId=27345944:timestamp=0</oa></iq>
2018.12.19 18:09:34 1: cmd: vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity
2018.12.19 18:09:34 1: txt: { "hbus": { "cmd": "vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity","params":{"activityId":"27345944"} } }
2018.12.19 18:09:34 2: harmony: disconnect
2018.12.19 18:09:36 4: harmony: connect
2018.12.19 18:09:36 3: harmony: connected
2018.12.19 18:09:36 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:09:42 4: harmony: send: <iq type='get' id='10'><oa xmlns='connect.logitech.com' mime='vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity'>activityId=27345944:timestamp=0</oa></iq>
2018.12.19 18:09:42 1: cmd: vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity
2018.12.19 18:09:42 1: txt: { "hbus": { "cmd": "vnd.logitech.harmony/vnd.logitech.harmony.engine?startActivity","params":{"activityId":"27345944"} } }
2018.12.19 18:09:42 2: harmony: disconnect
2018.12.19 18:09:44 4: harmony: connect
2018.12.19 18:09:44 3: harmony: connected
2018.12.19 18:09:44 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:10:41 2: harmony: disconnect
2018.12.19 18:10:41 4: harmony: connect
2018.12.19 18:10:41 3: harmony: connected
2018.12.19 18:10:41 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
2018.12.19 18:11:41 2: harmony: disconnect
2018.12.19 18:11:43 4: harmony: connect
2018.12.19 18:11:43 3: harmony: connected
2018.12.19 18:11:43 4: harmony: send: <stream:stream to='connect.logitech.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

justme1968

in deinem log ist etwa komisch. da wird am anfang noch das alte protokoll verwendet. das sollte überhaupt nicht sein.
da sind auch keine discovery nachrichten im log.

bist du sicher das es die neue version ist?

am anfang wird auch noch eine taste gesendet. das ist noch nicht drin. nur activities.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

turo

Zitat von: justme1968 am 19 Dezember 2018, 17:47:25
...

kann bitte jemand mit der neuen firmware mal die protocolVersion zeile aus einem list zeigen. ich wüsste gerne ob da xmpp noch drin steht. daran könnte man dann entscheiden ob man das alte prokoll verwendet oder das neue.
Bitte sehr:
  current_fw_version 4.15.206
...
  protocolVersion {HTTP="1.0", RF="1.0", WEBSOCKET="1.0"}


Gruss,
Turo
3xRaspberry PI, Homematic, SELVE Rollos, 1-wire, Logitech Harmony, Alexa, Fussbodenheizung (ESP8266), Netatmo

jual

Zitat von: justme1968 am 19 Dezember 2018, 17:47:25
neue testversion im anhang.

...

kann bitte jemand mit der neuen firmware mal die protocolVersion zeile aus einem list zeigen. ich wüsste gerne ob da xmpp noch drin steht. daran könnte man dann entscheiden ob man das alte prokoll verwendet oder das neue.

Erst einmal Danke für die schnelle Umsetzung. Ich bin gestern schon echt verzweifelt, dass sich mein Hub nicht mehr connecten wollte. Nachfolgend mal ein List meines Hubs (ich hoffe, dass ich die Sicherheitsrelevanten Infos alle rausgenommen habe):

Internals:
   CONNECTS   1
   ConnectionState Connected
   DEF        crypt:0b510d55580d5b5f775008030a5c4b545a5a crypt:0b45005510540b07010e 192.XXX.X.41
   FD         100
   LAST_CONNECT 2018-12-19 19:09:26
   NAME       WohnzimmerHub
   NOTIFYDEV  global
   NR         177
   NTFY_ORDER 50-WohnzimmerHub
   STATE      Connected
   TYPE       harmony
   activityStatus 2
   buf       
   currentActivityID 36335650
   hubSwVersion 4.15.206
   hubUpdate  0
   ip         192.XXX.X.41
   remoteId   XXXXXXXX
   syncStatus 0
   websocket  1
   READINGS:
     2018-12-19 18:43:59   activity        Fernsehen
     2018-12-19 19:10:15   currentActivity Fernsehen
     2018-12-19 19:09:25   state           Connected
   config:
     activity:
       HASH(0x56404d8)
       HASH(0x53e4498)
       HASH(0x53e7d40)
       HASH(0x53eb698)
       HASH(0x51eef80)
       HASH(0x51ef8c8)
       HASH(0x51f73e8)
     content:
       contentDeviceHost https://content.dhg.myharmony.com/1.0/Device;{deviceProfileUri}
       contentImageHost https://d1tk8oqnnsddt5.cloudfront.net/1.0/station/{stationId}/image;maxX=40;maxY=40
       contentServiceHost https://content.dhg.myharmony.com/1.0/Service/{providerId}
       contentUserHost https://content.dhg.myharmony.com/1.0/User;{userProfileUri}
       householdUserProfileUri svcs.myharmony.com/res//household/7744159-gaMEgCozYXIGxjipT7XgM6WPk2d7a15V1F5S25Dv41U=/user/default
     device:
       HASH(0x5668c58)
       HASH(0x53c5ec8)
       HASH(0x566a410)
       HASH(0x4e7b780)
       HASH(0x56fb460)
       HASH(0x5668f40)
       HASH(0x56f8a58)
       HASH(0x559b268)
       HASH(0x57719a0)
       HASH(0x5772600)
       HASH(0x56a5ab8)
       HASH(0x563f378)
       HASH(0x5640178)
     global:
       locale     de-DE
       timeStampHash 53506f3e-daf4-49d2-b424-0a1e62a0f191d7a8ab2c-8f3b-492c-885b-dc55aa5e7e69/250d91d3-6a7e-40e0-b51d-3797db1fb9abf0648474-32f2-419f-b67b-247ea5d52e472c6c09f2-778b-457b-bc67-85c792265edd10326310Wohnzimmerde-DEXXXX@gmail.comDEMS-be325f5d-df33-4e0c-b445-972cf89a356d0-1547942349False669367933europe%2fberlinTrue-7460589421;9678edcc5901d1632d9626cb463e5168
     sequence:
       HASH(0x53c42d0)
       HASH(0x5307218)
     sla:
       latestSLAAcceptedDate /Date(1509463202147+0000)/
   discoveryinfo:
     accountId  XXXXXXX
     current_fw_version 4.15.206
     discoveryServerUri https://svcs.myharmony.com/Discovery/Discovery.svc
     discoveryServerUriCF https://cf-svcs.myharmony.com/Discovery/Discovery.svc
     email      XXXX@gmail.com
     friendlyName Wohnzimmer
     host_name  Wohnzimmer
     hubId      97
     hubProfiles {Harmony="2.0"}
     ip         192.XXX.X.41
     minimumOpenApiClientVersionRequired 1
     mode       3
     oohEnabled true
     openApiVersion 2
     port       5222
     productId  Pimento
     protocolVersion {HTTP="1.0", RF="1.0", WEBSOCKET="1.0"}
     recommendedOpenApiClientVersion 1
     remoteId   XXXXXXXXX
     setupSessionClient MS-be325f5d-df33-4e0c-b445-972cf89a356d
     setupSessionIsStale true
     setupSessionSetupType
     setupSessionType 0
     setupStatus 0
     uuid       XXXXXXXXX


Scheint nun erst einmal für meinen Bedarf wieder zu funktionieren, auch mit der neuen Firmware. Ich werde mal noch ein wenig testen.

betateilchen

Mit der Firmware 201 und der neuen Testversion:


discoveryinfo:
     accountId  ...
     current_fw_version 4.15.201
     discoveryServerUri https://svcs.myharmony.com/Discovery/Discovery.svc
     discoveryServerUriCF https://cf-svcs.myharmony.com/Discovery/Discovery.svc
     email      ...
     friendlyName Wohnzimmer
     host_name  Wohnzimmer
     hubId      97
     hubProfiles {Harmony="2.0"}
     ip         192.168.123.220
     minimumOpenApiClientVersionRequired 1
     mode       3
     oohEnabled true
     openApiVersion 2
     port       5222
     productId  Pimento
     protocolVersion {XMPP="1.0", HTTP="1.0", RF="1.0", WEBSOCKET="1.0"}
     recommendedOpenApiClientVersion 1
     remoteId   ...
     setupSessionClient SilverlightWebClient
     setupSessionIsStale true
     setupSessionSetupType
     setupSessionType 0
     setupStatus 0
     uuid       ...


Das heißt, es wird mit port 5222 gearbeitet, wenn dieser verfügbar ist?

Und den Eintrag "openApiVersion" finde ich besonders lustig  8)
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

justme1968

die test version nimmt aktuell nur das websocket api.

wie es ausschaut kann man an hand der discoveryinfo entscheiden ob das alte api noch geht.

ich baue die automatische api wahl noch ein und checke das ganze dann ein.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

offen wie ein scheunentor ist es ja nach wie vor :). mal sehen wie lange noch :(
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

xschmidt

#1492
Ihr seid echt die Größten! es funzt wieder! Vielen Dank für die super schnellen Umbaumaßnahmen. Ich hab meinem hub jetzt auch das Internet gekappt. Macht es Sinn das nur auf spezifische URLs zu beschränken?

Ups, zu früh gefreut, der Hub connectet und die Activities sind nutzbar, die einzelnen Devices jedoch noch nicht. In denen ist auch keine Remote ID hinterlegt, gibt es da noch einen Trick?

Markus M.

Zitat von: justme1968 am 19 Dezember 2018, 19:54:25
die test version nimmt aktuell nur das websocket api.
wie es ausschaut kann man an hand der discoveryinfo entscheiden ob das alte api noch geht.
ich baue die automatische api wahl noch ein und checke das ganze dann ein.

Wieso willst du die alte drinlassen?
Da die Websocket Kommunikation auch mit der alten Firmware funktioniert, macht das eigentlich keinen Sinn.
Macht nur den Code unübersichtlicher  ;D
FHEM dev + HomeBridge + Lenovo Flex15 + HM-CFG-USB + RFXtrx433 + Fritz!Box 7590/7580/546E

HM Aktor/Sensor/Winmatic/Keymatic/Thermostat, HUE, Netatmo Weather/Security/Heating, Xiaomi AirPurifier/Vacuum, Withings Aura/BPM/Cardio/Go/Pulse/Thermo, VSX828, Harmony, Siro ERB15LE
https://paypal.me/mm0

justme1968

weil mit der alten version zumindest aktuell noch einiges mehr geht.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

wie oben schon geschrieben sind aktuell nur activities eingebaut. der rest kommt nach und nach.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

swsmily

Ich muss hier mal DANKE sagen.

Es ist so erstaunlich, wie schnell hier nach anderen Wegen gesucht wird, aber auch auf Workarounds hingewiesen wird.
Ich habe heute durch einen neuen MediaReceiver meine Konfiguration der Harmony Elite ändern müssen.
Ich habe also dem HUB in der Fritzbox doch wieder den Zuriff aufs Internet erlauben müssen, meine Änderungen gemacht und anschließend über das Downgrade eine ältere Firmware auf den Hub gespielt. Und dem HUB den Internetzugriff wieder gesperrt.

So funktioniert erstmal alles weiter, wie ich es gewohnt bin. Ich hoffe, dass Logitech noch einknickt und diese API wieder öffnet. Das Argument Sicherheit ist ja völliger Quatsch. Lokale APIs werden gesperrt, aber API übers Internet ist ja sooooo sicher...  >:(


Danke an die Community hier!!!

The-Holgi

Hallo,
habe gerade ein ,,downgrade" der Hub Firmware durchgeführt.
Erstmal geht alles wieder wie es soll.
Hoffe ihr schreibt alle fleißig an den Logitech support, vielleicht bringt das ja was.

Gruß Holger
HP T610 Thin Client; Docker Fhem 5.9; 2X CUL V3 868mhz; Max Heizungssteuerung; FS20kse; FS20UWS; FS20S8-3; 2 FS20DI; HM-CFG-LAN,HM-LC-SW1-PL,HM-SEC-SD, HM-SE1PBU-FM;
Harmony Hub;Hue-Bridge mit Iris, E27 Bulb & FLS-PP

marvin78

Wie ich schon schrieb, ist Logitech vermutlich froh, diese Kunden los zu sein. An den Support schreiben ist sicher nicht falsch, dass Logitech sich dadurch bewegt, glaube ich nicht, lasse mich aber gerne überraschen.

TobiRm

Moin

Hab grad das neue Modul installiert/kopiert und er connected schonmal wieder.