Git Product home page Git Product logo

Comments (8)

mmende avatar mmende commented on August 16, 2024

Hi,

Nice to hear you made it half way through.
At the moment it is necessary that the plugin discovers the device itself before the device will show up as external accessory because it fetches some additional device infos and uses upnp also to keep track of possibly changing ip addresses and upnp location. However, the error might lead to crashing homebridge before the device discovery even starts. The problem seems to be caused by node-persist trying to create the persistent directory at /.node-persist. You might just try to create the directory yourself and change the permissions of that folder generously for testing like mkdir /.node-persist and chmod 777 /.node-persist. I hope this leads to homebridge not crashing anymore and showing your tv correctly with the usn (remember to turn your tv on before restarting homebridge).

PS: If you know the user homebridge is running under, it would be better to make this user the owner of this directory
chown homebridge:homebridge .node-persist (if the user is homebridge e.g.) instead of making the directory read/writable by every user what the previous command does

PS2: I might add an option to add tv's that can for some reason not be discovered over upnp even though this would require setting up a static ip for the tv and finding out some values yourself.

from homebridge-samsungtv-control2.

mmende avatar mmende commented on August 16, 2024

I will also change the default location, node-persist is using to the homebridge storage path in the next release... this hopefully solves the problem once and for all.

from homebridge-samsungtv-control2.

ggroel avatar ggroel commented on August 16, 2024

from homebridge-samsungtv-control2.

ggroel avatar ggroel commented on August 16, 2024

from homebridge-samsungtv-control2.

ggroel avatar ggroel commented on August 16, 2024

from homebridge-samsungtv-control2.

mmende avatar mmende commented on August 16, 2024

Thanks @ggroel ... That actually helps and I have an idea now why your TV (and some others) are not being detected by the device discovery now. I post some more details tomorrow.

from homebridge-samsungtv-control2.

MBarti avatar MBarti commented on August 16, 2024

@mmende Martin, great tips! Now it works fine. The TV is detected properly and I've added it to homebridge without problems. Now I can finally use it in automations! Thank you!

Ps. For other users: The H/J-series TVs (and maybe others) allow one to turn the TV off, but not on (not even wake-on-lan). So to turn it on in automations I use the Apple TV (via CEC).

from homebridge-samsungtv-control2.

mmende avatar mmende commented on August 16, 2024

Awesome... nice to hear that.

from homebridge-samsungtv-control2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.