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

a native integration Home Assistant and HC3 (MQTT Discovery)


hater

Question

hi!

 

Please login or register to see this attachment.

 

just for testing.

simple integration with HASS.

change MQTT server address and all* your devices now in your HASS

 

disclaimer:

1) alpha version.

2) only for ZWave devices

3) now supported only "Binary sensors / Lights / Sensors / Switches"

4) has minor bug with dimmer devices

 

Thanks to:

Peter for conception, testing and what he still tolerates me :)

Jan for fantastic fibaroapiHC3.lua 

Tinman for sha* lib

 

14.04.2021

 

all lighting switches (interface lighting) now marked in HASS as "lighting" and you can simple grab this devices.

 

Please login or register to see this code.

 

 

 

 

HC3 configuration

Please login or register to see this attachment.

 

 

 

HASS:

check is installed

image.png.4248af55da56be9def5bffaad5559a3b.png

 

Appendix

RTFM: 

Please login or register to see this link.

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

14 answers to this question

Recommended Posts

  • 0

I have this working.

 

I just wondered are you looking at the reverse at all?

Either importing devices using the MQTT discovery protocol (which HA doesn't support for export of devices)  or using HAStatesSream or the API to discover devices in HA and importing them to FIbaro?

 

PS Just for info this code requires HA has the LWT topics enabled.

Edited by xAPPO
Link to comment
Share on other sites

  • 0
  • Inquirer
  • @xAPPO sorry, I am lamer here ?

    just setuped some years ago HASS and only right now I can start working with it.

    Plus Peter ( petergebruers  ) is mentoring me cuz old integration did by him 

    Link to comment
    Share on other sites

    • 0
    11 hours ago, xAPPO said:

    I just wondered are you looking at the reverse at all?

    You mean, exposing all "states" and "events" originating in HASS to HCx? No, I am not looking at that at all.

     

    If you are only interested in Zigbee, this might do what you want (and does not need HASS)

     

    At the moment, I cannot get to the FQA because the "marketplace" is down, "Error 522"

    Link to comment
    Share on other sites

    • 0

    Yes , that's what I meant. 

     

    Perversely although HA promote their MQTT auto discovery format they don't support it for export of their own HA devices.  Hence you have to use HA Statestream or their API. 

    I wrote the HA > Hubitat integration and so I may take a look at doing this for HA > MQTT and then onwardly MQTT > HC3 with auto discovery. One for the project list.

     

    Kevin

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • UPDATED: all switches they has lighting interface now marked as is_lighting_device

    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    Very interesting topic :) 

     

    I wonder if it is possible to do the reverse:  MQTT autodiscovery on the HC3 - to import stuff from a LAN MQTT broker.  I have about 70 devices on a broker which i would like to get into HC3 but setting them up one by one is ?

     

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Clear all HC3' HomeAssistant entities

     

    Please login or register to see this code.

     

    Edited by hater
    Link to comment
    Share on other sites

    • 0

    Hello

     

    I ha e download the quicapp and when I put in all the credentials

    I get an error in hc3 

    Mqtt error code"2"

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • On 7/31/2021 at 9:32 PM, nisrani said:

    Hello

     

    I ha e download the quicapp and when I put in all the credentials

    I get an error in hc3 

    Mqtt error code"2"

    2 - not found,

     

    Link to comment
    Share on other sites

    • 0
    On 4/3/2021 at 8:36 PM, hater said:

    Hello

    What do You Mean

    On 4/3/2021 at 8:36 PM, hater said:

     

    Hello 

     

    thanks For The replay

    But i don t know what You mean

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 14 hours ago, nisrani said:

    What do You Mean

    Hello 

     

    thanks For The replay

    But i don t know what You mean

    wrong MQTT server IP address or / and your MQTT server password protected.

     

    Link to comment
    Share on other sites

    • 0

    Hello thanks For The replay 

     

    but in The broker log i see that mime Fibaro Ip adress try to Connect but than The Messages disconnect come 

    and i did nog set-up a usrername of password For The broker 

    Link to comment
    Share on other sites

    • 0
    On 8/3/2021 at 3:39 PM, hater said:

    2 - not found,

     

    Hello thanks For The info

    i have added A username and password in mqtt and know it works

    • Thanks 1
    Link to comment
    Share on other sites

    • 0

    Yo @hater

     

    Can you maybe help me with something, i'm trying to get your quickapp to work. But i get some error

     

    [31.12.2022] [10:59:38] [ERROR] [QUICKAPP499]: Error: {"code":113}

     

    I'll am probably doing something stupid, i just changed the IP in the var's..what can go wrong :)

     

    I've setup MQTT in HA, but this is with a user/pass login. Do i need to make a seperate user without credentials ?

    If so, how do i do that.because when i add a user to HA, it needs the pass and username field to be filled in.

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