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

Emily C.

emily30

@emily-campbell · Se unió el agosto 2025

Recién llegado

Backend developer · energy

Temas
6
Respuestas
36
Puntos
0
Recién llegado10 puntos para Miembro

Respuestas de foro creadas

Viendo 15 entradas – de la 1 a la 15 (de un total de 36)

I asked the same thing when we did our first site, so here’s what I learned.

It comes down to the concentrator chip (SX1302/SX1303 family in current gateways, SX1301/1308 in older ones). It isn’t one radio, it’s a baseband that demodulates 8 channels in parallel and on each channel every spreading factor at once. A sensor doesn’t have to «connect» either: it transmits, every gateway in range hears it, done. No association like Wi-Fi. So listening to hundreds of sensors is mostly listening to short bursts that rarely overlap.

The cheap indoor ones use the same chip family. What you give up is the outdoor stuff: enclosure, a good antenna up high, cellular backhaul, GPS.

For Hermetry, check three things before buying:

  • A model for your band. Hermetry’s network server follows the gateway’s frequency plan, so the gateway and your sensors just need to be on the same one.
  • Basics Station support (LNS). The old UDP packet forwarder isn’t supported.
  • It lets you set tc.uri, upload tc.trust and set the token (tc.key). Hermetry doesn’t use CUPS, you configure it once by hand.

On the channels: Hermetry sends the gateway its radio configuration when it connects (on EU868 the 8 channels plus a 250 kHz LoRa channel and an FSK channel), so you don’t set channels yourself.

Keisha, for a warehouse: indoor gateway in the middle, mounted high, and check RSSI/SNR of the furthest sensors in the frames log before you trust coverage. Racking full of metal eats a lot.

Solución aceptada♥ 2

Traducido del English por IA ·

Tenemos un flujo que envía datos a una API de proveedor, con la clave en una fila de encabezado personalizada (X-Api-Key). ¿Debería pasarse al nuevo secreto con nombre o a otro lugar?

♥ 0

That makes sense, thanks Maria. Energy per wake-up was the idea I didn’t have. We’re going with an STM32L0 and we’ll measure a full wake cycle with a power profiler rather than reading datasheets. And yes, the transmit interval is now the main discussion.

♥ 0

Traducido del English por IA ·

Actualización para quien encuentre esto más adelante. Nuestra unidad tiene el terminal de encendido/apagado remoto; el instalador le conectó un cable de dos hilos el jueves. El enchufe ahora solo cierra un contacto seco; saqué la salida del relé de la carcasa del enchufe y la llevé a una pequeña caja DIN. El estado de funcionamiento vuelve por un GPIO libre como ac.running.La regla se activó de verdad ayer cuando la sala llegó a 27.4; el aire acondicionado arrancó y recibí la notificación. Un error que cometí al principio: había desactivado Ask antes de usar el interruptor, y lo volví a activar tras el comentario de Rachel sobre clics accidentales.

♥ 0

Traducido del English por IA ·

Brian, hecho, ahora tiene su propio perfil y el rango de la oficina está fijado.emily23, tienes razón y eso acaba con mi plan. Lo probé a la hora de comer: desenchufé durante 30 segundos, volví a enchufar, la unidad interior pitó dos veces y se quedó apagada. Así que el enchufe solo puede apagarlo, y apagar un compresor inverter a mitad de ciclo probablemente tampoco es buena idea.

♥ 2

Your colleague is half right. Buffering on licensed gateways covers the link going down: they keep readings locally and send them later with their original timestamps, so the history fills in. How much they keep depends on the model, worth asking about the specific one before relying on it. Licensed gateways and Hermetry Edge

But a buffer doesn’t help when the power is off. The gateway is off, and so are your meters’ RS-485 interfaces if they’re on the same supply. There’s nothing to read. So in your hut the UPS is what keeps data flowing, and the buffering is what covers LTE dropouts.

For the charger, I’d not build one. A DIN-rail DC UPS module (24 V or 12 V, takes the battery directly, does float charge and switchover, has a «mains fail» relay output) is about the price of the parts and the time you’d spend. If you do build, Rahul’s numbers are right: about 13.6-13.8 V float at 20 °C, current limited to around 0.1C (0.7 A for 7 Ah), and temperature compensation if the hut gets hot.

Wire the «mains fail» contact to a gateway input and send it as mains_ok. Then an alarm on mains_ok == 0 tells you about the outage itself, and you can make the offline alarm of the meters wait longer than the UPS runtime minus a margin. If you use the Remote sites ready solution, its UPS profile already has keys like ups_a_status and ups_a_charge you could fill.

Solución aceptada♥ 3

Did this at home last winter. Bulbs: pick ones with a documented local LAN API. WiZ bulbs take JSON over UDP port 38899, LIFX has its LAN protocol, both work from Python without any cloud account once they’re on your Wi-Fi. Around 10-15 GBP each.

The list is empty because the Switch can only send commands from the device profile’s Commands catalog. So:

1. On the Pi’s profile, Commands tab, add light.set, tier Basic, parameters room (Choice: hallway, living) and on (Yes / no). Boards send only Basic tier catalog commands, a Privileged one gets refused on a board.
2. On the Pi, handle v1/rpc/req/+, switch the bulb, answer on v1/rpc/res/{id}, and publish the real state as telemetry, as numbers: {"hallway_on": 1}.
3. Switch card settings: When this control is used, Run a command, device = the Pi, command light.set, room as a fixed value, on from the control’s value. Then bind Current state to hallway_on.

That last step answers David: the Switch shows what the Pi reports, so poll the bulb every 30 s or so and publish it, then a wall switch change shows up too. With a wall switch cutting power the bulb is just gone, so leave the wall switches on. Details on Control cards.

Solución aceptada♥ 1

Traducido del English por IA ·

Cuando pulso Revocar en una fila, ¿la sesión se invalida de inmediato o sigue activa hasta que caduque su token de acceso?

♥ 0

…it was on 115200. Changed the sketch to 9600 and the lines are clean. The heat pump shows up as its own child device now, flow 41.3, return 36.8. Thanks all, Lewis especially for the divider warning, I was about to wire it straight.

♥ 0

Kevin A and Maria have both bits. I did nearly the same light controller for our office last year. Parse the JSON with ArduinoJson (it takes the buffer and length, so no null needed), pull the request id off the end of the topic, and answer on v1/rpc/res/ with that id. The «waiting for the device» stays because the board never gets an answer.

#include <ArduinoJson.h>
void callback(char* topic, byte* payload, unsigned int length) {
String t(topic);
String id = t.substring(t.lastIndexOf('/') + 1);   // "17"
StaticJsonDocument<256> doc;
if (deserializeJson(doc, payload, length)) return;
if (doc["method"] == "light.set") {
int level = doc["params"]["level"] | -1;          // -1 if missing
if (level >= 0 && level <= 100) {
analogWrite(D5, map(level, 0, 100, 0, 1023));
client.publish(("v1/rpc/res/" + id).c_str(), "{"ok":true}");
return;
}
}
client.publish(("v1/rpc/res/" + id).c_str(), "{"ok":false}");
}

ESP8266 analogWrite is 0-1023 by default, hence the map. And subscribe to v1/rpc/req/+ after every reconnect, not only in setup, or commands stop after the first Wi-Fi drop.

The topic list is on MQTT topics and payload reference.

Solución aceptada♥ 1

Hi Buğra. Can a flow send readings to our own HTTP endpoint? And the other way round, can one of our services push data into a flow?

♥ 0

Traducido del English por IA ·

Una cosa más para el caso del viernes por la noche: añada una alarma de desconexión en la pasarela. Cuando la pasarela se desconecta, sus dispositivos hijos también se desconectan, así que una sola alarma le indica que toda la línea se ha quedado en silencio.

♥ 0

An N-channel on the high side needs its gate several volts above its source to turn on fully. From the same 24 V rail you can’t get the gate above 24 V, so the source can only rise to whatever the gate gets minus the threshold.

♥ 0
Viendo 15 entradas – de la 1 a la 15 (de un total de 36)