Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Imports .lnk and .url shortcuts into commands and sensors for HASS.Agent.

License

NotificationsYou must be signed in to change notification settings

LAB02-Research/HASS.Agent.AutoImport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HASS.Agent logo

HASS.Agent AutoImport

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.


Options

Configuration is done throughappsettings.json in theconfig subfolder. If it's not found, it'll be created on launch.

OptionHASSAgentInstallPath (optional)

Local root path for HASS.Agent. If left empty, it'll use the default.

OptionShortcutSourceFolder

Where to look for your .lnk and .url files.

OptionShortcutSearchRecusively

Set totrue to search through subdirectories as well.

OptionCreateCustomCommands

Create aCustomCommand for every shortcut found.

OptionCreateProcessActiveSensors

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.

OptionRestartHASSAgentOnNewItems

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.


[8]ページ先頭

©2009-2025 Movatter.jp