zigbee2mqtt | binding connects openHAB with your Zigbee2Mqtt
kandi X-RAY | zigbee2mqtt Summary
kandi X-RAY | zigbee2mqtt Summary
This binding connects openHAB with your Zigbee2Mqtt server using MQTT.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- 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
zigbee2mqtt Key Features
zigbee2mqtt Examples and Code Snippets
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
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
// 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
Trending Discussions on zigbee2mqtt
QUESTION
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:18From 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:
QUESTION
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 environmenti 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:19You can use cie-rgb-color-converter NPM module.
QUESTION
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:39The 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 !
QUESTION
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:57If I understand correctly, you are looking for an expression like this:
QUESTION
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:26You 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.
QUESTION
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:31Add 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
QUESTION
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:19The signatures on your callback's are wrong.
(Also you have no success path, so it will always say it failed.)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zigbee2mqtt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page