ampio-merki

ampio PO-197-EN Samþætting við ZigBee samskiptareglur

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

Tæknilýsing

  • Samþætting við ZigBee samskiptareglur
  • Skjalnúmer: PO-197-EN
  • Útgáfa: 3.0
  • Útgáfudagur: 19. mars 2025

Upplýsingar um vöru

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.

Inngangur

Samþætting tækja sem styðja ZigBee samskiptareglur við Ampio kerfið er mögulegt, til dæmisampmeð því að tengja gátt við M-SERV-s eininguna. Notkun Node-RED er forsenda þess að koma á tengingu. Þessi handbók kynnir dæmiðampZBDongle-E frá Sonoff með sérstöku loftneti sem gátt.

Gateway tenging

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)

Að leita að hliðargáttinni
Eftir að þú hefur slegið inn lykilorðið skaltu leita að tækjum með eftirfarandi skipun: dmesg | grep tty
Gáttin verður líklega bætt við sem ttyACM0.
Configuration for server images from version number 400 onwards

Uppsetning
Fara í les- og skrifstillingu

  • /valið/ampio/bin/rw
  • go to the folder where you can make changes
  • cd /root
  • update the list of available packages
  • sudo apt-get uppfærsla
  • install the pnpm package
  • npm install -g pnpm@10.4.1
  • install git
  • sudo apt setja upp git
  • create a folder
  • sudo mkdir /root/zigbee2mqtt
  • change folder permissions
  • sudo chown -R root:root /root/zigbee2mqtt
  • clone the zigbee2mqtt repository
  • git klón –dýpt 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
  • afrita innihald fyrrverandi skjalsinsample 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/gögn/stillingar.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.

Fyrsta hlaupið
Type the command
pnpm start

Configuration for images older than 400
Creating and configuring a folder

  • Create a folder:
    sudo mkdir /ampio/rw/zigbee2mqtt
  • Veita heimildir:
    sudo chown -R ${USER}: /ampio/rw/zigbee2mqtt

Klónun á zigbee2mqtt geymslunni
git klón –dýpt 1 https://github.com/Koenkk/zigbee2mqtt.git/ampio/rw/zigbee2mqtt

Uppsetning efnis
Change the current folder:
geisladisk /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.

Fyrsta sjósetja
Sláðu inn eftirfarandi skipun:
npm byrjun

Bæta við undirtæki

Tækið sem bætt er við í þessari handbók er SNZB-02 hita- og rakaskynjarinn frá Sonoff. Leiðbeiningar fyrir tækin eru aðgengilegar á vefsíðu viðkomandi framleiðenda. webstaðsetningar. Fyrir skynjarann ​​sem lýst er þarf að halda hnappinum á hulstrinu niðri í 5 sekúndur til að bæta honum við.
Zigbee viðmótið er aðgengilegt í vafranum á IP_SERVER:8080 (t.d. 192.168.1.6:8080). Þegar þú ert kominn inn í viðmótið geturðu bætt við fleiri tækjum handvirkt með því að nota valkostinn „Leyfa tengingu“.

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)

Að uppsetningunni lokinni er enn hægt að stöðva viðbót alls fyrir tímann.

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

Configuration in Node-RED

Leiðbeiningar sem lýsa grunnatriðum notkunar Node-RED í Ampio kerfið er aðgengilegt hér: Samþætting við Ampio kerfið með Node-RED. Eftir að aukatækjum hefur verið bætt við, gögnum úr MQTT AmpHægt er að taka á móti io. Efni sem tækið er að senda út um getur verið viewí flugstöð með SSH-tengingu. Í þessu tilfelli er það aðalatriðið og auðkenni tækisins sem bætt var við: zigbee2mqtt/0x00124b00250e039e.

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

Gögn geta verið vieweftir að kembiforritahnút var bætt við.

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

Ef þú vilt til dæmisampEf þú lest rakastigið úr skynjara þarftu að senda eftirfarandi upplýsingar í gegnum hnútafallið:

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

Mismunandi tæki geta sent út upplýsingar á mismunandi vegu, þess vegna er þess virði að... view the data first in the debug window, before creating a function to send the information.

Sjálfvirk ræsing 
fyrir netþjónsmyndir frá útgáfu 400 og síðar
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

fyrir eldri myndir
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, og HLAÐA SÍÐAN UPP FILEMerktu síðan við í 5 mínútna reitinn við hliðina á réttu handritinu og smelltu á VISTA.

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

Frammistöðupróf

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/ampio/bin/ro

Download file:

  • zigbee2mqtt.sh

Algengar spurningar

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.

Skjöl / auðlindir

ampio PO-197-EN Samþætting við ZigBee samskiptareglur [pdfLeiðbeiningarhandbók
ZBDongle-E, PO-197-EN Samþætting við ZigBee samskiptareglur, PO-197-EN, Samþætting við ZigBee samskiptareglur, með ZigBee samskiptareglum, ZigBee samskiptareglur, samskiptareglur

Heimildir

Skildu eftir athugasemd

Netfangið þitt verður ekki birt. Nauðsynlegir reitir eru merktir *