[HOWTO] Vero 4K / 4K: Performing actions programatically on Standby and Wakeup


#1

There have been some requests to control behaviour when Vero 4K / 4K + is put in to or woken from standby using via the Power -> Suspend option.

It is now possible (as of the 2018-12.1 update) to run scripts when toggling standby state.

You can place Python scripts accordingly:

/home/osmc/.kodi/userdata/wake.py
/home/osmc/.kodi/userdata/standby.py

If your script is in the right place, you should see the following in your log (debug logging is not required):

CApplication::ToggleStandby – script /home/osmc/.kodi/userdata/wake.py found

or

CApplication::ToggleStandby – script /home/osmc/.kodi/userdata/standby.py found

These are run via Kodi’s context, so you canimport xbmc and use internal Kodi functions.


#2

thanks sam, very useful to control the rest of the media setup.
is the mentioned update a “official” one? I’m not yet familiar with the update cycle on the vero… is there any link to a post to catch up?


#3

That update should be out later today. Check in MyOSMC or wait for the announcement here. If you are not on automatic updates, download it manually.


#4

thanks grahamh, is there any kind of changelog?


#5

A link to the blog post will be provided on this forum at time of release.


#6

Should now be ready