Giter Club home page Giter Club logo

wake-on-lan's Introduction

wake-on-lan

Use any SmartThings switch (including a virtual one) to wake up a device on the LAN of your SmartThings hub.

2019 Samsung QLED Q90R TVs

2019 Samsung QLED Q90R TVs cannot be turned on through their SmartThings integration. This is probably true of all 2019 and earlier Samsung TVs.

While the TV thing in the SmartThings App is presented with an on/off switch, turning on the TV here will not work unless it was very recently turned off. When Google Home is asked to turn on the TV (through its SmartThings integration) it complains: "It looks like the TV isn't available right now".

A solution is to deploy an instance of this SmartApp. The instance will need to be configured with a switch to trigger it and the target MAC address of the TV on your SmartThings hub's LAN. When the trigger switch is turned on, the SmartApp will ask your SmartThings hub to use Wake-on-LAN to turn on the TV.

For lack of a smart physical switch to use as a trigger, one can use a virtual switch.

In Google Home, one can import the trigger switch and the TV from SmartThings. One should give them names so that "Turn on NAME" and "Turn off NAME" voice commands get resolved to both. For example, naming them both "TV" seems to work. Turning on the TV will still result in the "It looks like the TV isn't available right now" response from the SmartThings TV thing but the SmartThings trigger switch and its Wake on LAN SmartApp will still work (the TV will be turned on).

After turning on the TV this way, both TV things in SmartThings will report as being on. However, if the TV is turned on another way or if the TV is turned off in any way, the TV trigger switch thing may not report the correct state. If this bothers you, you can use the SmartThings Smart Lighting SmartApp to automatically have the trigger switch mirror the TV. This will result in an unneeded (but harmless) Wake-on-LAN request if the TV is turned on without using the trigger switch.

wake-on-lan's People

Contributors

rtyle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wake-on-lan's Issues

Cannot make it work

Can you write a guide on how to setup this? I created the device handler and also a virtual device for it, but when i click the "Switch" option on the virtual device nothing happens. I put my TV's MAC on the mac option, but i don't know how to activate it. Also, everytime i go to settings, the mac is not there.

Not showing in SmartApps

After adding your repo into the SmartThings IDE, I don't see it when trying to add a SmartApp.

Won’t turn on TV

Hi! I got this app installed and connected to a switch. I can see that it’s running, but my device (Samsung TV model U) won’t turn on.

The MAC address is correct, and I can see in the logs that it’s running but I can also see a log message that says “doesTvSupportVoice TV: false”. Does that mean it won’t work?

I can confirm that the TV actually does support WOL, I can send a magic packet directly to it and it turns on.

A question for my own diagnostics, what’s the specific method that SmartThings is using to trigger the WOL? Does it try to send a magic packet over the public internet? In that case I would need to open up a port no?

Separately, I see that Alexa devices now seem to support WOL directly: https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-wakeonlancontroller.html#supported-devices. Is that something I should be looking at instead of going through SmartThings?

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.