Traduit de English par IA ·
Nous avions un site similaire sur un parc logistique et nous avons fini par retirer complètement la connexion internet du mesh. La racine reste un simple nœud mesh (pas de mode station, donc le canal n’a pas d’importance) et communique en UART à 115200 avec un ESP32 à proximité. L’ESP32 est connecté en Ethernet ou au Wi-Fi de l’usine, dispose de la RAM nécessaire pour TLS, et c’est le seul élément qu’Hermetry connaît.Déclarez l’ESP32 comme appareil passerelle dans Hermetry (cochez This device is a gateway lors de la création) et signalez chaque nœud mesh comme enfant sur les topics de la passerelle. Utilisez l’identifiant du nœud mesh ou un libellé comme nom d’enfant et envoyez un type afin qu’ils aboutissent tous sur un même profil :
v1/gw/connect {"device": "yard-n07", "type": "yard-temp"}
v1/gw/telemetry {"yard-n07": {"values": {"temp_c": 41.2, "rssi": -71}},
"yard-n03": {"values": {"temp_c": 38.9, "rssi": -64}}}
Créez d’abord un profil nommé exactement yard-temp ; les enfants le recevront alors automatiquement et vos règles d’alarme se configurent sur ce profil. Omettez ts sauf si l’ESP32 dispose de NTP : la plateforme horodatera alors l’arrivée.Si vous voulez plus tard envoyer une commande à un nœud, elle arrive à l’ESP32 sur v1/gw/rpc, puis l’ESP32 la transmet en UART à la racine, qui la fait parvenir dans le mesh. Référence : Devices behind a gateway.
We had a similar yard on a logistics site and ended up taking the internet job away from the mesh entirely. The root stays a plain mesh node (no station mode, so channel doesn’t matter) and talks over UART at 115200 to an ESP32 next to it. The ESP32 is on Ethernet or the plant Wi-Fi, has the RAM for TLS, and is the only thing Hermetry knows about.
Make the ESP32 a gateway device in Hermetry (tick This device is a gateway when you create it) and report each mesh node as a child on the gateway topics. Use the mesh node id or a label as the child name and send a type so they all land on one profile:
v1/gw/connect {"device": "yard-n07", "type": "yard-temp"}
v1/gw/telemetry {"yard-n07": {"values": {"temp_c": 41.2, "rssi": -71}},
"yard-n03": {"values": {"temp_c": 38.9, "rssi": -64}}}
Create a profile named exactly yard-temp first, then children get it automatically and your alarm rules go on that profile. Leave out ts unless the ESP32 has NTP, the platform will stamp arrival time.
If you later want to send something to a node, a command to a child comes down to the ESP32 on v1/gw/rpc, and the ESP32 passes it over UART to the root and into the mesh. Reference: Devices behind a gateway.

