Shell_command Stderr of command

I’m running home assistant in virtual environment
(https://www.home-assistant.io/docs/installation/raspberry-pi/)
I have shell_command
mochad_switch: /usr/sbin/service mochad restart

If I run home assistant manually under virtual environment, no problem executing shell_command.mochad_switch
However if home assistant already run as service and executing command by toggling button in home assistant gui, I have this error below
home assistant running under user homeassistant and already have sudo access in group
I don’t understand why? Anybody can help?

home-assistant.log error
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.2763017520] Received {‘id’: 15, ‘type’: ‘call_service’, ‘service’: ‘turn_on’, ‘service_data’: {‘entity_id’: ‘script.mochad’}, ‘domain’: ‘script’}
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=turn_on, service_call_id=ee7000d1dfcc44d29f2cf479d7610e91, service_data=entity_id=script.mochad, domain=script>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=mochad, service_call_id=477e6e070b4f46f08e2c2b8c56e8d781, service_data=None, domain=script>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=ee7000d1dfcc44d29f2cf479d7610e91>
2019-02-21 12:05:27 INFO (MainThread) [homeassistant.helpers.script] Script mochad: Running script
2019-02-21 12:05:27 INFO (MainThread) [homeassistant.helpers.script] Script mochad: Executing step Mochad
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service=mochad_switch, service_call_id=68efd618c1bd48f09df84b3bc4e49a4d, service_data=, domain=shell_command>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.2763017520] Sending {‘result’: None, ‘id’: 15, ‘success’: True, ‘type’: ‘result’}
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.components.shell_command] Stderr of command: /usr/sbin/service mochad restart, return code: 1:
b"Failed to restart mochad.service: Interactive authentication required.\nSee system logs and ‘systemctl status mochad.service’ for details.\n"
2019-02-21 12:05:27 ERROR (MainThread) [homeassistant.components.shell_command] Error running command: /usr/sbin/service mochad restart, return code: 1
NoneType: None
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=68efd618c1bd48f09df84b3bc4e49a4d>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=477e6e070b4f46f08e2c2b8c56e8d781>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: new_state=<state script.mochad=off; friendly_name=Mochad, last_triggered=2019-02-21T12:05:27.658654-08:00 @ 2019-02-21T11:45:06.886439-08:00>, old_state=<state script.mochad=off; friendly_name=Mochad, last_triggered=None @ 2019-02-21T11:45:06.886439-08:00>, entity_id=script.mochad>
2019-02-21 12:05:27 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.2763017520] Sending {‘id’: 2, ‘event’: {‘data’: {‘new_state’: <state script.mochad=off; friendly_name=Mochad, last_triggered=2019-02-21T12:05:27.658654-08:00 @ 2019-02-21T11:45:06.886439-08:00>, ‘old_state’: <state script.mochad=off; friendly_name=Mochad, last_triggered=None @ 2019-02-21T11:45:06.886439-08:00>, ‘entity_id’: ‘script.mochad’}, ‘event_type’: ‘state_changed’, ‘context’: {‘id’: ‘305a00af9bfa4da988d2292adbb80ee8’, ‘user_id’: None}, ‘origin’: ‘LOCAL’, ‘time_fired’: datetime.datetime(2019, 2, 21, 20, 5, 27, 952932, tzinfo=)}, ‘type’: ‘event’}

You omitted to show those details.