v2022.3.8
TL;DR
This is the last version that uses .NET 4.8. Starting with the next version, HASS.Agent will use .NET 6. You'll need it installed on your machine, but the installer will help you by then. And no, Linux/macOS won't be supported (yet), sorry!
Extended version
Just a small update with a new command and a new sensor (useful ones though, thanks for all the ideas and suggestions!) - but with good reason: this is the last HASS.Agent version that's built upon .NET 4.8, it's moving to the shiny new .NET 6 platform.
If that doesn't tell you much: it's what developers can use to develop software with, like a set of building blocks. HASS.Agent currently uses .NET 4.8, which was released in 2019 - ancient in the world of IT. By switching to .NET 6, which was released last november, HASS.Agent can start using all the latest and greatest techniques.
For those that do know what it is, a heads up: this does not mean HASS.Agent will run on Linux and/or macOS (anytime soon). HASS.Agent is currently a Windows-focused application. Making it cross-platform is something I'd love to tinker with in the future, but don't hold you breath, there are a bunch of features I want to implement first.
This version will be archived, so users that can't or won't install .NET 6 can always use this one. If you have situations in which .NET 6 is a problem for you (for whatever reason), please open a ticket so we can discuss!
So, in conclusion: you'll need .NET 6 installed on your machine for the next version(s). If you want to prepare, you can download Microsoft's installer from this link:
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-6.0.2-windows-x64-installer
It's a one-time installation that enables you to run all modern .NET 6 applications.
Features & improvements
-
New command: MultipleKeysCommand (thanks ChrisRosenkreuz23)
- You guessed it: able to press multiple keys in a row
- There are a few tricks you can use:
- Special keys go between { }, like {TAB} or {UP}
- Put a + in front of a key to add SHIFT, ^ for CTRL and % for ALT
- So, +C is SHIFT-C. Or, +(CD) is SHIFT-C and SHIFT-D, while +CD is SHIFT-C and D
- For multiple presses, use {z 15}, which means Z will get pressed 15 times
- More info: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys
- You need to put [ ] between every key, otherwise HASS.Agent can't tell them apart
- So say you want to press X TAB Y SHIFT-Z, it'd be [X] [{TAB}] [Y] [+Z]
- All of this can be found in the command's info panel as well
-
New sensor: LoggedUserSensor (thanks @bverkron)
- Reports only the currently logged user
- Use a LoggedUsersSensor to get a list of all logged users