Status not correct when sleeping
See original GitHub issueBackstory
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:
- Created 5 years ago
- Comments:16 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@netmikey Sounds good to me. I’ll have some time next week to take a long-needed look into the state of this plugin.
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.