Maker API command

Using an Sony tv REST API that works great from the device page and in rules, trying to send a keypress from maker api (press the mute button)

This is what shows in the fetch command page for the device

[{"command":"InputSelect","type":["ENUM"]},
{"command":"LaunchApp","type":["ENUM"]},
{"command":"Reboot","type":["n/a"]},
{"command":"SendURL","type":["string"]},
{"command":"TerminateApps","type":["n/a"]},
{"command":"getInfo","type":["n/a"]},
{"command":"keyPress","type":["ENUM"]},
{"command":"mute","type":["n/a"]},
{"command":"off","type":["n/a"]},
{"command":"on","type":["n/a"]},
{"command":"poll","type":["n/a"]},
{"command":"refresh","type":["n/a"]},
{"command":"sendDebugString","type":
["STRING","JSON_OBJECT"]},
{"command":"setVolume","type":["NUMBER"]},
{"command":"unmute","type":["n/a"]},
{"command":"volumeDown","type":["n/a"]},
{"command":"volumeUp","type":["n/a"]}]

I tried: https://cloud.hubitat.com/...apps/52/devices/898/keyPress/mute?access_token=(mytoken)

But that didn't do it. How to I send keypress mute?

EDIT: I got it, mute is case sensitive!

https://cloud.hubitat.com/...apps/52/devices/898/mute?access_token=(mytoken)

Looks like mute has its own command? Just get rid of the "keypress"part.

Can you send me a link to the api code you are using?

I just got it. Problem is the mute is case sensitive, needs to be "Mute." Not using the actual mute command was intentional, the remote only has a single mute button that toggles mute and unmute, the mute function itself only mutes and a separate function unmute is required to unmute it. I'm making tasker tasks that display as small icons on my watch after tapping a little tv icon, so needing two separate buttons for muting and unmuting on watch face scale would be silly. With the capitalized M it's working perfectly now! Appreciate the quick response anyway!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.

Download the Hubitat app