Standby.py - CECStandby via kodi-send triggers wake.py

Hi all,

Im trying to trigger CECStandby via standby.py. But its not working or I dont find the correct solution.
If I try python like this, nothing happens when standby.py is triggered.

import xbmc
xbmc.executebuiltin('XBMC.CECStandby')

If I try via kodi-send, it works but the Vero wakes up directly and wake.py is triggered.

import os
os.system('kodi-send --action CECStandby')

I will provide the logs soon. But maybe you can already tell me if I work in the correct direction.

Why are you doing that is the build in function not working?

The builtin function of longpressing the home key of course, works. But this doesn’t trigger the standby.py at all. At least thats what I see from the logs. And I have more commands in the standby.py which I need to execute.