Hi ,
I have configured like this . but exec binding is not working on my pi
Switch openhab_restart “Restart Openhab” {channel=“exec:command:openhab_restart:run”}
Switch openhab_start “Start Openhab” {channel=“exec:command:openhab_start:run”}
Switch openhab_stop “Stop Openhab” {channel=“exec:command:openhab_stop:run”}
Switch mosquitto_restart “Restart mosquitto” {channel=“exec:command:mosquitto_restart:run”}
Switch mosquitto_start “Start mosquitto” {channel=“exec:command:mosquitto_start:run”}
Switch mosquitto_stop “Stop mosquitto” {channel=“exec:command:mosquitto_stop:run”}
Switch nodered_restart “Restart node-red” {channel=“exec:command:nodered_restart:run”}
Switch nodered_start “Start node-red” {channel=“exec:command:nodered_start:run”}
Switch nodered_stop “Stop node-red” {channel=“exec:command:nodered_stop:run”}
Switch influxdb_restart “Restart influxdb” {channel=“exec:command:influxdb_restart:run”}
Switch influxdb_start “Start influxdb” {channel=“exec:command:influxdb_start:run”}
Switch influxdb_stop “Stop influxdb” {channel=“exec:command:influxdb_stop:run”}
Switch cache_openhab “cache_openhab” {channel=“exec:command:cache_openhab:run”}
Switch tmp_openhab “tmp_openhab” {channel=“exec:command:tmp_openhab:run”}
Switch openhab_backup “openhab_backup” {channel=“exec:command:openhab_backup:run”}
Switch pirestart “Pi Restart” {channel=“exec:command:pirestart:run”}
Switch pishutdown “Pi Shutdown” {channel=“exec:command:pishutdown:run”}
Switch pimount “Pi mount” {channel=“exec:command:pimount:run”}
Thing exec:command:openhab_start [command=“/bin/systemctl start openhab2.service”, interval=0, autorun=true]
Thing exec:command:openhab_restart [command=“/bin/systemctl restart openhab2.service”, interval=0, autorun=true]
Thing exec:command:openhab_stop [command=“/bin/systemctl stop openhab2.service”, interval=0, autorun=true]
//Thing exec:command:cache_openhab [command=“sudo rm -rf /var/lib/openhab2/cache/”, interval=0, autorun=true]
//Thing exec:command:tmp_openhab [command=“sudo rm -rf /var/lib/openhab2/tmp/”, interval=0, autorun=true]
Thing exec:command:openhab_backup [command=“OHBackup.sh”, interval=0, autorun=true]
Thing exec:command:pirestart [command=“sudo shutdown -r now”, interval=0, autorun=true]
Thing exec:command:pishutdown [command=“sudo shutdown -h now”, interval=0, autorun=true]
Thing exec:command:pimount [command=“sudo mount -a”, interval=0, autorun=true]
Thing exec:command:mosquitto_restart [command=“sudo /bin/systemctl restart mosquitto.service”, interval=0, autorun=true]
Thing exec:command:mosquitto_start [command=“sudo /bin/systemctl start mosquitto.service”, interval=0, autorun=true]
Thing exec:command:mosquitto_stop [command=“sudo /bin/systemctl stop mosquitto.service”, interval=0, autorun=true]
Thing exec:command:nodered_restart [command=“sudo /bin/systemctl restart node-red.service”, interval=0, autorun=true]
Thing exec:command:nodered_start [command=“sudo /bin/systemctl start node-red.service”, interval=0, autorun=true]
Thing exec:command:nodered_stop [command=“sudo /bin/systemctl stop node-red.service”, interval=0, autorun=true]
Thing exec:command:influxdb_restart [command=“sudo /bin/systemctl restart influxdb.service”, interval=0, autorun=true]
Thing exec:command:influxdb_start [command=“sudo /bin/systemctl start influxdb.service”, interval=0, autorun=true]
Thing exec:command:influxdb_stop [command=“sudo /bin/systemctl stop influxdb.service”, interval=0, autorun=true]