mlfunston / node-red-contrib-broadlink-control

Set of node-red nodes to manage the Broadlink home automation device suite
MIT License
44 stars 24 forks source link

ENHANCEMENT: Add capability to use Broadlink IHC app data files #9

Open lotek4u opened 5 years ago

lotek4u commented 5 years ago

Is this designed to work with the Broadlink e-control app or the Broadlink IHC (Intelligent Home Center) app? The e-control app no longer allows me to log in, so I'm hoping this is designed for IHC. Regardless, when I setup a custom remote and learn the buttons, I'm able to use my RMmini3 withe the IHC app and successfully control my TV. When I sync up to my android and locate the SharedData folder, it is basically empty. It has several folders and 2 .jpg files, but I would expect there to be some more information in there pertaining to the learned IR codes. Perhaps the documentation needs to be updated or clarified?

mlfunston commented 5 years ago

It was designed to use the SharedData folder that gets exported from the e-control app. I haven't tested it with the IHC app. In the SharedData folder there will be some files in there called jsonDevice and jsonIrCode that contain all the data.

You can still learn and play back IR codes with the RMmini devices without using the app, but you would need to manually learn and store each of these using node-red rather than just importing the codes from the e-control app.

Hope this helps.

mlfunston commented 5 years ago

Just checked it with the IHC (econtrol-plus) app and it does not use the same file structure. It appears that the data is probably stored in some form of database file, rather than json files. So this will need to reverse engineering on the files to make it work with the IHC app.

If anyone has details on the IHC app file structure, please contribute.

lotek4u commented 5 years ago

Sorry, was a way this weekend. Thanks for responding. I'd be happy to give it a go if you could send me a set of files for IHC and a set for the old app, configured the same. I've had luck in the past doing such things. I'd gather the files myself but I cannot create a new account and log into the old app.

jdevine82 commented 5 years ago

I am just setting up a new device and it seems that the econtrol app is no longer supported by the rm mini3 firmware. The device works with IHC for android. We will have to have a look at this database thing.

mlfunston commented 5 years ago

@lotekjunky & @jdevine82 - I have updated and fixed the example code and put some details in the readme for instructions on how to learn new codes and add them to the broadlink files directly. I guess this is a temporary fix, although it's possible broadlink may change things / firmware so we can't use the API any more. For now, it seems to work ok with the example methods.

samuellazea commented 3 years ago

Hi, is there any chance there is a move on this? Many thanks in advance

mlfunston commented 3 years ago

No - have not had time to focus on this one yet. The ability to use base64 encoded data is there though so you could use files from homebridge or other systems.