-
Notifications
You must be signed in to change notification settings - Fork 174
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
Aubess WiFi IR Controller S16 - cannot control SONY TV set #492
Comments
Have you tried using the IRRemoteControlDevice in Contrib? https://github.com/jasonacox/tinytuya/blob/master/examples/Contrib/IRRemoteControlDevice-example.py head = '010fbb00000000000f001900320064032c0313044c041a03450433046502fa0401035e02e1047e'
key1 = '002$000CA900'
ir.send_key( head, key1 ) |
Tried this without success
|
Actually, remove a leading zero from key1 and try it again (so, |
Yes, this works. Thank you. Maybe you can share more tips about how to use the Contrib library in the real world - like the latest one (i.e. "remove the leading zero"). I know it may require some detailed knowledge about the difference between what we see in the Device Log and the way the data is encoded in the packet. Also the DP ID is kind of interesting topics (I have noticed that it is discovered somehow within the lib). I also noticed this lib has some 'learning' capabilities - it kind of brute force approach but it looks like it might be very useful when you have the real Remote available.
|
Fair point. I'll capture that. |
Hi,
I wonder if you could help me out. The device model S16 is based on Tuya CBU BK7231.
What I did so far but the SONY TV cannot be controlled.
I retrieved the Device Log from Tuya cloud while using Tuya Smart App and pressing PWR button on it:
IR send{"control":"send_ir","head":"010fbb00000000000f001900320064032c0313044c041a03450433046502fa0401035e02e1047e", "key1":"002$000CA900)","type":0,"delay":300}
also tested other buttons like VOL+/VOL-
I tested different DP ID from 1 to 255 range.
I use the following piece of code:
import tinytuya
import json
d = tinytuya.OutletDevice( dev_id='bf778fxxxxx', address='192.168.1.61', local_key='x;Df9Fxxxx', version=3.3)
sony_pwr = { "control": "send_ir", "head": "", "key1": "002$000CA900)", "type": 0, "delay": 300, }
payload = d.generate_payload(tinytuya.CONTROL, {"201": json.dumps(sony_pwr)})
d.send(payload)
I would be grateful for any hint what else I could try.
The text was updated successfully, but these errors were encountered: