question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Status not correct when sleeping

See original GitHub issue

Backstory

Status not correct when asleep and wake not working

Issue

I can successfully switch off my mac but not waking up. Also, the switch turns off, but after a couple of seconds the status is on again even thought the mac is still sleeping.

If i run the wakeCommand from the terminal the mac wakes up correctly.

Configuration

My configuration looks like this:

{
            "accessory": "NetworkDevice",
            "name": "Macbook Pro",
            "mac": <mac-address>,
            "ip": "192.168.0.100",
            "pingInterval": 20,
            "wakeGraceTime": 10,
            "wakeCommand": "ssh user@192.168.0.100 caffeinate -u -t 300",
            "shutdownGraceTime": 15,
            "shutdownCommand": "ssh user@192.168.0.100 pmset sleepnow"
 },

Environment

  • os & os version: Raspbian GNU/Linux 9
  • node version: v8.11.3
  • homebridge version: v0.4.44
  • homebridge-wol version: v3.2.4

Log

Jul 26 19:57:37 pi homebridge[419]: [2018-7-26 19:57:37] [Macbook Pro] NetworkDevice shutdown cycle started for "Macbook Pro" (192.168.0.100)
Jul 26 19:57:37 pi homebridge[419]: [2018-7-26 19:57:37] [Macbook Pro] Attempting to shut down "Macbook Pro" (192.168.0.100) using "ssh user@192.168.0.100 pmset sleepnow"
Jul 26 19:57:37 pi homebridge[419]: [2018-7-26 19:57:37] [Macbook Pro] NetworkDevice "Macbook Pro" (192.168.0.100) went from status "Online" to "Shutting Down"
Jul 26 19:57:52 pi homebridge[419]: [2018-7-26 19:57:52] [Macbook Pro] NetworkDevice "Macbook Pro" (192.168.0.100) went from status "Shutting Down" to "Online"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
AlexGustafssoncommented, Jan 16, 2019

@netmikey Sounds good to me. I’ll have some time next week to take a long-needed look into the state of this plugin.

0reactions
AlexGustafssoncommented, Dec 28, 2019

I’ve rewritten almost all of the plugin to use more modern features of JS which should help readability and stability.

Please try the latest version (currently available in the master branch) and open new issues if any of you feel like this has not been resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

time in status before idle - Microsoft Community
How do I set the time in a status so the status won't go into idle or sleep mode?
Read more >
MS Teams status available online when PC is idle
Click on your profile icon and ensure that the Available status is selected. If that is not the case, hit your current status...
Read more >
Turn your Sleep Focus on or off on iPhone - Apple Support
In the Health app , tap Browse at the bottom right, then tap Sleep. Scroll down to Your Schedule, then tap Full Schedule...
Read more >
How to keep your Microsoft Teams status active - Digital Trends
1. Click on your Profile picture on the top right of the Teams screen. 2. Click on your current status. 3. Choose Available...
Read more >
How to Change Away Time in Microsoft Teams - Alphr
However, Microsoft Teams also changes your status to “Away” when your PC gets locked, goes to sleep, or you have no activity on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found