Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Einbindung von Geräten
    5. Samsung TV: Cannot read property 'ws' of undefined

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Samsung TV: Cannot read property 'ws' of undefined

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pipsen last edited by

      Hallo,

      ich habe einen Samsung QLED Fernseher aus dem Jahr 2019. Folgende Dinge habe ich gemacht:

      npm install iobroker.samsung
      -> Version 0.5.8 wurde installiert
      Adapter Instanz angelegt und so konfiguriert:

      • IP Adresse des Fernsehers
      • MAC Adresse im Format xx:xx:xx:xx:xx:xx
      • Token Feld leer gelassen wegen Hinweis
        only needed with SamsungTV API, should be in Log after first connect
      • APIType: SamsungTV weil neuer als 2016
      • PIN Feld leer, da nur für H / J benötigt

      Anschließend Plugin gestartet und am Fernseher kam die Mledung, dass ich die Verbindung zulassen soll. Habe ich gemacht und der ioBroker steht jetzt in der Liste der erlaubten Geräte.

      Trotzdem sieht mein Log so aus:

      samsung.0 2022-04-29 11:52:33.262	error	Connection to TV failed. Is the IP correct? Is the TV switched on? TypeError: Cannot read property 'ws' of undefined
      samsung.0 2022-04-29 11:52:28.021	info	starting. Version 0.5.8 in /opt/iobroker/node_modules/iobroker.samsung, node: v14.19.0, js-controller: 4.0.23
      samsung.0 2022-04-29 11:52:28.002	info	Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
      host.ioBroker 2022-04-29 11:52:27.485	info	instance system.adapter.samsung.0 started with pid 1682
      host.ioBroker 2022-04-29 11:52:24.947	info	instance system.adapter.samsung.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      host.ioBroker 2022-04-29 11:52:24.471	info	stopInstance system.adapter.samsung.0 send kill signal
      samsung.0 2022-04-29 11:52:24.432	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      samsung.0 2022-04-29 11:52:24.432	info	terminating
      samsung.0 2022-04-29 11:52:24.431	info	Got terminate signal TERMINATE_YOURSELF
      host.ioBroker 2022-04-29 11:52:24.430	info	stopInstance system.adapter.samsung.0 (force=false, process=true)
      

      Die Verbindung schlägt also fehl und eine TokenID finde ich leider auch nicht im log.
      Hat jemand eine Idee?

      Danke!

      madjack84 1 Reply Last reply Reply Quote 0
      • madjack84
        madjack84 @pipsen last edited by madjack84

        @pipsen
        Hey, ich hab exakt das gleiche verhalten .... Wäre über eine Lösung auch sehr glücklich.

        Das hier ist der Codeschnipsel an dem wir scheitern. Der log ist also die Errormessage die da zurück kommt 😞

        } else if (adapter.config.apiType === 'SamsungTV') {
                var remoteSTV = new SamsungTV(adapter.config.ip, adapter.config.mac);
                if (adapter.config.token)
                    remoteSTV.token = adapter.config.token;
                try {
                    await remoteSTV.connect('ioBroker');
                } catch (err) {
                    adapter.log.error(`Connection to TV failed. Is the IP correct? Is the TV switched on? ${err}`);
                    return
                }
                adapter.log.info('-----------------------------------------');
                adapter.log.info('Confirm on your TV to get a Token');
                adapter.log.info('-----------------------------------------');
                adapter.log.info(`Token: ${remoteSTV.token}`);
                adapter.log.info('-----------------------------------------');
                remote = { powerKey: 'KEY_POWER', send: (cmd) => remoteSTV.sendKey(cmd) };
                createObjectsAndStates();
        
        A 1 Reply Last reply Reply Quote 0
        • A
          Aiouh @madjack84 last edited by

          @madjack84 @pipsen same here 😞 habt Ihr mittlerweile eine Lösung gefunden ?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          707
          Online

          31.7k
          Users

          79.8k
          Topics

          1.3m
          Posts

          3
          3
          393
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo