我正在尝试使用openhab编程可切换的灯光。我在shell中的脚本运行得很完美,但我无法在我的eclipse程序中打开shell命令。
astro.sitemap:
sitemap astro label="Home"{
Text label="Wohnzimmer" icon=firstfloor{
Frame label="Funksteckdosen Gruppe"{
Switch item=poweroutletASwitch
}
}
Text label="Draußen" icon=garden {
Frame {
Default item=Sunrise_Time
Default item=Sunset_Time
}
Frame{
Text item=Temperature
Text item=Dimensionless
Text item=MoonPhase
}
}
}
poweroutlets.items:
Group grp_poweroutlets "Funksteckdosen Gruppe" <poweroutlet>
String poweroutletASwitch "Funksteckdose A" <poweroutlet> [ "Switchable"
] { channel="exec:command:poweroutletA-control", autoupdate="true" }
poweroutlets.things
Thing exec:command:poweroutletA-control [
command="/opt/433Utils/RPi_utils/run.sh A %2$s", interval=0,
autorun=true ]
有什么建议吗?