cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1163
Views
0
Helpful
1
Replies

Stay in halfwake and not Standby

machamberlain
Level 1
Level 1

Does anyone have a macro to keep the Cisco Spark Units / SX80 in Halwake mode and not to go in to standby ?

 

I have seen several Macros to keep it from shutting down and to keep in out of halfwake mode but not to keep it in.. 

 

const xapi = require('xapi');

function resetHalfwake(state) {
  if (state === "Halfwake") xapi.command("Standby ResetHalfwakeTimer", {Delay: '480'});
}

xapi.status.on("Standby State", resetHalfwake);
1 Reply 1

aaron.dodson
Level 1
Level 1

I used the scheduled actions macro https://github.com/CiscoDevNet/roomdevices-macros-samples/tree/master/Scheduled%20Actions and tweaked it to put all rooms to sleep, wakeup, restart.  I'm thinking you could have it check all rooms every few hours and put things in halfway as well?  Maybe over complicating things?