You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x ] I checked that my MQTT broker is otherwise working
Release with the issue:
1.8.5
Hardware, Operating System, Python version:
RPi 4 Model B r1.4, bullseye 6.1.21-v8+
Description of problem:
I want to run a command from Home Assistant to turn of my 2 screens, plugged in directly to my Pi4. I am able to turn these off and back on again from the terminal with the following commands:
In the sudoers file I registered the display_power command: daemon smartmirror =NOPASSWD: /usr/bin/systemctl restart isp-rpi-reporter.service,/sbin/shutdown,/usr/bin/vcgencmd display_power>
When I try to run these commands from Home Assistant I see an entry in the auth-log file, but it is generating an error: smartmirror sudo: daemon : command not allowed ; PWD=/opt/RPi-Reporter-MQTT2HA-Daemon ; USER=root ; COMMAND=/usr/bin/vcgencmd display_power 0 7
In the log it states that /opt/vc/bin/vcgencmd can't be accessed, it doesn't exist. Is this related to my problem?
What can be done to enable the service to run these commands?
Run our report script 'genBugInfo' on your failing device and include the output here:
Checklist:
Release with the issue:
1.8.5
Hardware, Operating System, Python version:
RPi 4 Model B r1.4, bullseye 6.1.21-v8+
Description of problem:
I want to run a command from Home Assistant to turn of my 2 screens, plugged in directly to my Pi4. I am able to turn these off and back on again from the terminal with the following commands:
I tried to implement these functions by creating new commands in the config file:
In the sudoers file I registered the display_power command:
daemon smartmirror =NOPASSWD: /usr/bin/systemctl restart isp-rpi-reporter.service,/sbin/shutdown,/usr/bin/vcgencmd display_power>
When I try to run these commands from Home Assistant I see an entry in the auth-log file, but it is generating an error:
smartmirror sudo: daemon : command not allowed ; PWD=/opt/RPi-Reporter-MQTT2HA-Daemon ; USER=root ; COMMAND=/usr/bin/vcgencmd display_power 0 7
In the log it states that
/opt/vc/bin/vcgencmd
can't be accessed, it doesn't exist. Is this related to my problem?What can be done to enable the service to run these commands?
Run our report script 'genBugInfo' on your failing device and include the output here:
The text was updated successfully, but these errors were encountered: