Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. evgen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 0
    • Groups 0

    evgen

    @evgen

    0
    Reputation
    3
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    evgen Follow

    Latest posts made by evgen

    • RE: Adapter-Anfrage Sony Bravia TV

      Hallo,
      wenn ich folgenden Code in JavaScript ausführe funktioniert funktioniert es:

      // Importiere das HTTP-Modul von Node.js
      const http = require('http');
      
      // Definiere den XML-Body der Anfrage
      const postData = `
      <s:Envelope
          xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
          s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
          <s:Body>
              <u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1">
                  <IRCCCode>AAAAAQAAAAEAAAB1Aw==</IRCCCode>
              </u:X_SendIRCC>
          </s:Body>
      </s:Envelope>
      `;
      
      // Konfiguriere die HTTP-Anfrage-Optionen
      const options = {
          hostname: '192.168.XXX.XX', // Ziel-IP-Adresse
          port: 80, // HTTP-Port (für HTTPS ändere dies auf 443 und 'http' zu 'https')
          path: '/sony/ircc', // Endpunkt
          method: 'POST', // HTTP-Methode
          headers: {
              'Accept': '*/*',
              'Content-Type': 'text/xml; charset=UTF-8',
              'SOAPACTION': '"urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"',
              'X-Auth-PSK': '1234', // Dein Authentifizierungs-PSK
              'Connection': 'Keep-Alive',
              'Content-Length': Buffer.byteLength(postData) // Länge des Body
          }
      };
      
      // Erstelle die HTTP-Anfrage
      const req = http.request(options, (res) => {
          console.log(`STATUS: ${res.statusCode}`);
          console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
          let data = '';
      
          // Setze die Encoding für die Antwort
          res.setEncoding('utf8');
      
          // Sammle die Datenstücke der Antwort
          res.on('data', (chunk) => {
              data += chunk;
          });
      
          // Nachdem die gesamte Antwort empfangen wurde
          res.on('end', () => {
              console.log('Antwort des Servers:', data);
              // Hier kannst du zusätzliche Verarbeitung der Antwort hinzufügen
          });
      });
      
      // Behandle Fehler bei der Anfrage
      req.on('error', (e) => {
          console.error(`Problem mit der Anfrage: ${e.message}`);
      });
      
      // Schreibe den XML-Body in die Anfrage
      req.write(postData);
      
      // Beende die Anfrage
      req.end();
      

      Hier noch ein Link - https://pro-bravia.sony.net für die IRCC-IP und Simple IP Control Befehle.

      posted in ioBroker Allgemein
      E
      evgen
    • RE: Adapter-Anfrage Sony Bravia TV

      Hallo,
      ich benutze den Adapter schon eine ganze Weile und er hat mit meinem alten Sony TV auch immer tadelos funktioniert. Seit einer Woche habe ich einen neuen TV und mit dem funktioniert der Adapter leider nicht mehr richtig.

      Der TV wird erkannt und ich kann auch die Objekte unter /appControl /info und /audio benutzen aber wenn ich die restlichen Objekte wie /function oder /source nutzen möchte kommt Error: Response error, status code: 404

      Shared KEY passt und alle Einstellungen am TV hab ich mehrmals aus und wieder angeschaltet.

      Debug LOG:

      sony-bravia.0
      	2024-12-12 23:02:25.709	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:02:25.694	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.342"}
      sony-bravia.0
      	2024-12-12 23:02:25.689	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:02:25.287	error	Error: Response error, status code: 404.
      sony-bravia.0
      	2024-12-12 23:02:15.710	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:02:15.695	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.369"}
      sony-bravia.0
      	2024-12-12 23:02:15.689	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:02:05.713	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:02:05.697	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.365"}
      sony-bravia.0
      	2024-12-12 23:02:05.688	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:01:55.711	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:01:55.693	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.357"}
      sony-bravia.0
      	2024-12-12 23:01:55.686	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:01:45.711	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:01:45.693	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.305"}
      sony-bravia.0
      	2024-12-12 23:01:45.686	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:01:35.712	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:01:35.691	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.317"}
      sony-bravia.0
      	2024-12-12 23:01:35.686	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:01:25.826	debug	contentInfo cannot be determined [7,"Illegal State"]
      sony-bravia.0
      	2024-12-12 23:01:25.805	debug	Create App Browser at com.sony.dtv.com.vewd.core.browser.com.vewd.core.browser.BrowserActivity
      sony-bravia.0
      	2024-12-12 23:01:25.804	debug	Create App Timer &amp; Uhr at com.sony.dtv.com.sony.dtv.timers.com.sony.dtv.timers.activity.TimersMainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.804	debug	Create App Hilfe at com.sony.dtv.com.sony.dtv.smarthelp.com.sony.dtv.smarthelp.activity.MainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.804	debug	Create App TV-Steuerung mit Smart-Lautsprechern at com.sony.dtv.com.sony.dtv.seeds.iot.com.sony.dtv.seeds.iot.smartspeaker.activity.InitialActivity
      sony-bravia.0
      	2024-12-12 23:01:25.804	debug	Create App Liste aufgezeichneter Titel at com.sony.dtv.com.sony.dtv.recapp.com.sony.dtv.recapp.MainActivityIcon
      sony-bravia.0
      	2024-12-12 23:01:25.803	debug	Create App My BRAVIA at com.sony.dtv.com.sony.dtv.promos.com.sony.dtv.promos.MainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.803	debug	Create App BRAVIA-Benachrichtigungen at com.sony.dtv.com.sony.dtv.notificationcenter.com.sony.dtv.notificationcenter.NotificationCenterActivity
      sony-bravia.0
      	2024-12-12 23:01:25.803	debug	Create App Öko-Dashboard at com.sony.dtv.com.sony.dtv.ecodashboard.com.sony.dtv.ecodashboard.presentation.activity.EcoDashboardActivity
      sony-bravia.0
      	2024-12-12 23:01:25.802	debug	Create App Calman for BRAVIA at com.sony.dtv.com.sony.dtv.calibrationmonitor.com.sony.dtv.calibrationmonitor.ActionCheckActivity
      sony-bravia.0
      	2024-12-12 23:01:25.802	debug	Create App Netflix at com.sony.dtv.com.netflix.ninja.com.netflix.ninja.MainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.802	debug	Create App Prime Video at com.sony.dtv.com.amazon.amazonvideo.livingroom.com.amazon.ignition.IgnitionActivity
      sony-bravia.0
      	2024-12-12 23:01:25.801	debug	Create App TV at com.sony.dtv.com.sony.dtv.tvlin.com.sony.dtv.tvlin.view.MainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.801	debug	Create App Timer &amp; Uhr at com.sony.dtv.com.sony.dtv.timers.com.sony.dtv.activity.TimersMainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.801	debug	Create App Media Player at com.sony.dtv.com.sony.dtv.smartmediaapp.com.sony.dtv.smartmediaapp.MainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.800	debug	Create App Musik at com.sony.dtv.com.sony.dtv.osat.music.com.sonyericsson.music.MusicActivity
      sony-bravia.0
      	2024-12-12 23:01:25.799	debug	Create App YouTube at com.sony.dtv.com.google.android.youtube.tv.com.google.android.apps.youtube.tv.activity.ShellActivity
      sony-bravia.0
      	2024-12-12 23:01:25.799	debug	Create App Play Store at com.sony.dtv.com.android.vending.com.google.android.finsky.tvmainactivity.TvMainActivity
      sony-bravia.0
      	2024-12-12 23:01:25.797	debug	Create App Einstellungen at com.sony.dtv.com.android.tv.settings.com.android.tv.settings.MainSettings
      sony-bravia.0
      	2024-12-12 23:01:25.699	debug	Ping result: {"host":"192.168.178.77","alive":true,"ms":"0.356"}
      sony-bravia.0
      	2024-12-12 23:01:25.683	debug	System command: /bin/ping -n -w 2 -c 1 192.168.178.77
      sony-bravia.0
      	2024-12-12 23:01:25.671	info	starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.sony-bravia, node: v20.18.1, js-controller: 5.0.19
      sony-bravia.0
      	2024-12-12 23:01:24.846	debug	Plugin sentry Initialize Plugin (enabled=true)
      sony-bravia.0
      	2024-12-12 23:01:24.823	debug	States connected to redis: 127.0.0.1:9000
      sony-bravia.0
      	2024-12-12 23:01:24.768	debug	States create User PubSub Client
      sony-bravia.0
      	2024-12-12 23:01:24.767	debug	States create System PubSub Client
      sony-bravia.0
      	2024-12-12 23:01:24.756	debug	Redis States: Use Redis connection: 127.0.0.1:9000
      sony-bravia.0
      	2024-12-12 23:01:24.735	debug	Objects connected to redis: 127.0.0.1:9001
      sony-bravia.0
      	2024-12-12 23:01:24.728	debug	Objects client initialize lua scripts
      sony-bravia.0
      	2024-12-12 23:01:24.708	debug	Objects create User PubSub Client
      sony-bravia.0
      	2024-12-12 23:01:24.707	debug	Objects create System PubSub Client
      sony-bravia.0
      	2024-12-12 23:01:24.704	debug	Objects client ready ... initialize now
      sony-bravia.0
      	2024-12-12 23:01:24.669	debug	Redis Objects: Use Redis connection: 127.0.0.1:9001
      
      posted in ioBroker Allgemein
      E
      evgen
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo