CLI reports success when setting power values that are overridden by device role

Offen
#878 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli

Rechercherichtung

Start from the code path that handles --set and writes the power configuration, then reproduce the steps in the issue with a ROUTER device or a mocked role. The payload does not name the file. Done means the CLI either warns that the device role will override the value or refuses the write with an explanatory error. The issue leaves the choice between those two open, so confirm the direction with a maintainer first.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Description

When using --set to change power configuration values on a device with the ROUTER role, the CLI reports success but the values are silently ignored/overridden by role-enforced defaults.

Steps to Reproduce

  1. Set device to ROUTER role: meshtastic --set device.role ROUTER
  2. Attempt to disable light sleep: meshtastic --set power.ls_secs 0
  3. CLI reports: "Set power.ls_secs to 0" and "Writing power configuration to device"
  4. Verify the value: meshtastic --get power.ls_secs
  5. Returns: power.ls_secs: 86400 (not 0)

Expected Behavior

The CLI should either:

  • Warn that this value will be overridden by the current device role, or
  • Refuse to write the value with an explanatory error

Actual Behavior

CLI reports success, device reboots, but the value reverts to the role-enforced default (86400 for ROUTER). This is confusing and leads to wasted debugging time.

Environment

  • meshtastic CLI version: 2.7.5
  • Firmware: 2.7.16
  • Hardware: ESP32
  • OS: macOS

Additional Context

The ROUTER role forcing is_power_saving is documented behavior, but users have no way to know from the CLI that their settings are being ignored. Related firmware issue: https://github.com/meshtastic/firmware/issues/2203

Vorherrschende Sprache
Python
Sterne
855
Forks
355
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
12

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus meshtastic/python

Alle Issues in meshtastic/python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.