- Notifications
You must be signed in to change notification settings - Fork1
Imports .lnk and .url shortcuts into commands and sensors for HASS.Agent.
License
LAB02-Research/HASS.Agent.AutoImport
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation

This tiny console application will automatically import all .lnk and .url (shortcut) files in a directory, and create commands and/or sensors for them inHASS.Agent.
Originally developed to easily import all Steam games, you can use this to import games and applications from anywhere and have them added as buttons toHome Assistant. Set it to monitor your desktop, and all new installed application will show up in Home Assistant!
Go full circle by having Home Assistant run the importer for you, by creating aCustomCommand
in HASS.Agent and apply it to an automation. Use the startup arguments from the list below to finetune the process. It'll remember which shortcuts have already been added, so running the tool periodically on the same folder is no problem.
Clickhere to download the latest release.
Configuration is done throughappsettings.json
in theconfig
subfolder. If it's not found, it'll be created on launch.
Local root path for HASS.Agent. If left empty, it'll use the default.
Where to look for your .lnk and .url files.
Set totrue
to search through subdirectories as well.
Create aCustomCommand
for every shortcut found.
Create aProcessActive
sensor for every shortcut found.
Note:This is best effort, might require tweaking the process in HASS.Agent. Won't work for Steam urls.
Set totrue
to restart HASS.Agent after new shortcuts are found.
Note:Restarting HASS.Agent is required to have the new entities registered.
Usessecurifybv.ShellLink to parse the .lnk files ❤️
Requires .NET 6, download the redistributableshere.
Everything on the HASS.Agent platform is released under theMIT license.
About
Imports .lnk and .url shortcuts into commands and sensors for HASS.Agent.