[HELP] Info about a batch execution

38 views
Skip to first unread message

Simone Urbani

unread,
Aug 31, 2015, 10:23:32 AM8/31/15
to openhab
Hello,
don't know if this is the right category.
I create a simple bat script with this content:

c:\windows\Syswow64\TaskKill /F /IM kodi.exe
timeout /T 1
ping 10.1.1.218 -n 1 -w 10000 > nul
start "Kodi" "C:\Program Files (x86)\Kodi\Kodi.exe"

And it works correctly.
I create this script because it allow to wake up my television (with my LG tv i can't wake up, only turn it off!) trough CEC.

But now i don't understand how to use this script on my sitemaps.
I add "org.openhab.binding.exec" but not i don't understand how to configure items and where to add on sistemap it.
Thanks in advance and really sorry :(

Simone Urbani

unread,
Sep 1, 2015, 8:25:50 AM9/1/15
to openhab
In the end it works:


Sitemap:
Switch item=Riavvio mappings=[OFF="Accendi TV"] 

Items:
Switch  Riavvio    "Kodi"    { exec="OFF:C:/Users/Simone/Desktop/distribution-1.7.1-runtime/kodi_restart.bat" }

:) 
Reply all
Reply to author
Forward
0 new messages