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

HCL: How to send push notification on startup


Torbjorn

Question

Maybe simple answer but I need help.

 

I have LUA code in HC2 to send notification to my phone at startup, but how to do in HCL ? 

 

/Torbjorn

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hi, HCL scenes stores as LUA anyway. Use some 3rd party tools to edit the scene file to add your code. This is not a solution but workaround.

Link to comment
Share on other sites

  • 0
  • Inquirer
  • On 12/1/2018 at 7:01 AM, jack.daniels said:

    Hi, HCL scenes stores as LUA anyway. Use some 3rd party tools to edit the scene file to add your code. This is not a solution but workaround.

     

    Hello @jack.daniels @

     

    Thanks for your reply but I don't understand how to access LUA/scene file or code in the HCL, can you maybe give me some hints...???

     

    Regards

     

     

     

    Link to comment
    Share on other sites

    • 0

    Hi, 

    If you know the SSH/SCP and how to use it, I can send you the HCL root exploit.

    After you run it, the SSH daemon will be running as user root, pass hc2

    Then you can edit /mnt/user_data/scenes/<sceneid>.lua files

    Please login or register to see this image.

    /monthly_2018_12/scenes.png.09e82a59524c96df222d2f60a38891f9.png" alt="scenes.png.09e82a59524c96df222d2f60a38891f9.png" />

    After reboot, the password SSH login will be disabled again.

     

    Its also possible to flash custom recovery binary and to cook the rom by yourself (like change root password and enable password login by default)

     

    Link to comment
    Share on other sites

    • 0
    On 12/3/2018 at 9:11 PM, jack.daniels said:

    Hi, 

    If you know the SSH/SCP and how to use it, I can send you the HCL root exploit.

    After you run it, the SSH daemon will be running as user root, pass hc2

    Then you can edit /mnt/user_data/scenes/<sceneid>.lua files

    Please login or register to see this link.

    After reboot, the password SSH login will be disabled again.

     

    Its also possible to flash custom recovery binary and to cook the rom by yourself (like change root password and enable password login by default)

     

    I like this option, if I can access the hcl I can write my scenes in lua.

    can you send me the tool or where I could get it?!

    Link to comment
    Share on other sites

    • 0
    47 minutes ago, NunoMartins said:

    I like this option, if I can access the hcl I can write my scenes in lua.

    can you send me the tool or where I could get it?!

    Sure, will PM u the details soon

    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...