zigbee2mqtt | binding connects openHAB with your Zigbee2Mqtt

 by   nibi79 Java Version: v0.2-beta License: No License

kandi X-RAY | zigbee2mqtt Summary

kandi X-RAY | zigbee2mqtt Summary

zigbee2mqtt is a Java library typically used in Internet of Things (IoT) applications. zigbee2mqtt has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

This binding connects openHAB with your Zigbee2Mqtt server using MQTT.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              zigbee2mqtt has a low active ecosystem.
              It has 9 star(s) with 2 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 13 have been closed. On average issues are closed in 4 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of zigbee2mqtt is v0.2-beta

            kandi-Quality Quality

              zigbee2mqtt has 0 bugs and 0 code smells.

            kandi-Security Security

              zigbee2mqtt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              zigbee2mqtt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              zigbee2mqtt does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              zigbee2mqtt releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 1617 lines of code, 122 functions and 25 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed zigbee2mqtt and discovered the below as its top functions. This is intended to give you an instant insight into zigbee2mqtt implemented functionality, and help decide if they suit your requirements.
            • Initialize the instance
            • Creates a state channel
            • Converts channel discovery information into channels channels
            • Start discovery topic
            • Handles a message
            • Handles log messages
            • Handles the config values
            • Handles a network map message
            • Called when the connection state changed
            • Add new messages to all topics
            • Start scan
            • Initializes the SPI connection
            • Creates a broker connection
            • Handles incoming messages
            • Unregister a ThingHandler
            • Handles a channel discovery
            • Disposes the connection
            • Process a JSON message
            • Creates and returns a ThingHandler for the given Thing
            • Handle a command
            • Adds information about the message
            Get all kandi verified functions for this library.

            zigbee2mqtt Key Features

            No Key Features are available at this moment for zigbee2mqtt.

            zigbee2mqtt Examples and Code Snippets

            Table of contents,File based configuration,.sitemap
            Javadot img1Lines of Code : 37dot img1no licencesLicense : No License
            copy iconCopy
            sitemap zigbee2mqtt label="Zigbee2Mqtt"
            { 
                Frame label="Zigbee2Mqtt Server"{
                    Selection item=Z2mLogLevel  mappings=[debug="Debug", info="Info", warn="Warn", error="Error"]
                    Switch item=Z2mPermitJoin
                    Image item=Z2mNetworkMap
              
            Table of contents,File based configuration,.rules
            Javadot img2Lines of Code : 35dot img2no licencesLicense : No License
            copy iconCopy
            rule "Refresh Z2MRefreshNetworkMap"
            when
                 Time cron "0 0 0 * * ?"
            then
                RefreshMap.sendCommand("REFRESH")
            end
            
             rule "Zigbee2Mqtt Cube SLIDE"
             when
               Channel "zigbee2mqtt:zigbee2mqttDevice:z2m:XiaomiMFKZQ01LM:action" triggered "slide"
             then
               
            Table of contents,File based configuration,.items
            Javadot img3Lines of Code : 33dot img3no licencesLicense : No License
            copy iconCopy
            // Zigbee2Mqtt Server
            Group gZ2m
            String Z2mLogLevel "LogLevel" (gZ2m) {channel="zigbee2mqtt:zigbee2mqttServer:z2m:logLevel"}
            Switch Z2mPermitJoin "PermitJoin" (gZ2m) {channel="zigbee2mqtt:zigbee2mqttServer:z2m:permitJoin"}
            Image Z2mNetworkMap "Networ  

            Community Discussions

            QUESTION

            Python: Stop Loop After Time Period
            Asked 2022-Mar-11 at 19:08

            I am having problems where every now and them my python script will cease to run and i'll stop getting data points added to the db, i want to make the script only run for 10 mins and every 10 mins a cron job will start a new instance.

            My code below fails to stop after 10 mins, my python experience is measured in minutes so i'm sure its something obvious to a seasoned Python coder, thanks in advance.

            ...

            ANSWER

            Answered 2022-Mar-11 at 00:18

            From a github issue of the library you are using:

            if you need to quit the program after a certain period of not receiving any messages, you might try something like this:

            Source https://stackoverflow.com/questions/71432076

            QUESTION

            how to convert Ikea light bulb color XY ( CIE 1931 colorspace ) to RGB
            Asked 2022-Jan-10 at 11:04
            Problem

            i got a similar problem like this one:

            How to convert CIE color space into RGB or HEX color code in PHP

            how to convert xy color to sRGB? I can't get the formular working xyY. What should i enter for Y?

            Setup of the environment

            i got an ikea light bulb which gives me a XY color value in the (CIE 1931 colorspace) I would like to convert it into RGB,(sRGB) or HEX.

            The Phosconn app is sending the following xy values when setting the colors by full brighness and saturation.

            ...

            ANSWER

            Answered 2022-Jan-07 at 11:19

            QUESTION

            own application use zigbee2mqtt and homeassistant : concurrent access
            Asked 2021-Dec-31 at 09:39

            I have my own application. This application use the zigbee2mqtt service running on the server.

            I want to add homeassistant on the same server.

            The server is a Raspberry with a zigbee USB stick connected.

            However, it seems that using both in the same time doesn't work.

            Either it works for my application, either it works for home assistant.

            Someone has an idea how to deal with it ? Does I need to buy an other zigbee USB stick (one for my own application, and one for Home assistant ?)

            Thanks

            ...

            ANSWER

            Answered 2021-Dec-31 at 09:39

            The solution found is the following :

            Use the homeassistant (supervisor) to have the feature to add the zigbee2mqtt add-on (here).

            Once it's successfully configured, the zigbee2mqtt service run in home assistant.

            And you can send mqtt messages to the service from homeassistant (via the existing integration). Also, you can send mqtt messages from my own application.

            It works !

            Source https://stackoverflow.com/questions/70489486

            QUESTION

            Solving this simple(?) JSONPath
            Asked 2020-Dec-10 at 02:57

            I am new to this topic, but I hope you can help me. I can't figure out a correct JSON expression for solving my problem.

            Given JSON structure (coming from zigbee2mqtt):

            ...

            ANSWER

            Answered 2020-Dec-10 at 02:57

            If I understand correctly, you are looking for an expression like this:

            Source https://stackoverflow.com/questions/65201641

            QUESTION

            How can i merge philips hue mesh with mqtt mesh in home assistant?
            Asked 2020-Dec-09 at 09:26

            My setup is as follows:

            Home assistant running on a VM server with CC2531 zigbee2mqtt USB stick. Next to server there is a Philips Hue hub.

            I have a number of Hue lights and switches connected to Philips Hue hub. This is integrated using Philips Hue integration to Home Assistant. I have some Aqara sensors I'm connecting to Home Assistant via USB stick. And integrated using MQTT into home assistant.

            Lights/switches work throughout the house - mesh is working correctly. Some devices are pretty far away. Aqara sensors ( they are all end devices ) are not working too far from USB stick.

            This leads me to believe that at this point i have two separate zibgee meshes - one native philips hue and one for aqara.

            How can i merge those two meshes ? I guess I'd have to do away with philips hue bridge and merge all philips devices into mqtt mesh ? Is there another way ?

            Thanks,

            B

            ...

            ANSWER

            Answered 2020-Dec-09 at 09:26

            You can either decide to use only your Z2M mesh and discard Hue. That needs to pair all devices from the Hue bridge to the CC2531 and Z2M. Keep in mind that CC2531 has limited resources and you can encounter issues if you have too many devices.

            What I suggest is to keep two distinct networks but move some of the bulbs to the Z2M mesh in order to use them as relays, especially for your furthest Aqara end devices.

            Source https://stackoverflow.com/questions/64296529

            QUESTION

            How to grant Tomcat 9 access on other files
            Asked 2020-May-14 at 01:31

            Tomcat 9 is sandboxed.

            I want to read data of a log file.

            The file is in "/opt/zigbee2mqtt/data/."

            I read this thread already and tried it. How to allow Tomcat war app to write in folder

            I edited the file, and did systemctl daemon-reload as well as systemctl restart tomcat9.

            Then I wrote my java class with should read the data out of the log file. But I get an exception.

            ...

            ANSWER

            Answered 2020-May-14 at 01:31

            Add tomcat to a group and grant this group to the required access to that file, you can create a group called webserver. Then restart tomcat and try again

            Source https://stackoverflow.com/questions/61783481

            QUESTION

            How to get a one-shot message with MQTT?
            Asked 2020-Apr-13 at 17:19

            I wrote a monitoring service for my home automation system. One of the things I would like to monitor are Zigbee devices, controlled by Zigbee2MQTT.

            I need to retrieve from Zigbee2MQTT the configured devices and perform some checks. Ideally there would be a synchronous API in Zigbee2MQTT to get this information, but it is all MQTT-based: - I need to subscribe to a topic - send a message to another topic - and I will the receive on the first topic the configuration.

            My first question would be: is there a ready-made solution for such one-shot cases? Something along the lines of

            ...

            ANSWER

            Answered 2020-Apr-13 at 17:19

            The signatures on your callback's are wrong.

            (Also you have no success path, so it will always say it failed.)

            Source https://stackoverflow.com/questions/61189974

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install zigbee2mqtt

            For the first installation of the binding you need to copy the latest release into the /addons folder of your openHAB installation. In case you want to upgrade the binding to a newer version, please check the release notes first.

            Support

            Currently following Things are supported:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/nibi79/zigbee2mqtt.git

          • CLI

            gh repo clone nibi79/zigbee2mqtt

          • sshUrl

            git@github.com:nibi79/zigbee2mqtt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link