how to create a button with an sh command?
i want to use this command for example hs100.sh 192.168.1.20 9999 on
i have install exec binding
but please can you explain how to use it?
thank you
rlkoshak
(Rich Koshak)
August 16, 2016, 4:31pm
2
Full documentation of the Exec binding is here:
Switch Command {exec="<[hs100.sh@@192.168.1.20@@9999]"}
Full documentation for the Sitemap is here:
Switch item=Command mappings=[ON="Execute"]
hmerk
(Hans-Jörg Merk)
August 17, 2016, 9:31am
3
Why are you asking this twice?
Answer was given already:
Udo_Hartmann:
To get a button instead of a switch, use mappings in the sitemap in combination with autoupdate="false". .items: Switch MyButton "My Button" {exec="ON:'some command'",autoupdate="false"} .sitemap: Switch item=MyButton mappings=[ON="GO!"] This would draw a button instead of a switch, the button will be labeled "GO!". No need for resetting the button, as autoupdate="false" prevents OH to update the state of the underlying switch. You could also draw more than one button (especially when …