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


HCL Custom Recovery


Recommended Posts

Hi, here is the guide how to flash custom recovery image for the HCL 4.140-4.150

 

Custom recovery allows to flash unsigned firmware in your HCL. This way we can add some new features or fix annoying bugs fast.

 

First of all, I want to say, the solution is 2 years old already. The security issue allows to execute any code on the HCL side. I have reported to Fibaro support about the vulnerability allowing to have complete contol of HCL device, but they answered its user's problem :)

 

We need to get root access in order to flash custom recovery, but HCL's ssh server disabled password login. So we will use the root exploit to restart ssh daemon with user:password login. Then we can use ssh to complete the process.

 

Rooting

Reboot the HCL before any manipulations, because low free RAM may prevent running the ssh daemon after killing.

We will use the Python 3 for exploit, but you can prepare the request with any convenient way. Edit hcl_4140_root.py script with your credentials and run it.

 

Writing recovery image

 

Use any ssh client (like putty) to login yout HCL using username root and password hc2

 

Copy the custom recovery image hcl_cr_v10.img to /tmp folder using ssh then run:

Quote

# dd bs=1M if=/tmp/hcl_cr_v10.img of=/dev/mtdblock8

Done! Now you can reboot recovery and enjoy the unsigned flashing.

 

Please login or register to see this attachment.

 

All manipulations is at your own risk.

Please login or register to see this attachment.

Please login or register to see this attachment.

  • Like 1
  • Thanks 5
Link to comment
Share on other sites

  • 6 months later...
  • Topic Author
  • Update:

    4.520..4.540 root exploit added

    HCL 4.540 custom image added (root shell, LUA scenes)

    HCL 4.550 custom image added (root shell, LUA scenes)

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Edited by jack.daniels
    4.550 root access fixed (reuploaded)
    • Thanks 2
    Link to comment
    Share on other sites

    • 2 weeks later...
  • Topic Author
  • Last original signed vulnerable ROM with backup service bug.

    You can use it to install the custom recovery.

    Please login or register to see this attachment.

    • Thanks 2
    Link to comment
    Share on other sites

    • 2 weeks later...
  • Topic Author
  • Pending project: Homekit native support for HCL coming soon...

    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

    how you implemented fibaro rooms support? cuz dy default homekit all device assigned to single room 

    Link to comment
    Share on other sites

  • Topic Author
  • homekit rooms have nothing to do with fibaro rooms

    u can manage rooms from Home app, but manually for every accessory

    Groping devices by rooms required to bypass homekit limit to 100 accessories per pridge

    Link to comment
    Share on other sites

  • Topic Author
  • Added support for actors and sensors

    Weather sensors and thermostats will do later

    Today is the test run day on the HCL device (before was running on x86 pc)

    I hope all will be ok

    Link to comment
    Share on other sites

  • Topic Author
  • HCL 4.560 with HomeKit support built-in

    Probably, it will not support all of your devices, but its a good start ;0

    Setup code for the bridge acessory:

    Please login or register to see this image.

    /monthly_2019_10/homekitten.png.1f718c062beed30ba9631160e770e8bc.png" />

    Enjoy it

     

     

     

    Edited by jack.daniels
    Reuploaded the image
    Link to comment
    Share on other sites

  • Topic Author
  • The image become unavailable somehow, so reuploading

    Please login or register to see this attachment.

    • Thanks 2
    Link to comment
    Share on other sites

  • Topic Author
  • Some details:

    -instant events polling. once your device changes state it will report to the home app immediately (not once in X seconds)

    -low battery warning for battery powered sensors (under 20% hardcoded)

    -weather providers support (home app will see temperature and humidity)

    -real voice control is now covers your fibaro hcl controller

    -lightweight service binary ~300kb still leave enough ram to run HCL in usual way including LUA environment 

    -zero configuration time, it just works after power on

    -after adding new devices you need to re-add the bridge accessory in home app, so best practice will be to connect homekit in the last turn

     

    Link to comment
    Share on other sites

    Can you see how much is the size of the partition of users can save data?

    i think if it could reserve some space to do swap...

    I’m not a Linux expert... ? 

    Link to comment
    Share on other sites

  • Topic Author
  • On 10/19/2019 at 3:21 PM, NunoMartins said:

    Can you see how much is the size of the partition of users can save data?

    Yes, but swap is disabled in kernel, so its useless to resize partitions etc

    Link to comment
    Share on other sites

  • Topic Author
  • Small update is ready. Homekitten v1.3

    -Tamper status reporting in Home app

    -Room devices grouping is now enabled automatic, only when devices>100

    -Device name in format: "<name> - <room_name>" for non-grouped mode (easier to sort out the mass of items)

    -Memory leak fixed

     

    Still problem adding attachments here, so

    Please login or register to see this link.

    is the link

     

    Edited by jack.daniels
    • Thanks 2
    Link to comment
    Share on other sites

  • Topic Author
  • Thanks to the FibaroHome app, now I know I have a door sensor tempered for years

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • Hi @vmation.virgin supported motion, smoke, door/window, flood, temp, humidity sensors

    Readd the bridge accessory after u add/remove new zwave devices

    Waiting for your feedback

    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
    Reply to this topic...

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