Add support for IR blasters #152
Replies: 9 comments 31 replies
-
Hello, I have answered this before here #81 however I know it's possible to make localtuya sends commands through IR remote, however thanks to the PR author and the original author mentioned in the PR topic it's looks it possible to send IR signals, But the PR you mentioned is completely uses "button" platform as a button entity to sends IR signal unlike the upstream this fork uses the button platform for other purposes as well. |
Beta Was this translation helpful? Give feedback.
-
from two options
|
Beta Was this translation helpful? Give feedback.
-
Mine stopped working a few versions ago, but I haven't made time to troubleshoot. I was hoping a new version would fix it, but I'll try re-adding the device soon. |
Beta Was this translation helpful? Give feedback.
-
I just re-test it on "beta4" and it still works fine for me try it. @Minniemie does the device LED light on when you submit learn command ? also the device diagnostics you posted isn't full so I can see how did your device configured. :) |
Beta Was this translation helpful? Give feedback.
-
Hiya Zetsubou - yes the blue light turns on but then again its always on. will try to re-add it again Could you have a look see at the steps beloew to see if I did it correctly? Thanks a bunch ! I added the remote (didnt input anything for the manual dpss during setup >>>> configured device manually >>>>chose Remote>>>>> under DP ID ... I had 201 >>>> I named it Study IR>>>>> show the entity in this catgory = none>>>> receving signals DP is set as 202. Then I went to services under developer's tools.>>>>Service: remote: ealrn command>>>> CHOSE THE DEVICE - Study IR >>>> Device ID to learn command from = "Study Aircon">>>>> Command = "Power">>> Command type = IR, Timeout = 30secs>>>> call service>>>> went to press the remote power button at the device but get bacl the error msg Failed to call service remote.learn_command. Failed to learn: Power |
Beta Was this translation helpful? Give feedback.
-
Here is the device diagnostics
|
Beta Was this translation helpful? Give feedback.
-
gave up on this haha. i think its either my devices (I had 3) have issues or something els ewrong that I'm doing =( went to buy 3 broadlinks hahah. Thanks again for your help. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to add a bit there, as I managed to set it up with a completely random Chinese IR device, thanks to wonderful @xZetsubou new commits and a bit of tinkering. First step is adding your device with 0 in the DPS field: Once you've done that, you can usually hit the "reconfigure device" option, and tick "Add new entity". Most tuya IR devices have 201 and 202 as DPS but it will likely be auto-recognize. Select "Remote" as the device type, then check for those 201 or 202 code. One is marked ir_send, the other ir_learn or ir_receive I believe. Add both of those entities, and turn them on in your device (they should show as turn on/off switches. From there, head over Developper Tools > Services to start leaning your commands. This is the start of the tricky part (if there's an easier way, I'm curious to know)... So read till the end so you don't forget to save command names if you don't have SMB. The setup should look like that:
Hit the "Call Service" button, likely your IR receiver will turn its LED on to show it's ready to receive. As soon as you press the button on your Device's remote, the "Call Service" button will flash as a green checkmark to tell you it saved the code ! As I mentioned, you should read till the end because...the codes are stored locally in your storage. So 2 ways, either you save the exact names of the commands you just learn along the way (I obviously didn't), or you enable Samba integration and do a bit of digging... You must enable "Show Hidden Items" and go to the .storage folder: From there you will find a file called "localtuya_remote_codes" where all your commands were neatly saved ! If you want a bit of a headstart with how to build useful buttons, automations/scripts and helpers with that, I found a quick video that essentially goes thru the same process than us with Broadlink in a short time and summarizes what I explain above (altho not thru our marvelous localtuyaxZetsubou ;-) ) |
Beta Was this translation helpful? Give feedback.
-
Hi @xZetsubou , sorry for bumping closed thread. I've set the DP Manual to 0. I've tried to mix bunch of combinations for the DP and still couldn't make it works. I've tried the automatic as well. I have no issue when trying to run 'learn remote' services. But when i try to send commands, it doesn't works. Doesn't matter what i pick it always says 'study key' on IOT Tuya Platforms debug. is there any way how i can fix this? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your work on this integration.
It finds my Tuya IR Blaster, but when I try to add it, I get the error:
I see that the upstream repo has an unmerged PR: rospogrigio#1597
thanks to @ynsgnr
Can you please look at this PR and see if you can add IR blaster support to your project?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions