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

オープン
#878 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
855
フォーク
355
平均マージ
3日 3時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

meshtastic/python のほかの issue

meshtastic/python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。