[APP][Pro] Broadlinkred App

There is not so much to transfer, as I don’t have the app in the app store.
the code is here:
https://github.com/djfanatix/com.broadlinkred

The original is here:
https://github.com/RWensveen/com.broadlink

The new devices, Broadlink red, need an extra code to be send before the usual code to work.
I changed this in the file /lib/communicate.js

example:
Old broadlink device:

	async enter_learning() {
		var payload = new Uint8Array(16);
		payload[0] = 3;
		await this.send_packet(0x6a, false, payload);
	}

New broadlink device:

	async enter_learning() {
		var payload = new Uint8Array(16);
		payload[0] = 4;
		payload[1] = 0;
		payload[2] = 3;
		await this.send_packet(0x6a, false, payload);
	}

For IR this applicable for:

  • enter learning
  • check IR data
  • send IR/RF data

RF I didn’t change, as I don’t have a pro device

3 Likes