Second:
Can anyone help me with this?
I’m using a command in the HASS Agent to execute ControlMyMonitor.exe. This tool echo’s a value (eg. “3”, this is the input device number of my monitor). I can write this value to a txt file with > text.txt, but can I store/upload this value in a HASS sensor somehow?
Not currently no I tried a few angles, but it always just comes back to the local Spotify instance. That’d require integrating with the Spotify API I guess to see if it’s actually playing on the current machine.
You can try with a ‘PowershellSensor’, as the command just enter the exe. Use the test command or script button to see if you actually get that value back.
On the picture I have an example, where I read the clipboard with a Powershell command. With the letters äöü and ß and possibly others there are problems with the output.
Welch übermütiges Entzücken: zum hübschen Blümchen sich zu bücken.
Üh! Kühles Übel drückt die Füße! Hinüber ist die müß’ge Süße,
verfrüht die schwülen Frühlingsgrüße, für Übermut ich rüd’ nun büße.
?$%/"()!#*
No worries, thanks for the update. Agree not worth considering if I’m the only person with this use case. I’ll survive. Thanks again for all the great work.
So playing around more I found a temp-workaround by creating a shortcut to the ps1 script and used the Custom Command. That works for now but would like to still figure out why the PowerShell doesn’t work directly.
A bit more testing and my PS scripts kind of work. Some of the windows closed while some stayed open. So I guess the PS is working. Need to find a better script to Minimize and Maximize all windows. Or maybe it’s just Windows being Windoze.
Well you can do it the ‘hacky’ way, by opening the quickactions config file (%appdata%\LAB02 Research\HASS.Agent\config\quickactions.json) and reordering them there.
But it’s a good adition, I’ve added it to the list (hassagent-149)
Hi, the release notes for the latest beta say “snappy, no more lagging behind” for media player. However I am still seeing a 3 to 4 second delay in state change (the state itself and the attributes) upon playing, pausing and change of song.
Just wondering if I am missing something or misconfigured?
Is Agent polling or gets/sends immediate feedback from a media player?
Also, how do I access the new cover art?
For context I am using foobar2000 as the media player on a dedicated NUC hooked up to speakers, and using Agent to send commands to fb2k and retrieve the state and media info. I presume fb2k supports Windows’ media API since I am getting the status and media title info in HA?
Hi @echo_Mark, that only applies to the new integration, did you set that one up? It’ll create new entities, so you’ll have to modify your automations (if you have them), unless you delete your old integration + old entities and rename the new ones to match the old names.
Let me know how it goes, it’s great that you’re testing the beta!
Just moved over from the HASS Workstation Service, per their recommendation, and wow, what an upgrade. Great work!
For some reason, however, my PC would not remain in sleep nor hibernation after moving over. When put to sleep it would wake again inside of 60 seconds. I seem to have finally resolved it by disabling the media_player component. Am I the only one? Is there any way to have the media_player and allow the computer to sleep?