Skip to content
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

Able to learn, Unable to send. #116

Open
pbawesome opened this issue Dec 10, 2024 · 1 comment
Open

Able to learn, Unable to send. #116

pbawesome opened this issue Dec 10, 2024 · 1 comment

Comments

@pbawesome
Copy link

When I use Example 3 I am able to learn, I see the light come on on the RM4 mini and I am able to get a long string when I press my remote.

When I try to send it, nothing happens. Added the code I am using below.

Then I tried adding "520c" to Constant.js to see if that would help, but no luck. Discover node outputs this.

12/9/2024, 5:25:00 PM[node: debug 110](https://192.168.50.101:1881/#) msg.payload : array[1] array[1] 0: object mac: "e870723f41c6" ip: "192.168.50.185" typeid: "520c" type: "Broadlink: Unconfigured Device Type: Log an issue with the device details and typeid returned as this may be a new device type." name: "智能遥控�" cloud: false msgdata: buffer[128]

[ { "id": "f43b5608.668fb8", "type": "inject", "z": "e708aa63.cfe5a8", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "", "payloadType": "str", "x": 250, "y": 1020, "wires": [ [ "4ed7416f.e4605" ] ] }, { "id": "7e782238.85366c", "type": "debug", "z": "e708aa63.cfe5a8", "name": "", "active": true, "console": "false", "complete": "payload", "x": 670, "y": 1020, "wires": [] }, { "id": "8736841b.643398", "type": "RM", "z": "e708aa63.cfe5a8", "name": "", "device": "876c8eb5.648ce8", "action": "_msg_", "remote": "", "button": "", "fix": "", "x": 530, "y": 1020, "wires": [ [ "7e782238.85366c" ] ] }, { "id": "4ed7416f.e4605", "type": "function", "z": "e708aa63.cfe5a8", "name": "Set IR Data", "func": "//Insert learning code here\nvar data = [38,0,150,0,243,92,20,46,18,47,17,93,19,92,18,92,20,91,17,49,18,92,20,91,17,48,19,47,19,46,19,47,19,45,19,47,20,91,19,47,18,47,18,47,20,46,17,47,21,45,20,91,19,47,19,46,19,91,20,46,19,46,17,94,19,47,19,46,19,46,20,46,20,45,17,48,20,46,19,47,18,47,19,47,18,48,18,47,18,46,21,45,20,45,20,46,19,47,17,49,18,47,18,47,19,47,19,46,19,47,19,45,18,48,20,46,17,49,18,47,17,94,19,46,17,48,20,46,20,45,20,91,18,48,19,91,19,46,19,47,17,48,19,91,20,46,20,91,19,91,20,0,13,5,13,5];\n\nmsg.payload={\n //\"mac\":\"E870723F41C6\",\n //\"host\":\"192.168.50.185\",\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;", "outputs": 1, "timeout": "", "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 390, "y": 1020, "wires": [ [ "8736841b.643398", "a7e33051ef28dd0b" ] ] }, { "id": "ac0302cc.1943b", "type": "RM", "z": "e708aa63.cfe5a8", "name": "", "device": "876c8eb5.648ce8", "action": "learn", "remote": "", "button": "", "fix": "", "x": 370, "y": 920, "wires": [ [ "db4a927d.dba42" ] ] }, { "id": "4a665352.1a5d0c", "type": "inject", "z": "e708aa63.cfe5a8", "name": "", "repeat": "", "crontab": "", "once": false, "topic": "", "payload": "", "payloadType": "str", "x": 250, "y": 920, "wires": [ [ "ac0302cc.1943b" ] ] }, { "id": "aff7c493.75d488", "type": "debug", "z": "e708aa63.cfe5a8", "name": "", "active": true, "tosidebar": true, "console": false, "complete": "payload", "x": 630, "y": 920, "wires": [] }, { "id": "db4a927d.dba42", "type": "json", "z": "e708aa63.cfe5a8", "name": "", "pretty": false, "x": 490, "y": 920, "wires": [ [ "aff7c493.75d488" ] ] }, { "id": "745f4e02.4fe5b", "type": "comment", "z": "e708aa63.cfe5a8", "name": "Learn", "info": "1. Inject\n2. Tap the remote button\n3. Copy learned code from debug tab", "x": 250, "y": 880, "wires": [] }, { "id": "232d8d19.4ce052", "type": "comment", "z": "e708aa63.cfe5a8", "name": "Send learned code", "info": "1. Insert learned code in the function node\n2. Deploy\n3. Inject", "x": 290, "y": 980, "wires": [] }, { "id": "a7e33051ef28dd0b", "type": "debug", "z": "e708aa63.cfe5a8", "name": "debug 111", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 570, "y": 980, "wires": [] }, { "id": "876c8eb5.648ce8", "type": "rmdevice", "folder": "/data/node_modules/node-red/public/broadlink", "mac": "E870723F41C6", "host": "192.168.50.185", "devType": "520c" } ]

@pbawesome
Copy link
Author

#90 (comment)

this was the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant