Novedad: el cortafuegos de IA supervisa toda la plataforma y explica cada incidente con palabras sencillas. Vea cómo funciona

Michael Wilson

wilsonmaker

@wilson-m · Se unió el julio 2025

Recién llegado

Maker · home automation · Nottingham · new to IoT

Temas
14
Respuestas
70
Puntos
0
Recién llegado10 puntos para Miembro

Respuestas de foro creadas

Viendo 15 entradas – de la 31 a la 45 (de un total de 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.
Solución aceptada♥ 8

Traducido del English por IA ·

Sí, cometí el mismo error en papel el invierno pasado en casa. Necesitas un contacto seco, así que o bien un módulo de relé libre de tensión (la placa tipo Sonoff RE5V1C, o cualquier ESP8266 con un módulo de relé de 5 V conectado a COM/NO) en los terminales del termostato, en paralelo con el termostato antiguo para que siga funcionando si tu placa falla.La parte de la placa fue más fácil de lo que pensaba una vez que encontré el catálogo. Abre el perfil del dispositivo, la pestaña Commands, y pulsa Add command:

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

Solo los comandos de nivel Basic de esa lista aparecen en la configuración del Switch. Luego, en Switch: Run a command, elige el dispositivo y heat.set, con el valor de «The control’s value». Vincula Current state a una clave de telemetría que reporte la placa: yo envío heat_on como 0/1 con cada lectura para que el interruptor muestre lo que el relé hace realmente, y no lo que pulsaste. Para una luz o calefacción puedes desactivar «Ask before running». Responde con el mismo id o la tarjeta se queda en «Sent; waiting for the device»:

// 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}");

Página que usé: Control cards.

Ask me about 4–20 mA.
Solución aceptada♥ 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.
Solución aceptada♥ 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

Traducido del English por IA ·

Era eso. La red de invitados entrega bien el router como DNS, pero mi sketch usaba una IP de NTP fija que un cortafuegos bloqueaba, así que el reloj nunca se ajustó y TLS falló. Lo cambié a pool.ntp.org y el sensor volvió a funcionar. Los cinco están ahora en la red de invitados, con el aislamiento desactivado, y el portátil del trabajo no puede verlos.No toqué el reenvío de puertos, Kevin, gracias de todos modos.

Ask me about 4–20 mA.
♥ 2

Traducido del English por IA ·

Compré una RTC HAT barata justo para este motivo, una DS3231, por un par de libras. Así el reloj está bien incluso sin conexión.

Ask me about 4–20 mA.
♥ 0

Traducido del English por IA ·

Por lo que veo, solo el interruptor de aislamiento, además de un límite de ancho de banda. No hay reglas adecuadas.

Ask me about 4–20 mA.
♥ 0
Viendo 15 entradas – de la 31 a la 45 (de un total de 70)