Neu: Die KI-Firewall überwacht die gesamte Plattform und erklärt jeden Vorfall in einfachen Worten. So funktioniert es

Michael Wilson

wilsonmaker

@wilson-m · Mitglied seit Juli 2025

Neuling

Maker · home automation · Nottingham · new to IoT

Themen
14
Antworten
70
Punkte
0
Neuling10 Punkte an Mitglied

Erstellte Forenantworten

Ansicht von 15 Beiträgen – 31 bis 45 (von insgesamt 70)

I’m a beginner too but I had exactly this with my weather station PC last winter, and the fix was to stop caring about the number. Find the port by what’s plugged into it instead. pyserial can list ports with their USB ids and serial number:

from serial.tools import list_ports

def find_arduino():
    for p in list_ports.comports():
        print(p.device, p.vid, p.pid, p.serial_number, p.description)
        if p.vid == 0x2341 and p.serial_number == "85736323838351F0B0E1":
            return p.device
    return None

port = find_arduino()
ser = serial.Serial(port, 9600, timeout=2)

Run it once to print yours and copy the serial number in. 0x2341 is the vendor id of genuine Arduino boards. If yours is a clone with a CH340 chip (vid 0x1A86), careful: those usually have no serial number, so with two clones you can’t tell them apart and you’d match on p.location (the USB socket) instead.

Also wrap the read loop so it looks for the port again after an error instead of dying, then people can replug whenever they like.

Ask me about 4–20 mA.
Akzeptierte Lösung♥ 8

Von English mit KI übersetzt ·

Ja, den gleichen Fehler habe ich letzten Winter zu Hause auf dem Papier gemacht. Du brauchst einen potentialfreien Kontakt, also entweder ein potentialfreies Relaismodul (wie die Sonoff RE5V1C oder ein beliebiger ESP8266 mit einem 5-V-Relaismodul, verdrahtet an COM/NO) an den Thermostatklemmen, parallel zum alten Thermostat, damit es auch dann funktioniert, wenn deine Platine ausfällt.Die Platinenseite war einfacher als gedacht, sobald ich den Katalog gefunden hatte. Öffne das Geräteprofil, den Reiter Commands, und klicke auf Add command:

Method:  heat.set
Label:   Heating
Tier:    Basic
Parameters: on (Yes / no, required)

Nur Befehle der Stufe Basic aus dieser Liste erscheinen in den Switch-Einstellungen. Dann im Switch: Run a command, Gerät und heat.set auswählen, Wert von „The control’s value“. Bind Current state an einen Telemetrieschlüssel binden, den die Platine meldet. Ich sende heat_on bei jeder Messung als 0/1, damit der Schalter zeigt, was das Relais tatsächlich tut, und nicht, was du geklickt hast. Bei Licht oder Heizung kannst du „Ask before running“ deaktivieren. Antworte mit derselben ID, sonst bleibt die Karte bei „Sent; waiting for the device“ hängen:

// in callback, topic "v1/rpc/req/17"
String id = String(topic).substring(11);
digitalWrite(RELAY, on ? HIGH : LOW);
mqtt.publish(("v1/rpc/res/" + id).c_str(), "{"ok":true}");

Verwendete Seite: Control cards.

Ask me about 4–20 mA.
Akzeptierte Lösung♥ 5

I looked into this for a friend’s small bakery. I couldn’t find a doc page for Forge either, so I can’t tell you what it does for quality or how it gets on a plan.

What works with the normal IoT part: have the sensor’s controller (or a small PLC) send the thickness of each piece, or the min/max/average per 10 s, as telemetry, e.g. {"thick_mm": 7.12, "rejects": 3}. Then an alarm rule on the profile for out of tolerance. There’s no „between“ operator, but you can group conditions with any:

{ "any": [
  { "key": "thick_mm", "op": "<", "value": 6.0 },
  { "key": "thick_mm", "op": ">", "value": 8.0 }
] }

For counts per shift, send a growing rejects_total counter and chart it with the increase aggregate per hour. The reject gate itself must be driven locally by the sensor controller or PLC, not from the cloud; a belt at 0.4 m/s can’t wait on a round trip.

The conditions reference is Alarm conditions reference.

Ask me about 4–20 mA.
Akzeptierte Lösung♥ 3

DNSServer + WiFiManager and the portal pops up on both phones now. Provisioning worked first time with pre-created names; I read the 30 chip IDs over serial into a CSV first. Forgot to save the token to NVS on my first build, so on reboot it tried to provision again and got device_exists. Fixed, and stickers are printed.

Ask me about 4–20 mA.
♥ 1

rev 2 boards arrived with two MMBT3904 and the 1 uF on EN. Uploads are automatic now and opening the monitor no longer resets it. I bodged rev 1 with transistors on wires, ugly but works. Thanks Eric, and Aoife for spotting it straight away.

Ask me about 4–20 mA.
♥ 1

Von English mit KI übersetzt ·

Das war’s. Das Gastnetzwerk verteilt den Router problemlos als DNS, aber mein Sketch verwendete eine fest codierte NTP-IP, die von einer Firewall blockiert wurde. Deshalb wurde die Uhr nie gestellt und TLS schlug fehl. Ich habe es auf pool.ntp.org umgestellt, und der Sensor ist wieder online. Alle fünf sind jetzt im Gastnetzwerk, die Isolation ist deaktiviert, und der Arbeitslaptop kann sie nicht sehen.An der Portweiterleitung habe ich nichts geändert, Kevin, trotzdem danke.

Ask me about 4–20 mA.
♥ 2

Von English mit KI übersetzt ·

Genau aus diesem Grund habe ich ein günstiges RTC-HAT gekauft, DS3231, für ein paar Pfund. Dann stimmt die Uhr auch offline.

Ask me about 4–20 mA.
♥ 0

Von English mit KI übersetzt ·

Soweit ich sehe, nur der Isolationsschalter, dazu eine Bandbreitenbegrenzung. Keine richtigen Regeln.

Ask me about 4–20 mA.
♥ 0
Ansicht von 15 Beiträgen – 31 bis 45 (von insgesamt 70)