-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to pass target
when calling a service?
#40
Comments
Hmm, yes |
Yep, I've already reported it: home-assistant/home-assistant.io#16992 |
Any update? Logitech Harmony Hub remote requires this also. As a workaround I can create a script for each button but that's a lot of scripts! Maybe there's some better alternative but I'm just few weeks into HA. 🙂 |
If it's any help, the usage seems to be documented here and used included in this example. |
I decided to give it a shot and it seems I got it working, I'll create a PR. The funny thing is that this was not actually needed for my use case after all. I had the config set like this: action: call-service
service: remote.send_command
service_data:
entity_id: remote.harmony_hub
device: '37034509'
command: 'FanSpeedUp' ...instead of this: tap_action:
action: call-service
service: remote.send_command
service_data:
entity_id: remote.harmony_hub
device: '37034509'
command: 'FanSpeedUp' 🤦♂️ |
@denilsonsa If you'd like to help, you could test if my changes work as you'd expect. I set up my so that it can be installed as a custom HACS repository (for personal testing purposes) https://github.com/ristomatti/lovelace-paper-buttons-row |
I believe recent Home Assistant versions added support for
target
when calling a service:target
key for calling services home-assistant/home-assistant.io#16992However, I can't find a way to do so when using this custom component. The following example works in the developer tools page:
And the following code works using the built-in
buttons
type:But I am unable to add
target
tocustom:paper-buttons-row
.The text was updated successfully, but these errors were encountered: