IR Remotes supported? #16
Answered
by
thatbrainiac
haavardmeling
asked this question in
Q&A
-
Does the Library support IR Remotes as well through DeviceManager? |
Beta Was this translation helpful? Give feedback.
Answered by
thatbrainiac
Jul 10, 2022
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
haavardmeling
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Yes, the library supports pretty much anything you can do through the Tuya API, including IR remotes.
To do that you will have to first obtain the instruction set for your device, which you'll have to convert to a
Command
and then send it back to the API to control it. Below is an example with an air conditioning entity that is controlled via a remote IR:deviceInstructions
will return a list ofInstruction
s that your device supports. Here's a screenshot from the debugger of what possible values look like:You'll have to take the