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

QuickApp - Zigbee2MQTT


rangee
 Share

Question

If this QuickApp helps you, you can give me a cup of coffee

Paypal :

Please login or register to see this link.


BuyMeA Coffee :

Please login or register to see this link.

 

Download QuickApp at MarketPlace : 

Please login or register to see this link.

Download QuickApp here: 

 

Please login or register to see this image.

/monthly_2021_01/zigbee2mqtt.png.fce0b98d7de5104ea8b56a515e784b01.png" />

 

 

 

 

QuickApp for Zigbee2MQTT.

 

It is based on MQTT protocol.

If you don't know about Zigbee2MQTT then refer here ->

Please login or register to see this link.

 

QuickApp Information

Current Version : 0.81

Last Updated : 2021-08-28

Author :

Please login or register to see this link.

Supported devices :

v0.80 -> 182 brand, 1172 devices

v0.81 -> 221 brand, 1544 devices
(You can see list at "support.lua" in device editor or

Please login or register to see this link.

)

Q&A, Request :

 

 

 

K-20210123-170726.png.1a41bda373d1b4a148b55f02df3016d0.png

 

 

Install Manual

  1. Install the QuickApp(howto:

    Please login or register to see this link.

    )
  2. Define Variables.
    1. Go to > devices
    2. Open installed QuickApp
    3. Choose Variables tab
    4. Edit the variables.
      1. MQTT_IP (ex: 192.168.1.1)
      2. MQTT_ID (ex: mqtt_admin)
      3. MQTT_PW (ex: mqtt_password)
    5. Save
  3. Install Zigbee devices.
    1. Open side panel of QuickApp or Choose Edit&Preview tab
    2. Just click the button to install child devices.
    3. Done.

Please login or register to see this attachment.

 

Option Variables

  1. Set icon of child devices.
    1. Go to > devices
    2. Open installed QuickApp
    3. Choose Variables tab
    4. Edit the "icon" variables.
      1. Type child device id and icon number pairs.
      2. child_id:icon_no,child_id:icon_no,... (ex: 100:1001,101:1002,102:1010)
      3. It is splited by comma , and paired by colon :
  2. Hide child devices.
    1. Go to > devices
    2. Open installed QuickApp
    3. Choose Variables tab
    4. Edit the "hide" variables.
      1. Type child device id.
      2. child_id,child_id,... (ex: 100,101,102)
      3. It is splited by comma ,
  3. Show child devices.
    1. Go to > devices
    2. Open installed QuickApp
    3. Choose Variables tab
    4. Edit the "show" variables.
      1. Type child device id.
      2. child_id,child_id,... (ex: 100,101,102)
      3. It is splited by comma ,
  4. Change Room of child devices.
    1. Go to > devices
    2. Open installed QuickApp
    3. Choose Varaibels tab
    4. Edit the "room" variables.
      1. Type child device id and room name pairs.
      2. child_id:room_name,child_id:room_name,... (ex: 100:Default,101:LivingRoom,102:Kitchen)
      3. It is splited by comma , and paired by colon :

 

 

 

Set Remote Controller

If you have switch or button zigbee devices(payload with action or click),

you need to define REMOTE table at main.lua

  1. Go to > devices
  2. Open installed QuickApp
  3. Choose Edit&Preview
  4. Click Edit
  5. Find "main" and click
  6. Find below then edit and save

** Read manaul carefully **

** You can use Scene instead of REMOTE table.

** Here's sample for button


REMOTE = {
--==--==--==--==--==--==--==--==--== START
    ["btn_p"] = {
        ["single"]      = {id=DT.wallpad_elevator, action="toggle"},
        ["double"]      = {id=DT.light_l_3, action="toggle"},
        ["triple"]      = {id=DT.light_k_2, action="toggle"},
        ["quadruple"]   = {},
    },
--==--==--==--==--==--==--==--==--== END
}

Please login or register to see this attachment.

Please login or register to see this attachment.

 

Change Log:

0.73

> First release

0.80

> Fix bug of cover entity.

0.81

> Fix bug and update supported devices.

Edited by rangee
update
  • Like 3
  • Thanks 1
Link to comment
Share on other sites

Recommended Posts

  • 0

Korean developer Best of the best

Link to comment
Share on other sites

  • 0

TEST ing

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0
52 minutes ago, max_fok said:

Does it use the hc3 zigbee element

No, this does not use the HC3 Zigbee chip.

 

52 minutes ago, max_fok said:

it needs another zigbee controller?

 

A bit more than that. The topic starter already mentioned this in the first post:

 

"It is based on MQTT protocol.

If you don't know about Zigbee2MQTT then refer here -> 

Please login or register to see this link.

"

 

But to clarify that a bit... You need...

 

Another controller + computer + setup software, details are here:

 

Please login or register to see this link.

 

It is possible to run that software (Zigbee2MQTT) on bare-metal Linux eg Raspberry Pi, but you can also run Zigbee2MQTT in a Docker container, as the Home Assistant Zigbee2MQTT add-on or even on Windows.

 

HC3 comes with a MQTT client, and that is what is used here to get date from/to Zigbee2MQTT. If you want the details, see 

Please login or register to see this link.

 

You do need at least one MQTT server in your network. A popular open source solution is 

Please login or register to see this link.

  • Like 2
Link to comment
Share on other sites

  • 0

Thanks both rangee and petergebruers! I struggle using home assistant. I installed it yesterday successfully on a raspberry pi but haven't figured out how to exclude switches from Homekit. The result I got two or three icons for just a light. So I got back to homebridge. Both home assistant and Homebridge support zigbee2mqtt as I ve checked. But I d be interested to integrate home assistant to fibaro someday. I ll try to get tomorrow a cheap Zigbee adapter CC2531 and to figure out how it works so to get a few Xiaomi sensors I have from an old setup. Thank you very much!!

Link to comment
Share on other sites

  • 0
  • Inquirer
  • 13 hours ago, max_fok said:

    it surely takes much to be reviewed, can't wait to try it.

    Make Fibaro work :(

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • As they dont review the QuickApp which I uploaded at marketplace, I will upload QA here soon.

    Link to comment
    Share on other sites

    • 0
    17 minutes ago, rangee said:

    As they dont review the QuickApp which I uploaded at marketplace, I will upload QA here soon.

     

    I know the feeling 

    Link to comment
    Share on other sites

    • 0
    22 hours ago, rangee said:

    As they dont review the QuickApp which I uploaded at marketplace, I will upload QA here soon.

    if you don't post the quick app here, please let us know! Cant wait! Thank you very much for your effort!!!

    Just now, max_fok said:

    if you don't post the quick app here, please let us know! Cant wait! Thank you very much for your effort!!!

    As also for the Zigbee2mqtt quick app :)

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Release Zigbee2MQTT(v0.73) QuickApp 2021-02-20

    Link to comment
    Share on other sites

    • 0

    hello, just yesterday I set up a Mi wireless switch WXKG01LM on home assistant so to control a group of lights. Via automations I set actions for each one of its functionalities, such as single click, double click and hold. However I integrated that device too via Zigbee2Mqtt quick app on Fibaro HC3 scenes, there is no option of state. Can I do anything to make it work under Hc3 too?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 18 minutes ago, max_fok said:

    hello, just yesterday I set up a Mi wireless switch WXKG01LM on home assistant so to control a group of lights. Via automations I set actions for each one of its functionalities, such as single click, double click and hold. However I integrated that device too via Zigbee2Mqtt quick app on Fibaro HC3 scenes, there is no option of state. Can I do anything to make it work under Hc3 too?

    Hello. There are examples how to do that. Look at post with images.  You should setting REMOTE like this. This is just sample so you should do with your case.

    id should be number.

    REMOTE = {
    --==--==--==--==--==--==--==--==--== START
        ["btn_p"] = {
            ["single"]      = {id=DT.wallpad_elevator, action="toggle"},
            ["double"]      = {id=DT.light_l_3, action="toggle"},
            ["triple"]      = {id=DT.light_k_2, action="toggle"},
            ["quadruple"]   = {},
        },
    --==--==--==--==--==--==--==--==--== END
    }

    Link to comment
    Share on other sites

    • 0
    22 minutes ago, rangee said:

    Hello. There are examples how to do that. Look at post with images.  You should setting REMOTE like this. This is just sample so you should do with your case.

    id should be number.

    REMOTE = {
    --==--==--==--==--==--==--==--==--== START
        ["btn_p"] = {
            ["single"]      = {id=DT.wallpad_elevator, action="toggle"},
            ["double"]      = {id=DT.light_l_3, action="toggle"},
            ["triple"]      = {id=DT.light_k_2, action="toggle"},
            ["quadruple"]   = {},
        },
    --==--==--==--==--==--==--==--==--== END
    }

    Sorry I didn't get that. Do you mean in the quick app Lua file?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 1 minute ago, max_fok said:

    Sorry I didn't get that. Do you mean in the quick app Lua file?

    Yes. In the quickapp  lua files.

    Read carefully, you could find the other way using remote at scene instead of quickapp lua files.

    Link to comment
    Share on other sites

    • 0
    2 minutes ago, rangee said:

    Yes. In the quickapp  lua files.

    Read carefully, you could find the other way using remote at scene instead of quickapp lua files.

    I see thanks again, though at scenes, choosing the device it shows me only the battery level.

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 1 minute ago, max_fok said:

    I see thanks again, though at scenes, choosing the device it shows me only the battery level.

     

    Please login or register to see this attachment.

    Oh. Not block scean. Its lua scene. We can't do that cuz child device don't support.

    If you want to use remote at scene, you should do with lua scene.

    Link to comment
    Share on other sites

    • 0

    OK got it thanks one last question please? In Lua scene do I use the names of the devices as shown in Fibaro or the entity name in home assistant? Sorry for such many questions. Thank you really much for you help!

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 4 hours ago, max_fok said:

    OK got it thanks one last question please? In Lua scene do I use the names of the devices as shown in Fibaro or the entity name in home assistant? Sorry for such many questions. Thank you really much for you help!

     

    DECLARATIONS
    {
      conditions = { {
          isTrigger = true,
          operator = "==",
          property = "zigbee2mqtt",
          type = "custom-event"
        } },
      operator = "all"
    }

    ACTIONS
    local r,c = api.get("/customEvents/zigbee2mqtt")
    if c == 200 then
        local value = r.userDescription
        local id, action = string.match(value, "(%d+):(.+)")
        print(id, action)
    end

     

    id is remote controller's id and action is action of remote controller's like single_press

     

    If R-C device id is 100 and action is single_press -> turn on id 101

    if id == 100 and action == "single_press" then  fibaro.call(101, "turnOn") end

    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.

     Share

    ×
    ×
    • Create New...