Von English mit KI übersetzt ·
Keine Topics pro Gerät nötig. Alle 300 veröffentlichen auf dasselbe v1/telemetry. Hermetry erkennt anhand der Zugangsdaten, mit denen sich das Gerät angemeldet hat, wer spricht, das Token ist also faktisch die Adresse. Gerät 17 kann nicht als 18 schreiben, weil es die Zugangsdaten von 18 nicht besitzt, und ein Gerät kann nur seine eigenen Downlink-Topics abonnieren (v1/attributes/set, v1/rpc/req/+ und so weiter), sieht also ebenfalls nie Nachrichten anderer Geräte. Keine ACL-Datei zu pflegen.Kevin hat recht, dass es Custom-Topics gibt, aber die sind für Firmware gedacht, die man nicht ändern kann: Das Profil behandelt dann jedes Topic außerhalb von v1/ als Telemetrie des jeweiligen Geräts. Die Grenzwerte dabei sind Topic-Tiefe 8, Länge 128 und 50 verschiedene Topics pro Gerät. Mit „Prefix keys with the topic“ wird aus grid/s12/temp ein Schlüssel wie grid.s12.temp. Da du neue Firmware schreibst, lass all das weg.Für die Standort-ID würde ich ein Attribut des Geräts verwenden statt eines Teils des Topics. Sie ändert sich nicht minütlich, gehört also nicht in die Telemetrie.Referenz mit der vollständigen Topic-Tabelle: MQTT topics and payload reference. Eine praktische Sache aus meiner eigenen Umstellung: Gib jeder Einheit ein eigenes Zugangsdatum. Zwei Geräte mit demselben Token werfen sich ständig gegenseitig raus.
No per-device topics needed. All 300 publish to the same v1/telemetry. Hermetry knows who’s talking from the credential the device logged in with, so the token is effectively the address. Unit 17 can’t write as unit 18 because it doesn’t have 18’s credential, and a device can only subscribe to its own downlink topics (v1/attributes/set, v1/rpc/req/+ and so on), so it never sees another device’s messages either. No ACL file to keep.
Kevin’s not wrong that Custom topics exist, but they’re for firmware you can’t change: the profile then takes any topic outside v1/ as telemetry of that device. Limits there are topic depth 8, length 128 and 50 distinct topics per device, and with „Prefix keys with the topic“ grid/s12/temp becomes a key like grid.s12.temp. Since you’re writing new firmware, skip all of that.
For the site id I’d make it an attribute of the device instead of part of the topic. It doesn’t change every minute so it doesn’t belong in telemetry.
Reference with the full topic table: MQTT topics and payload reference. One practical thing from when I moved my own stuff: give every unit its own credential. Two devices sharing one token keep kicking each other off.

