Ankündigung

Einklappen
Keine Ankündigung bisher.

TCP Binding Fehler

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    TCP Binding Fehler

    Hallo,

    ich möchte gerne die Wecker meiner Squeezebox an Feiertagen abschalten, das geht per squeezebox CLI auf Port 9090.
    Via Telnet funktioniert das auch, aber mit dem TCP Binding komme ich nicht weiter.

    Auszug aus dem Log:
    Code:
    22:20:02.236 INFO  o.o.b.t.AbstractSocketChannelBinding[:775]- The interval to retry connection setups will be set to the default value of 5
    22:20:02.237 INFO  o.o.b.t.AbstractSocketChannelBinding[:782]- The cron job to reset connections will be set to the default value of 0 0 0 * * ?
    22:20:02.238 INFO  o.o.b.t.AbstractSocketChannelBinding[:789]- The setting to queue write operation until a channel gets connected will be set to the default value of true
    22:20:02.239 INFO  o.o.b.t.AbstractSocketChannelBinding[:796]- The port to listen for incoming connections will be set to the default value of 0
    22:20:02.240 INFO  o.o.b.t.AbstractSocketChannelBinding[:803]- The setting to share channels within an Item will be set to the default value of true
    22:20:02.241 INFO  o.o.b.t.AbstractSocketChannelBinding[:810]- The setting to share channels between the items with the same direction will be set to the default value of true
    22:20:02.242 INFO  o.o.b.t.AbstractSocketChannelBinding[:817]- The setting to share channels between directions will be set to the default value of true
    22:20:02.243 INFO  o.o.b.t.AbstractSocketChannelBinding[:824]- The setting to use address masks for incoming connections will be set to the default value of true
    22:20:02.255 INFO  o.o.b.t.p.internal.TCPBinding[:156]- The maximum time out for blocking write operations will be set to the default vaulue of 3000
    22:20:02.255 INFO  o.o.c.s.AbstractActiveService[:169]- TCP Refresh Service has been started
    
    22:21:33.028 ERROR o.o.b.t.AbstractSocketChannelBinding[:944]- there is no channel that services [itemName=sq_galerie_alarm, command=ON]
    22:24:52.210 ERROR o.o.b.t.AbstractSocketChannelBinding[:944]- there is no channel that services [itemName=sq_galerie_alarm, command=OFF]
    22:25:08.979 ERROR o.o.b.t.AbstractSocketChannelBinding[:944]- there is no channel that services [itemName=sq_galerie_alarm, command=ON]
    Das Binding sieht wie folgt aus:
    Code:
    Switch sq_galerie_alarm  "Alarm"  <alarm>  (gPlayerGalerie)  { tcp=">[ON:192.168.2.3:9090:'00%3A04%3A20%3A1e%3Ae7%3A12 playerpref alarmsEnabled 1'], >[OFF:192.168.2.3:9090:'00%3A04%3A20%3A1e%3Ae7%3A12 playerpref alarmsEnabled 0']" }
    Was mache ich falsch? Wäre prima, wenn mir wer einen Tipp geben könnte.

    Viele Grüße
    Michael

    #2
    Momentan behelfe ich mir mit einem exec-Binding und führe folgendes aus:
    Code:
    echo '00%3A04%3A20%3A1e%3Ae7%3A12 playerpref alarmsEnabled 1' | netcat-nc -w 1 192.168.2.3 9090
    Das Binding dazu ist:
    Code:
    Switch sq_galerie_alarm   "Alarm"   <alarm>   (gPlayerGalerie) { exec=">[ON:/opt/usr/openhab/scripts/squeezebox.sh ON] >[OFF:/opt/usr/openhab/scripts/squeezebox.sh OFF]" }
    Also, für einen Tipp wäre ich sehr dankbar.

    Viele Grüße
    Michael

    Kommentar


      #3
      Hilfe?

      Hat keiner eine Idee, warum das TCP Binding nicht funktionert.
      Da ich die IR-Codes an der Squeezebox abgreifen möchte (um Geräte zu schalten), bräuchte ich dieses Binding.
      Was bedeutet dieses
      Code:
      there is no channel that services [Item....]
      Viele Grüße
      Michael

      Kommentar


        #4
        Hi,

        hast Du zu dem Thema schonmal die Google Group befragt? Karel, der Entwickler des Bindings liest dort mit und hat sicher eine Antwort parat …

        Gruß,

        Thomas E.-E.
        Visualisierung, Rule/Logic-Engine, Integrationsplattform mit openhab (Supportforum)

        Kommentar

        Lädt...
        X