2.2.1: ajustes remotos de dispositivos, líneas base y trabajos de cambio masivo
Traducido del English por IA ·
2.2.1 trae los ajustes remotos de dispositivos.Un dispositivo que describe sus propios ajustes puede configurarse desde su pestaña Settings: sus ajustes en secciones, cada una con su estado, la fecha de la última aplicación y si el último cambio procede de aquí o del dispositivo. Usted cambia un valor, el dispositivo lo aplica y responde.Para muchos dispositivos hay líneas base y trabajos de cambio, en Bulk settings dentro del menú IoT. Una línea base es un conjunto con nombre de ajustes para sus modelos de dispositivo; solo se cambian los ajustes que incluya en ella, y nunca contiene una contraseña ni una clave. Un trabajo aplica una línea base a los dispositivos que elija (o a todos los de un perfil o de algunos modelos) en oleadas, y se detiene cuando una oleada resulta peor de lo que usted permite. Antes de iniciarse, Check muestra lo que hará el trabajo.Todo ello también está en la API: por dispositivo en /api/iot/devices/{deviceId}/settings, y líneas base y trabajos en /api/iot/device-settings/. Consulte Remote device settings y Firmware and device settings API.Un cambio menor en la misma versión: los perfiles de dispositivo integrados no pueden eliminarse y mantienen su transporte.
2.2.1 brings remote device settings.
A device that describes its own settings can be configured from its Settings tab: its settings in sections, each with its status, when it was last applied and whether the last change came from here or from the device. You change a value, the device applies it and reports back.
For many devices there are baselines and change jobs, under Bulk settings in the IoT menu. A baseline is a named set of settings for your device models; only the settings you include in it are changed, and it never holds a password or a key. A job applies a baseline to the devices you pick (or every device of a profile or of some models) in waves, and stops when a wave goes worse than you allow. Before it starts, Check shows what the job will do.
All of it is also in the API: per device under /api/iot/devices/{deviceId}/settings, baselines and jobs under /api/iot/device-settings/. See Remote device settings and Firmware and device settings API.
One smaller change in the same release: built-in device profiles can’t be deleted and keep their transport.
Traducido del English por IA ·
¿Entonces mis placas ESP32 tendrán una pestaña Settings? Están en MQTT con mi propio firmware.
So my ESP32 boards will get a Settings tab? They’re on MQTT with my own firmware.
Traducido del English por IA ·
No de esta manera, lo siento. Tienen que cumplirse dos cosas: el firmware anuncia sus secciones de ajustes al conectarse, y Hermetry tiene la descripción de ajustes (el manifiesto) para ese modelo y firmware. Los dispositivos con licencia tienen ambas.Para sus propias placas, declare las claves cfg.* en la pestaña Configuration keys del perfil (tipo, límites, valores permitidos) y deje que el firmware las lea como atributos compartidos. Obtendrá claves tipadas con límites, y la pestaña Attributes muestra cada una como In sync, Pending, Rejected o Drifted, sin escribir un manifiesto. Attributes describe el lado del dispositivo.
Not this way, sorry. Two things have to be true: the firmware announces its settings sections when it connects, and Hermetry has the settings description (the manifest) for that model and firmware. Licensed devices have both.
For your own boards, declare cfg.* keys on the profile’s Configuration keys tab (type, limits, allowed values) and let the firmware read them as shared attributes. You get typed keys with limits, and the Attributes tab shows each one as In sync, Pending, Rejected or Drifted, without writing a manifest. Attributes has the device side.
Traducido del English por IA ·
¿Qué ocurre cuando un trabajo se está ejecutando y uno de mis técnicos cambia manualmente el mismo dispositivo desde su página?
What happens when a job is running and one of my technicians changes the same device by hand from its page?
Traducido del English por IA ·
La persona tiene prioridad. Solo un escritor cambia la sección de un dispositivo a la vez, y un cambio de una persona en la página del dispositivo prevalece sobre el trabajo; «Cambiado por una persona» es uno de los estados que un dispositivo puede mostrar en el trabajo. Cuando dos trabajos quieren el mismo dispositivo, el ajuste del trabajo decide si espera o omite el dispositivo.
The person wins. Only one writer changes a device’s section at a time, and a person’s change on the device page wins over the job; «Changed by a person» is one of the states a device can show in the job. When two jobs want the same device, the job’s setting decides whether it waits or skips the device.
Traducido del English por IA ·
Los ajustes peligrosos son solo para el Owner. ¿Tengo razón en que una clave de API nunca puede escribir esos ajustes entonces?
Dangerous settings are Owner only. Am I right that an API key can never write those then?
Traducido del English por IA ·
Correcto. iot_device_settings.dangerous.write es solo para el Owner, así que una clave de API nunca lo tiene, y la solicitud también necesita «confirm»: true.
Right. iot_device_settings.dangerous.write is Owner only, so an API key never has it, and the request also needs «confirm»: true.
Traducido del English por IA ·
Ejecutamos nuestro primer trabajo la semana pasada, 38 routers, un valor en la sección de red. Definimos nuestros propios tamaños de oleada (5 y 25, y luego el resto). Los dos routers que llevaban más tiempo desconectados que el ajuste de espera quedaron excluidos, que era lo que queríamos. Escribir START me pareció raro la primera vez, pero entiendo por qué.
Ran our first job last week, 38 routers, one value in the network section. We set our own wave sizes (5 and 25, then the rest). The two routers that had been offline longer than the wait setting were left out, which is what we wanted. Typing START felt silly the first time but I get why.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

