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


HomeKit + MQTT + Node-RED support for HC2


Recommended Posts

Introducing custom firmware for Fibaro Home Center 2 with some extra functions for home automation based on version 4.560.

Changes comparing to stock firmware:

  • Apple HomeKit bridge running (on development stage, not all devices supported yet). Allows to expose all Fibaro connected devices to the Apple Home app. Musthave for iOS users.
  • MQTT bridge running (on development stage). Allows to expose all Fibaro devices to MQTT broker. Musthave for Android users.
  • MQTT broker running. Mosquitto lightwait broker is ready for your tasks.
  • Node-RED running. The IBM IoT platform for home automation.
  • Fibaro Variables panel extended to display/edit string values.

This is custom firmware and not signed with Fibaro keys. You have to enable "ignoreSignature" mode (touch /mnt/nvm/ignoreSignature) in order to flash it on Your HC2 using Fibaro Recovery.

All services are running on boot by default. Configuration performed by Fibaro Variable panel.

 

Please login or register to see this link.

 

Welcome with Your feedback.

 

Please login or register to see this attachment.

  • Like 4
  • Thanks 1
Link to post
Share on other sites

great work!!!!

 

i only work with android and dont live in the apple universe so i have installed the Fibaro hc2 from 10der in my node-red it works very nice and i connected all my amazon alexa to this devices.

but nice work. I love it if users programming some *abuse* for the community because i dont have the skills iam only a scriptkiddy.

  • Like 1
  • Thanks 1
Link to post
Share on other sites
  • Topic Author
  • 6 hours ago, ctyd said:

    i only work with android and dont live in the apple universe

    I understand You very much.

    As much as iOS users love HomeKit as much Android users love MQTT. Thats why there are two separate bridges. Unused bridge could be disabled in configuration global vars

    Please login or register to see this attachment.

    Btw, there is another packege available now: 

    Please login or register to see this link.

    Link to post
    Share on other sites
  • Topic Author
  • 16 minutes ago, jack.daniels said:

    another packege available now: 

    Please login or register to see this link.

    What I am missing in those implementations is user friendly interface. They are too much DIY ;)

    I love to have nodes like this:

    Menu

    In node settings just pick up the device name (filtered by given type)

    Edited by jack.daniels
    Link to post
    Share on other sites
  • Topic Author
  • I have checked those two bridges and here is my conclusion:

    Please login or register to see this link.

     - requires inject to work. this is not good, because this way events are handled not immediately

    Please login or register to see this link.

     - on development stage (syntax errors etc.) but it handles events on the go. Bad expiriense with http connection timout faced.

    😔

    Link to post
    Share on other sites

    i want to try your solution but at the moment i dont have much time for this because my family work.....

    1 question if i install your cfw, are there all old scenes modules etc. in my hc2? or is it empty and i have too add all the switches dimmers... new

    Link to post
    Share on other sites
  • Topic Author
  • Hi, it is safe to flash this fw, because 99,9% its original content

    The only things modified mentioned in the first post. 

    Off-course I would make a backup before ANY manipulation with configured controller to keep all data/setrings safe for emergency, but during my test nothing bad happened

    But my suggestion here: update to 4.560 (in case you still have old firmware) and then use custom fw.

    Link to post
    Share on other sites
    • 2 weeks later...

    Hi.

     

    It is interesting work and I want to use sonoff% MQTT devices with HC.

    But. I'm not very skilled, and stuck with " You have to enable "ignoreSignature" mode (touch /mnt/nvm/ignoreSignature) "

    How should I handle this signature check, Is it needed to be accessed into HC filesystem?
    How?

     

     

     

    • Like 1
    Link to post
    Share on other sites
  • Topic Author
  • 36 minutes ago, Tundel said:

    How should I handle this signature check, Is it needed to be accessed into HC filesystem?

    Hi, You need to ssh to HC2 user root, password is unique for every device

    If You (still!) not have Yours, I will prepare the guideline for You here

    Link to post
    Share on other sites
  • Topic Author
  • 1 hour ago, Tundel said:

    I want to use sonoff% MQTT devices with HC.

    The MQTT bridge allows to expose fibaro devices to mqtt broker, but not to control other mqtt-connected devices.

    Well, offcourse node-red can translate some dummy property (like user SIPnumber) change to mqtt device control message

    Link to post
    Share on other sites
  • Topic Author
  • On 11/18/2019 at 9:23 PM, jack.daniels said:

    If You (still!) not have Yours, I will prepare the guideline for You here

    I would sugest to backup before any manipulation on your HC2, but normally all come smooth.

    Here is the root password readout script for HC2 4.560

    You will need python v3 to run it

    Before execute u need to update the script with correct ip address, user and pass

     

    Please login or register to see this attachment.

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites
    On 11/8/2019 at 8:38 AM, jack.daniels said:

    What I am missing in those implementations is user friendly interface. They are too much DIY ;)

    I love to have nodes like this:

    Menu

    In node settings just pick up the device name (filtered by given type)

    Ok, maybe I’ll implement this idea. Thanks 

    • Like 1
    Link to post
    Share on other sites
    On 11/8/2019 at 8:30 PM, jack.daniels said:

     

    Please login or register to see this link.

     - requires inject to work. this is not good, because this way events are handled not immediately

    Sorry, somethings is not clear for me, what I should re-develop, cuz your proposition like “all sh1t” is not good as for me as for developer of this node.

    Link to post
    Share on other sites
  • Topic Author
  • 2 hours ago, 10der said:

    Sorry, somethings is not clear for me, what I should re-develop,

    Check 

    Please login or register to see this link.

     how the polling implemented

    Its should be endless refreshStates loop (timeout 60sec)

    The response will be received right when there are new events posted 

    Edited by jack.daniels
    Link to post
    Share on other sites
    19 minutes ago, jack.daniels said:

    Check 

    Please login or register to see this link.

     how the polling implemented

    Its should be endless refreshStates loop (timeout 60sec)

    The response will be received right when there are new events posted 

    I am not familar with this node. I am author of 

    Please login or register to see this link.

     node and now asking what wrong here.

    Link to post
    Share on other sites
  • Topic Author
  • On 11/20/2019 at 10:20 AM, 10der said:

    I am author of 

    Yes, I know. I mean, You should check how the polling implemented in other bridge.IMO, events should be triggered when it happen and should not wait for the poll for X seconds.

    Link to post
    Share on other sites
    12 hours ago, jack.daniels said:

    Yes, I know. I mean, You should check how the polling implemented in other bridge.IMO, events should be triggered when it happen and should not wait for the poll for X seconds.

    yes, Come on, stab! Let's DDOS for HC2!

     

    that's why I am sking more than 3years from FIBARO put all event into MQTT server.

    Link to post
    Share on other sites
  • Topic Author
  • 5 minutes ago, 10der said:

    that's why I am sking more than 3years from FIBARO put all event into MQTT server.

    well, you shouldnt

    if you look more close to the things I pointed

    fibaro web gui implemented same way

    no ddos at all, the refreshStates waits for event for a minute and returns when there is one

    Link to post
    Share on other sites
    11 minutes ago, jack.daniels said:

    for a minute

    WUT?!

    second not minute

    and btw I do not totaly understand what you want from my node

     

    Please login or register to see this attachment.

    Link to post
    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...