Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: MultipleKeysCommand/Text with Argument from HA #97

Closed
Presswerk65 opened this issue May 31, 2024 · 1 comment
Closed

Feature: MultipleKeysCommand/Text with Argument from HA #97

Presswerk65 opened this issue May 31, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Presswerk65
Copy link

I use hass-agent to do all kind of key commands and enter predefined texts e.g. to password fields where using the clipboard from the PC is prohibited. For that, I have a tablet on my desk and a dashboard with a lot of buttons.

Instead of storing every single KeyCommand on the PC as separate command, it would be nice when I could pass the argument from ha to hass agent (so a service on HA could get the data from an encrypted database and therefor the key is not stored in clear text)

Maybe a service call like
action:

  • service: notify.hass_agent_test_device
    data:
    message: "[T][e][s][t]"
    command: "MultipleKeys"

or

action:

  • service: notify.hass_agent_test_device
    data:
    message: "Test"
    command: "SendText"
@Presswerk65 Presswerk65 added the enhancement New feature or request label May 31, 2024
@amadeo-alex
Copy link
Collaborator

Hm, first thing that comes to my mind is Key/MultipleKeys commands accepting action input - for some reason both of those do not support it since the original.
The only concern with this would be the security but on the other hand HASS.Agent can do more "harmful" this if misused than faking the key press.

I'll take a look.

@amadeo-alex amadeo-alex added this to the 2.1.0-beta2 milestone Jun 2, 2024
amadeo-alex added a commit that referenced this issue Jun 2, 2024
This PR adds functionality requested via #97 - action parameter support for "MultipleKeys" command.
As of now, the "Key" command has been left unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants