Script not running from Domoticz

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
fvdp80
Posts: 70
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10303
Contact:

Script not running from Domoticz

Post by fvdp80 »

I tried running the following script through on/off action in a button and als with an os.execute command in Dzvents, but
the script won't run.
Running the script in RPI terminal does work.

Domoticz version: 4.11777
Running on a RPI with Buster Lite.

Script:

Code: Select all

#!/bin/sh
adb start-server
adb connect 10.0.1.14
sleep 1
adb shell input keyevent KEYCODE_WAKEUP
adb shell am start -n org.xbmc.kodi/.Splash
adb kill-server
Domoticz log:

Code: Select all

2020-03-08 12:48:48.345 Status: dzVents: Info: Handling events for: "Test-Dummy", value: "On"
2020-03-08 12:48:48.345 Status: dzVents: Info: Test: ------ Start internal script: Test: Device: "Test-Dummy (Dummy)", Index: 2
2020-03-08 12:48:48.430 Status: Executing script: /home/pi/domoticz/scripts/kodi_aan.sh
2020-03-08 12:48:53.684 Status: dzVents: Info: Test: ------ Finished Test
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest