meshtastic power
meshtastic_powerCalculates Meshtastic node power consumption and battery runtime using device-specific power profiles and firmware role-based duty cycling. Models sleep, RX, and TX current draw for Heltec V3, RAK WisBlock, T-Beam, T-Beam Supreme, and Station G2 with GPS, BLE, and display peripheral toggles. Role selection (client, router, repeater, client_muted) controls the duty cycle model: routers stay in RX mode continuously while clients sleep between events. Returns average current, runtime in hours/days, daily Wh consumption, and time distribution across TX/RX/sleep states. Feed daily_wh to solar_sizing for off-grid planning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Meshtastic node role. client: sleeps between events. router: always listening. repeater: always listening, no display/BLE. client_muted: aggressive sleep. | client |
| device | No | Meshtastic hardware device. Selects power consumption profile for sleep, RX, TX, GPS, and BLE. | heltec_v3 |
| battery_mah | No | Battery capacity in milliamp-hours. Common: 1100 (18650 min), 3000 (typical), 6000 (large). | |
| gps_enabled | No | Whether GPS is enabled. Significantly increases power draw on devices with built-in GPS. | |
| channel_preset | No | Meshtastic channel preset. Affects TX airtime per message and thus power consumption. | long_fast |
| battery_voltage | No | Nominal battery voltage. 3.7V for single-cell LiPo/Li-ion, 7.4V for 2S packs. | |
| bluetooth_enabled | No | Whether Bluetooth is enabled for phone connection. | |
| messages_per_hour | No | Expected messages sent and received per hour. Includes both TX and RX message events. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daily_wh | Yes | Estimated daily energy consumption in watt-hours. | |
| rx_time_pct | Yes | Percentage of time spent in receive mode (radio listening). | |
| tx_time_pct | Yes | Percentage of time spent transmitting. | |
| runtime_days | Yes | Estimated battery runtime in days. | |
| runtime_hours | Yes | Estimated battery runtime in hours. | |
| avg_current_ma | Yes | Estimated average current draw in milliamps. | |
| sleep_time_pct | Yes | Percentage of time spent in sleep/low-power mode. |