Skip to content

Add sensor-config commands (guidance needed)#903

Open
oscgonfer wants to merge 2 commits intomeshtastic:masterfrom
fablabbcn:feat/add-sensor-config-commands
Open

Add sensor-config commands (guidance needed)#903
oscgonfer wants to merge 2 commits intomeshtastic:masterfrom
fablabbcn:feat/add-sensor-config-commands

Conversation

@oscgonfer
Copy link

@oscgonfer oscgonfer commented Feb 8, 2026

This is a pull request to add sensor configuration commands for the new sensors implemented in the Air Quality module and which available configs are in the admin.proto already: https://github.com/meshtastic/protobufs/blob/master/meshtastic/admin.proto#L644-L654

Support / guidance needed parts

  1. I have the feeling that I am doing something wrong while parsing the options, as I assume there must be some sort of better option than manually typing all of them... (see https://github.com/fablabbcn/meshtastic-python/blob/b54ac0e0f0aaee60c5a54069e47bbb6c7818447a/meshtastic/node.py#L980-L1021)

  2. Reaching local node works, but remote nodes doesn't:

An example of what I am doing to test this is:

meshtastic --sensor-config scd4x_config.factory_reset true --host 192.168.1.136

Which successfully reaches the node and gets processed via admin command when the target node is directly on that IP address. That node also has MQTT enabled, which also gives me some info:

However, when targeting another node on that mesh:

meshtastic --sensor-config scd4x_config.set_asc true --host 192.168.1.133 --dest \!ae608d98

I don't manage to make these admin commands to reach the dest, getting the following the MQTT feedback:

decoded {
  portnum: ADMIN_APP
  payload: "sensor_config {   scd4x_config {     set_asc: true   } }"
  want_response: true
}
---
decode_mp
from: 2925563288
to: 3665040172
decoded {
  portnum: ROUTING_APP
  payload: "error_reason: NO_CHANNEL"
  request_id: 4008839238
  bitfield: 1
}

@oscgonfer oscgonfer marked this pull request as draft February 8, 2026 17:18
@oscgonfer oscgonfer marked this pull request as ready for review February 11, 2026 19:30
@oscgonfer oscgonfer changed the title Add sensor-config commands [guidance needed) Add sensor-config commands (guidance needed) Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant