Hello everyone,
I’m trying to trigger darkmode on and off for windows 10 via Iotlink.
There is a command available in the docs that allow you to run an application. Unfortunately, I’m not capable of running the powershell where I can send a command to trigger the darkmode of my PC.
Can anyone help?
Here is how my code looks like:
pc_darkmode:
alias: "PC - Dark Mode"
sequence:
- service: mqtt.publish
data:
topic: "iotlink/workgroup/pc/commands/run"
payload: '{ "command": "c:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe", "args": "New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force", "path": "C:\\", "user": "", "visible": true, "fallback": true }'
Thanks in advance for any help available