Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Broadlink ideas


10der

Question

Hi!

 

I have obsession :) intergrate broadlink device in HC2.

 

so, lets go

1) so. we have opensource database devices with codes for broadlink (attached)

we can't store this database as is cuz Fibaro disable all file system operation.

so, find by serach in file device for what ypu have play to use (for example as for me codes\climate\1682.json 

new trying converting this file to LUA code

 

(JSON2LUA.LUA)

 

voila! 

 

Please login or register to see this attachment.

 

so, now add some useful feature

 

Please login or register to see this code.

now we can find broadlink code by  mnemonic

 

Please login or register to see this attachment.

 

yay!!!!!

 

but for sending command to broadlink device we should convert base54 code to hex format.

ok let add another two functions

 

Please login or register to see this code.

 

Please login or register to see this attachment.

 

good!

 

so., now we can scene for device (why scene? ok.let's go).

if you have, for example 3 Lg Tv in your house and 3 broadlink as well you can use single scene for control 3 tvs passing to scene brodlink VD + command.

 

in attach full example scene for LG TV broadlink device router

 

 

 

 

 

 

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Hi!

     

    now create broadlink VD device what used broadlink scene router above.

     

    in attach simple VD for connecting VD to your broadlink

     

    DISCLAMER :  VD can't works without your local php /web server.

     

    Quote

     

    @T.Konopka I can donate out of pocket 50$ FIBARO company for opening 1 (one) simple function 

    Please login or register to see this code.

    cuz i cant implement crypt / decrypt functions for aes-128-cbc on pure LUA.

     

     

    Now, back to the subject at hand.

    impoert attached VD

    modify some lines:

     

    Please login or register to see this code.

     

    please DO NOT change anything else. only 3 lines.

    1st line local http server name / address

    2nd line ocal http server port (usually 80)

    3d - path wheere you save php file with php emcrypt / decrypt functions

     

    Please login or register to see this code.

    so noiw we can change VD params

     

    Please login or register to see this image.

    /monthly_2019_12/image.png.804449ff138aeb37c04e09a6c1dd9e5d.png" />

     

    IP Addrress = start IP address for your physical device 

    TCP Port 10039 - Code for RM3 Mini

     

    list here

    Please login or register to see this spoiler.

     

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • send  command 

     

    fibaro:startScene(221, {"1543", "on"})

    Link to comment
    Share on other sites

    • 0

    I starting test your solution but ...

    Please login or register to see this code.

    in place of mac address it's display VD ID :-(

     

    Link to comment
    Share on other sites

    • 0

    I founded where is the problem. Is in authorization, if RM3 is paired with new Broadlink app for android they block use any external access (any python projects not work). To resolve this it's need to remove RM3 from new app (when RM3 still connected to reconfigure it and reset). After this you need add RM3 to old e-remote app. After this they work with any python projects and your too. Normal reset by button without remove before from new Broadlink app not work. I will check by sniffer what this app change in RM3 on "inclusion" and "exclusion"  but if I have time at end of December.

     

    After added to new app:

    Please login or register to see this code.

    After return to e-control:

    Please login or register to see this code.

     

    • Thanks 1
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Wow. I never used application from broadlonk. More than never saw and do not know how working this app ;) 

    but thank you ;) 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  •  

    just got from alieexpress a new brand Broadlink RM Pro+

     

    Please login or register to see this image.

    /monthly_2019_12/image.png.04957fdff23e0bffc2b82794d4b7b075.png" />

     

    works like a charm.

     

    now I want to pay money for native aes-128-cbc for LUA :( 

    Link to comment
    Share on other sites

    • 0

    I revived to today RM Pro from same source. :-) With IR code work fiine, I start tested wirh RF with small problems (only ON commands works in the moment) bu my wife ask me.... to go bed....

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 8 hours ago, drboss said:

    I revived to today RM Pro from same source. :-) With IR code work fiine, I start tested wirh RF with small problems (only ON commands works in the moment) 

    as I can see no issues with RF commands. 

    Please login or register to see this code.

    You'd do well to know your place, weakling! :D 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • current broadlink implementation

     

    [VD broadlink]  (id 1543)

     

    [SCENE adapter for device AC] (id 221)

    [SCENE adapter for device LG] (id 222)

    ...N

    [SCENE adapter for device Garage Gate] (id 224)

     

    so, caller ask adpater for device (LG TV / air conditioner / SonOff RF / etc) run command

    Please login or register to see this code.

    where 221 is adapter for device (unit)

    so, 221 scene get "off" parameter get binary code for device and call physical device (VD 1543) send this command to device (unit) for turing ""off"

     

    Please login or register to see this code.

    run command on physical device VD 1543 via adapter 221 (AC) command is heating with auto fan (mode) set temerature 28

     

    • Like 1
    Link to comment
    Share on other sites

    • 0

    For next 3-4 weeks i'm very busy in work and now I use for BL node-red. For this reasons I will start test the converted QA (today I only extracted lua from QA file) on beginning of September. When all will okey I will put it on forum

     

     

     

     

    • Thanks 1
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...