DaviPtrs / hass-unified-remote

This is an Home Assistant integration that allows you control your computer by using Unified Remote
MIT License
74 stars 6 forks source link

Help with Unified.Command #8

Closed frederico0102 closed 3 years ago

frederico0102 commented 3 years ago

Hello, I have a doubt, in the Unified Remote android application I can send cmd commands, I would like to know if it is possible to do the same, because unfortunately there is no such command in the web client

As i did

target: Casa action: execute remote_id: Unified.Command Values:

Screenshot_1

As it is in the tasker

photo_2020-11-19_09-52-42

in the app intheapp

frederico0102 commented 3 years ago

photo_2020-11-19_11-44-50 Also in the application you have the answer to this cmd command, I would like to know if it is possible to recover it, follow an example. (I'll use it for other functions like knowing if windows is blocked and things like that)

DaviPtrs commented 3 years ago

Can you send me the full payload used on cmd sending? "Extras" values are already available, but if there's another field to handle I will add it for sure, is just because I don't use Unified Remote to send cmds (I think it's not secure)

frederico0102 commented 3 years ago

Sorry you hear an error of mine when sending the command, I made the correction by adding Extras: before the Values now the sending of the command worked and executed on windows correctly

target: Casa
action: execute
remote_id: Unified.Command
extras:
  Values:
    - Value: nircmd setdefaultsounddevice tv

works well

frederico0102 commented 3 years ago

but in the unified remote application I can receive the response from the command such as a ping it returns the result, I would like to receive this resulting in the HA, thanks and sorry for my bad english

DaviPtrs commented 3 years ago

No problem. I don't think there's a way to retrieve that information and show them on Home Assistant unless you use the Ping Integration instead of sending ping commands via Unified Remote, since it's a service and it can only execute things. I probably will have to create a sensor to show any information that you receive from Unified Remote, but it will be a major update since I don't know how to do this yet, but anyway, you can create a new issue requesting this feature, and someone (probably me) will work on it soon. =)

frederico0102 commented 3 years ago

right, i will create a new issue requesting, thanks