I'm trying to add some menu controls to turn USB power on/off. I can't figure out what I'm doing wrong in config.yaml.
I'm now trying the example presented in the docs:
- name: Shutdown
command: sudo shutdown -h now
confirm: You are about to shutdown the system.
I save the config.yaml file and restart octoprint using sudo systemctl restart octoprint. But, it seems the config.yaml gets overwriten with the original fragment:
I also tried restarting from the web interface after changing config.yaml, with same result. config.yaml just gets overwritten.
What am I doing wrong? Is there a better way to do it?
What I want--method to invoke script/run command to turn off USB power after a print completes. Also, controls on the web interface to turn on/off usb.