Last active
October 13, 2020 20:24
-
-
Save peyanski/fa5c835e82d9844eb92d4047eef8d9a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"e708aa63.cfe5a8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4e96f809.0f6a68","type":"RM","z":"e708aa63.cfe5a8","name":"RM4 pro","device":"876c8eb5.648ce8","action":"learn","remote":"","button":"","fix":1,"RFSweep":"false","x":340,"y":280,"wires":[["de554ea2.98e988"]]},{"id":"4d48491a.9ea5e","type":"inject","z":"e708aa63.cfe5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":280,"wires":[["4e96f809.0f6a68"]]},{"id":"de554ea2.98e988","type":"template","z":"e708aa63.cfe5a8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.data}}","output":"str","x":550,"y":280,"wires":[["3a7ad3c.159bbac"]]},{"id":"3a7ad3c.159bbac","type":"debug","z":"e708aa63.cfe5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":260,"wires":[]},{"id":"b1c33d17.db1bc","type":"RM","z":"e708aa63.cfe5a8","name":"RM4 pro","device":"876c8eb5.648ce8","action":"_msg_","remote":"","button":"","fix":1,"RFSweep":"false","x":320,"y":440,"wires":[["2b85e6dc.71a3ea"]]},{"id":"fb6f62b0.81505","type":"inject","z":"e708aa63.cfe5a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":440,"wires":[["af32c9d9.12d878"]]},{"id":"2b85e6dc.71a3ea","type":"template","z":"e708aa63.cfe5a8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.data}}","output":"str","x":530,"y":440,"wires":[["86da6840.a69718"]]},{"id":"86da6840.a69718","type":"debug","z":"e708aa63.cfe5a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":420,"wires":[]},{"id":"af32c9d9.12d878","type":"function","z":"e708aa63.cfe5a8","name":"","func":"\n//Insert learned data object here\nvar data = [38,0,152,0,0,1,41,146,18,19,20,16,21,53,21,16,17,20,20,16,21,17,19,17,21,52,21,53,20,16,21,53,21,52,21,53,20,53,20,54,17,20,20,16,21,17,20,53,17,20,20,17,20,17,19,16,21,54,19,54,20,53,21,16,21,52,21,53,20,53,20,54,17,0,5,19,0,1,41,71,21,0,12,61,0,1,41,72,21,0,12,61,0,1,41,72,20,0,12,62,0,1,41,71,21,0,12,61,0,1,42,71,20,0,12,62,0,1,41,71,21,0,12,61,0,1,41,72,21,0,12,61,0,1,41,71,22,0,12,61,0,1,40,72,21,0,12,61,0,1,41,72,20,0,13,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];\n// or Base64 encoded format from other source\n//var data = \"JgBMAnM3ECkQKRANEAwRDQ8pEAwQDRApDyoQDQ8pEA0QDRAoECkQDRAoEigQDBEMECkRDBAMECkQDRAMEA0QDRAMEA0QDRANDw4PDQ8NEA0PDRANEA0RDA8NEAwRDBAMESgQDRAMEA0QDRAMESgQKRANEAwRDBApDyoQDBApEA4PDBILEQwQDRAoESgRDBApECkQDBANECkQDBANECgRDBANECkQDBEoEQwQKQ8NEA0QKQ8qEAwQDRAMEA0QDQ8NEA0QDBEMEAwRDQ8ODwwRDBAMEA0QDRAMEA0QDBANEQwQDRAMEA4PDRANEAwQDBANEA0QDBEMEAwQDRAMEA4PDBEMEA0PDRANEAwRDQ4OEAwRDBEMEAwQDRANECgQKRApECkQDBEMEAACMnc4ECgQKRANEQwQDQ8pEQwQDQ8qECgQDRApEA0QDBEoECkQDBEoECkQDRAMECkQDRAMECkQDRANEAwQDRANDw0QDQ8NEQwQDBEMEA0PDRENDw0QDBANDw0QDRANECgRDBAMEA0QDRAMECkRKBANEAwRDBApECkQDBEoEQwQDRAMEA0QDBApECkQDRApECgQDRANECgRDBANECgRDBANECgRDBApEAwQKRANEAwRKBApEQwQDBEMEA0QDBEMEA0QDQ8NDw0RDBAMEQwQDRAMEA0QDBEMEA0QDBANEAwQDRANEAwQDRANEAwQDRAMEA0QDRAMEA0QDBANEA0RCxILEQwQDBEMEA0QDBEMEA0QDQ8NEQwQDBANECkPKhApECkQDBANEAANBQAAAAAAAAAAAAAAAA==\"\n\nmsg.payload={\n //\"mac\":\"MAC address of your broadlink rm\", // Optional if configured in the RM node\n //\"host\":\"IP address of your broadlink rm\", // Optional if configured in the RM node\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":230,"y":560,"wires":[["b1c33d17.db1bc"]]},{"id":"769ad2ad.bec47c","type":"comment","z":"e708aa63.cfe5a8","name":"Learn IR Codes","info":"","x":170,"y":240,"wires":[]},{"id":"3320d1d7.b694de","type":"comment","z":"e708aa63.cfe5a8","name":"Send IR Codes","info":"","x":170,"y":400,"wires":[]},{"id":"876c8eb5.648ce8","type":"rmdevice","z":"","folder":"/shareddata","mac":"24dfa7e46973","host":"10.0.3.49","devType":"5f36"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment