thkl / Homematic-Virtual-Interface

Add your other HTTP Devices as Homematic Actors to your CCU
54 stars 23 forks source link

Abfrage der Lautstärke für DenonHTTP Plugin #140

Closed HookHM closed 3 years ago

HookHM commented 3 years ago

Hallo @thkl ,

funktioniert die Abfrage nicht weil es nicht implementiert ist, oder gibt es einen Fehler? Weil hier hast Du ja danach gefragt wie man die Lautstärke abfragt https://github.com/thkl/Homematic-Virtual-Interface/issues/137#issuecomment-748890256

Und im Plugin sieht man ja auch etwas davon:

getVolume () {
    let self = this
    let hmDevice = this.remotes[0]
    if (hmDevice) {
      let host = this.config.getValueForPlugin(this.name, 'host')
      this.log.info('Connecting to %s', host)
      let urlCommand = 'MV?'
      this.log.info('Command is %s', urlCommand)
      let responseData
      const options = {
        hostname: host,
        port: 8080,
        path: '/goform/formiPhoneAppDirect.xml?' + urlCommand,
        method: 'GET'
      }

Könntest Du das noch unterstützen?

thkl commented 3 years ago

Genau ich sende das MV? Kommando und das was zurückkommt schreibe ich in TARGET_VOLUME des Channels 19 der ersten angelegten Denon Fernbedienung.

HookHM commented 3 years ago

Hmm, aber das ist leer:

Bildschirmfoto 2021-01-25 um 18 29 29

Wie könnte ich es denn aus "TARGET_VOLUME des Channels 19" in eine SysVar schreiben?

thkl commented 3 years ago

hmm dann kommt da nichts vom Denon zurück ... aber das haben wir ja schon in dem vorherigen Ticket besprochen Dann kannst du auch das "nichts" nicht in eine Variable schreiben

HookHM commented 3 years ago

Vielleicht geht das mit der Volume Abfrage nur per Telnet. Per URL bekomme ich auch nur eine weiße Seite.

thkl commented 3 years ago

tja dann haben wir es ja, wie schon in dem anderen Issue besprochen. Es geht nicht.

HookHM commented 3 years ago

Ich werde das nochmal in ruhe testen und mich dann nochmal melden. Danke erstmal.

thkl commented 3 years ago

Ich mach das jetzt hier zu. Damit ist das Denon Thema für mich beendet. Alles was technisch funktioniert, funktioniert. Die Lautstärke Abfrage funktioniert eben nicht. Aber das hatten wir alles schon.

HookHM commented 3 years ago

Okay dann lassen wir das. Wäre es sinnvoll die Abfrage wieder aus dem Code zu nehmen damit das nicht unnötig am Denon landet?