Request: Add 1.12 Power Management features

Open
#125 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 11 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
embedded-iot

Research direction

The issue names four repeater commands: get pwrmgt.support, get pwrmgt.source, get pwrmgt.bootreason and get pwrmgt.bootmv. It names no files, so start by finding where the integration already queries the device with get commands and exposes its stats as entities. Done means each of the four values appears as an entity with a sensible type, and a unit test or a manual check against a device or fixture confirms the values. The issue does not say which entity types to use, so ask the maintainer before choosing.

Written by the indexing model from the issue text.

Description

enhancement

1.12 Repeater firmware dropped a bunch of new stats.
Is it feasible and possible to get these into HA?

Command Description
get pwrmgt.support Returns "supported" or "unsupported"
get pwrmgt.source Returns current power source - "battery" or "external" (5V/USB power)
get pwrmgt.bootreason Returns reset and shutdown reason strings
get pwrmgt.bootmv Returns boot voltage in millivolts
Dominant language
Python
Stars
269
Forks
58
Avg merge
10d 17h
Merged PRs (30d)
12

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from meshcore-dev/meshcore-ha

All issues in meshcore-dev/meshcore-ha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.