ampio-logo

ampio PO-197-EN ከዚግቢ ፕሮቶኮል ጋር መቀላቀል

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol-product

ዝርዝሮች

  • ከዚግቢ ፕሮቶኮል ጋር ውህደት
  • የሰነድ ቁጥር: PO-197-EN
  • ስሪት: 3.0
  • የታተመበት ቀን፡- መጋቢት 19፣ 2025

የምርት መረጃ

The product allows for integrating devices that support the ZigBee protocol with the Ampio system. It involves connecting a gateway, such as the ZBDongle-E from Sonoff, to the M-SERV-s module using Node-RED for establishing the connection.

መግቢያ

የዚግቢ ፕሮቶኮልን የሚደግፉ መሳሪያዎች ከ Ampio ስርዓት ይቻላል, ለምሳሌample፣ መግቢያ ዌይን ከM-SERV-s ሞጁል ጋር በማገናኘት። Node-RED መጠቀም ግንኙነት ለመመስረት ቅድመ ሁኔታ ነው። ይህ መመሪያ የቀድሞውን ያቀርባልample of ZBDOngle-E ከሶኖፍ ከወሰነ antena ጋር እንደ መግቢያ።

የጌትዌይ ግንኙነት

In order to connect the gateway, disconnect M-SERV-s from its power supply, connect the gateway device and power up the server again. After a couple of minutes, activate an SSH connection via a www interface (more guidelines available in M-SERV server configuration). Log in onto the root account on the server with the password you have created e.g. through the putty application.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (1)

የመግቢያ ወደብ በመፈለግ ላይ
የይለፍ ቃሉን ካስገቡ በኋላ በሚከተለው ትዕዛዝ መሣሪያዎችን ይፈልጉ: dmesg | grep tty
የመግቢያ መንገዱ ምናልባት እንደ ttyACM0 ይታከላል።
Configuration for server images from version number 400 onwards

መጫን
የማንበብ እና የመፃፍ ሁነታን ያስገቡ

  • /መርጥ/ampio/bin/rw
  • go to the folder where you can make changes
  • cd /root
  • update the list of available packages
  • sudo apt-get update
  • install the pnpm package
  • npm install -g pnpm@10.4.1
  • install git
  • sudo apt install git
  • create a folder
  • sudo mkdir /root/zigbee2mqtt
  • change folder permissions
  • sudo chown -R root:root /root/zigbee2mqtt
  • clone the zigbee2mqtt repository
  • git clone - ጥልቀት 1 https://github.com/Koenkk/zigbee2mqtt.git/root/zigbee2mqtt
  • go to the folder
  • cd /root/zigbee2mqtt
  • install dedicated dependencies
  • pnpm i –frozen-lockfile
  • start building the package
  • pnpm run build
  • የቀድሞውን ይዘት ይቅዱample into your configuration file
  • cp /root/zigbee2mqtt/data/configuration.example.yaml /root/zigbee2mqtt/data/configuration.yaml

Modifying the configuration file

Open the file for editing
nano /root/zigbee2mqtt/data/configuration.yaml
Set the server field to mqtt://localhost.
MQTT connection fields according to your server settings, user is usually admin and the relevant password (login details as for the mqtt blocks in Node-RED). Remember to remove the # character indicating a line comment.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (2)

After the change, save and close the configuration file. In putty this is done via Ctrl+x, then y and Enter.

መጀመሪያ ሩጡ
Type the command
pnpm start

Configuration for images older than 400
Creating and configuring a folder

  • Create a folder:
    sudo mkdir /ampio/rw/zigbee2mqtt
  • ፈቃዶችን ይስጡ
    sudo chown -R ${USER}: /ampio/rw/zigbee2mqtt

የዚግቤ2mqtt ማከማቻ ክሎኒንግ
git clone - ጥልቀት 1 https://github.com/Koenkk/zigbee2mqtt.git/ampio/rw/zigbee2mqtt

ይዘትን በመጫን ላይ
Change the current folder:
ሲዲ /ampio/rw/zigbee2mqtt
and install:
npm ci

Modification of the configuration file
Open the file to be edited
nano /ampio/rw/zigbee2mqtt/data/configuration.yaml Set the server field to mqtt://localhost.
The port field should be completed with information obtained in the previous step e.g., /dev/ttyACM0.
MQTT connection field should be filled with your server settings, user set to admin and the correct password should be provided (login details are the same as for the mqtt blocks in Node-RED).

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (3)

Once the changes are introduced, close the configuration file. You can do that in putty by clicking Ctrl+x, then y and Enter at the end.

መጀመሪያ ማስጀመር
የሚከተለውን ትዕዛዝ አስገባ:
npm ጀምር

የባሪያ መሳሪያ መጨመር

በዚህ መመሪያ ውስጥ የተጨመረው መሳሪያ ከሶኖፍ የ SNZB-02 ሙቀት እና እርጥበት ዳሳሽ ነው. የመሳሪያዎቹ መመሪያዎች በየራሳቸው አምራቾች ላይ ይገኛሉ webጣቢያዎች. ለተገለጸው ዳሳሽ፣ በእሱ መያዣ ላይ ያለው አዝራር እሱን ለመጨመር ለ 5 ሰከንዶች ያህል መቀመጥ አለበት።
የዚግቤ በይነገጽ በአሳሹ በ IP_SERVER፡8080 (ለምሳሌ 192.168.1.6፡8080) ይገኛል። በበይነገጹ አንዴ ከገባህ ​​በፍቃድ መቀላቀል አማራጭ በኩል ተጨማሪ መሳሪያዎችን ራስህ ማከል ትችላለህ።

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (4) Once correctly added, the slave device will appear in the list.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (5)

በማዋቀሩ መጨረሻ ላይ የሁሉንም ነገር መጨመር አሁንም ያለጊዜው ሊቆም ይችላል.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (6)

Configuration in Node-RED

በ ውስጥ የኖድ-RED አጠቃቀምን መሰረታዊ ነገሮች የሚገልጽ መመሪያ Ampio ስርዓት እዚህ ይገኛል፡ ውህደት የ Ampio ስርዓት ከኖድ-RED ጋር። ሁለተኛ መሣሪያዎችን ካከሉ ​​በኋላ፣ ከ MQTT የመጣ ውሂብ Ampio መቀበል ይቻላል. መሣሪያው የሚያሰራጭበት ርዕስ ሊሆን ይችላል። viewበኤስኤስኤች ግንኙነት በኩል በተርሚናል ውስጥ ed. በዚህ አጋጣሚ, የተጨመረው መሳሪያ ዋና ርዕስ እና መታወቂያ ነው: zigbee2mqtt/0x00124b00250e039e.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (7)

ውሂብ ሊሆን ይችላል viewየማረም መስቀለኛ መንገድ ካከሉ በኋላ.

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (8)

ከፈለጉ ለ example, እርጥበት ያለውን ዋጋ ከአንድ ዳሳሽ ያንብቡ, የሚከተለውን መረጃ በመስቀለኛ መንገድ መላክ ያስፈልግዎታል:

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (9)

የተለያዩ የማጠናቀቂያ መሳሪያዎች መረጃን በተለያዩ መንገዶች ማሰራጨት ይችላሉ, ለዚህም ነው ጠቃሚ የሆነው view the data first in the debug window, before creating a function to send the information.

በራስ-ሰር ማስጀመር 
ከስሪት ቁጥር 400 ጀምሮ ለአገልጋይ ምስሎች
Log in again via SSH, being in the root folder download and run the script with the command: curl https://dist.ampio.pl/scripts/zigbee2mqtt400.sh | bash -s

ለአሮጌ ምስሎች
For the application to launch automatically after a power supply reboot, a suitable script must be written. Open the SYSTEM tab in the www interface of M-SERV and go to SCRIPTS. Download the attached file zigbee2mqtt.sh. Upload it by clicking on SELECT FILE፣ እና ከዚያ ስቀል FILE. ከዚያ ከትክክለኛው ስክሪፕት ቀጥሎ ያለውን የ5 ደቂቃ ሳጥን ምልክት ያድርጉ እና አስቀምጥን ጠቅ ያድርጉ።

ampio-PO-197-EN-Integration-with-a-ZigBee-protocol- (10)

የአፈጻጸም ሙከራ

In order to confirm the correctness of configuration, reboot the server’s power supply and, after a couple of minutes, check whether everything is working as intended in Node-RED, in the debug window, for instance.

If you went into rw mode during the configuration, at the end you should put the server back into read-only mode during the SSH connection: /opt/ampአዮ/ቢን/ሮ

Download file:

  • zigbee2mqtt.sh

የሚጠየቁ ጥያቄዎች

What is the prerequisite for establishing a connection with devices supporting ZigBee protocol?

Using Node-RED is a prerequisite for establishing a connection with devices supporting the ZigBee protocol.

ሰነዶች / መርጃዎች

ampio PO-197-EN ከዚግቢ ፕሮቶኮል ጋር መቀላቀል [pdf] መመሪያ መመሪያ
ZBDongle-E፣ PO-197-EN ከዚግቢ ፕሮቶኮል ጋር፣ PO-197-EN፣ ከዚግቢ ፕሮቶኮል ጋር ውህደት፣ ከዚግቢ ፕሮቶኮል ጋር፣ የዚግቢ ፕሮቶኮል፣ ፕሮቶኮል

ዋቢዎች

አስተያየት ይስጡ

የኢሜል አድራሻዎ አይታተምም። አስፈላጊ መስኮች ምልክት ተደርጎባቸዋል *