Closed parchmaf closed 3 weeks ago
Weird! Let's figure it out...
Could you copy/paste (not a screenshot) the YAML from your master_bed_mute_toggle script and the YAML from your Firemote config into this issue? I'm hoping there is just a weird space or character out of place or something.
As requested:
But please keeo in mind that the specific error that I am getting is that the script cannot be found. Strange because Firemote has no issue finding the scripts I created for volume up and down.
Since you've only sent screenshots I cannot confidently diagnose what the issue might be, but let's try one (unusual) thing.
masterbedtogglemute
as an example.
Don't forget to click UPDATE to save your changes
type: custom:firemote-card
entity: media_player.master_bed_apple_tv
device_family: apple-tv
device_type: appletv-4k-gen2
compatibility_mode: default
apple_tv_remote_entity: remote.master_bed_apple_tv
scale: '100'
app_launch_1: ''
button_overrides:
volume-down-button:
script: master_bed_volume_down
volume-up-button:
script: master_bed_volume_up
mute-button:
script: masterbedtogglemute
Sorry about that. Same error. Here is the YAML text for the script:
alias: Master Bed Mute <TOGGLE>
sequence:
- if:
- condition: template
value_template: >-
{{ state_attr('media_player.master_bed_sonos', 'is_volume_muted') ==
True }}
then:
- data:
is_volume_muted: false
target:
entity_id: media_player.master_bed_sonos
action: media_player.volume_mute
else:
- data:
is_volume_muted: true
target:
entity_id: media_player.master_bed_sonos
action: media_player.volume_mute
mode: single
icon: mdi:volume-mute
Not the exact same error though, right? The error you see now has the new script name in it?
And the YAML for Firemote (with change):
type: custom:firemote-card
entity: media_player.master_bed_apple_tv
device_family: apple-tv
device_type: appletv-4k-gen2
compatibility_mode: default
apple_tv_remote_entity: remote.master_bed_apple_tv
scale: '100'
app_launch_1: ''
button_overrides:
volume-down-button:
script: master_bed_volume_down
volume-up-button:
script: master_bed_volume_up
mute-button:
script: masterbedmutetoggle
Helpful hint ~
If you write your response containing YAML with the three ` backtick characters and the word yaml, then close it with three ` characters like this: then Github won't change the formatting of your properly spaced YAML file. 😄
Do you have File Editor installed? If so, can you do this for me?
Open File Editor
At the top, click the folder icon
Scroll down until you find scripts.yaml and click the three dots to the right
Click the Download button
Attach the file or copy/paste the contents of the file in your reply.
Your renaming idea got me thinking and just for the heck of it, I did check scripts.yaml as you just now suugested. I'm not sure how the GUI can show one thing and the YAML another but in my case the script was named differently. When I made that change, it now works. This definitely was not a Firemote issue but I really do appreciate the help troubleshooting. Many thanks!
YAY! That's exactly what I suspected. If I had to guess, I wonder if it happened when you used a < and a > in the name of your script when you created it? Just a guess. If so, you might have come across a Home Assistant bug.
Either way, I'm very happy that it's working for you now!
Describe the bug
I have button overrides configured to execute scripts on my Apple TV remote. This works perfectly for volume up and volume down, but for the mute button, I get a error that states the script cannot be found. If I manually run the mute script in HASS, it runs as expected. This behavior happens on both my gen2 and gen3 Apple TV 4k. For some reason it appears Firemote cannot find and execute the script even though it is there.
To Reproduce
Create script in HASS for muting Apple TV and assign the button override to 'mute-button' Execute on the Apple TV Firemote and get cannot be found error
Expected Behavior
Script should be executed when button is pushed, therefore toggling Mute on Apple TV
Which Type of Device Do You Own?
Apple TV 4k Gen 2 and Gen 3
Troubleshooting Steps Completed
Manually execute script in HASS works correctly
Additional context
No response