Hello :) I have been using th cmdSwitcht2 plugin for the past 3 years. Last weekend I updated homebridge for the (to me) new UI-X and MM and Raspberry Pi OS… I thought it’d take me an hour or so.
I can’t get the on-command to work. I tried different commands like 'vcgencmd display_power 1* and the one that is suggested here. vcgencmd display_power 1 does not work. /opt/vc/bin/tvservice -p; sudo /bin/chvt 6; sudo /bin/chvt 7 works from user pi, but homebridge runs from a different user also called homebridge.
When turning the switch on, it logs the following: "Failed to turn on Spiegelmonitor
[24.9.2021, 09:59:26] [cmdSwitch2] sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
When running tvservice --preferred && sudo chvt 6 && sudo chvt 7 from the console in Homebridge UI X, it says
chvt: ioctl VT_ACTIVATE: Die Operation ist nicht erlaubt
I tried to give homebridge the same rights in /etc/sudoers and checked /dev/fb0 rights but I don’t fully understand everything I did there. Has anyone had the same issue before?