I run hass on my ubuntu box, i did a rebuild yesterday (long overdue), recovered all of my configuration and started hass, however for some reason none of my command_line sensors now work, they all error with
the homeassistant user can run the script from the command line, and all my scripts have #!/bin/bash at the top of them.
The differences after the rebuild are;
hass runs as homeassistant, i followed the virtualenv instructions, this has changed since my original build when the instructions created a user called hass not homeassistant. I dont see why this would make a difference.
I am no expert,but with command line sensors if I get errors it is because I got the path wrong.
Just double check the path exists, and the file is where you are actually pointing it to.