Skip to content

Update power sensor API docs: GetBatteryPercent and GetProperties (TypeScript) - #5585

Open
Shannon Bradshaw (shannonbradshaw) wants to merge 1 commit into
mainfrom
claude/update-power-sensor-battery-percent
Open

Shannon Bradshaw (shannonbradshaw) wants to merge 1 commit into
mainfrom
claude/update-power-sensor-battery-percent

Conversation

@shannonbradshaw

Copy link
Copy Markdown
Collaborator

Source changes

  • api#950: adds GetBatteryPercent and GetProperties (is_battery_percent_supported) to PowerSensorService
  • viam-typescript-sdk#1058: PowerSensorClient.getBatteryPercent and getProperties, released in v0.79.1 (git tag --contains 8536961 → v0.79.1) and live on ts.viam.dev
  • Docs gap: power-sensor-battery-percent

Documents: no ticket key found (none of api#950, rdk#6827 or viam-typescript-sdk#1058 names a ticket)

Docs changes

  • .github/workflows/sdk_protos_map.csv: add power_sensor rows for GetBatteryPercent and GetProperties, with only the TypeScript column filled.
  • static/include/components/apis/overrides/protos/power_sensor.GetBatteryPercent.md, power_sensor.GetProperties.md: new one-sentence proto descriptions, taken from the proto comments.
  • static/include/components/apis/generated/power_sensor.md, power_sensor-table.md: regenerated with update_sdk_methods.py "" power_sensor. The diff adds only the two new methods' TypeScript tabs and table rows; no other hunk changed.

The other SDKs are left out on purpose, because their implementations aren't in a published release yet:

  • Go: rdk#6827 (BatteryPercent, Properties) is not in RDK v1.17.0.
  • Python: viam-python-sdk#1311 (get_battery_percent, get_properties) is not in v0.85.2.
  • Flutter: viam-flutter-sdk#586 (batteryPercent, properties) is not in v0.24.0. flutter.viam.dev already shows them (the generator warned they are unused), but no release has them.

Their columns get filled when each ships.

How I found these

  • Backlog item api-2d31425-power-sensor-battery-percent-gap, whose gate (a published SDK release that implements the methods) cleared for TypeScript with v0.79.1 on 2026-11-23.
  • Checks: vale 3.12.0 on the changed files, frontmatter_rules.py, and make build-prod pass. Prettier and markdownlint don't cover static/.

Generated by daily docs change agent


Generated by Claude Code

…ence

viam-typescript-sdk#1058 (released in v0.79.1) adds PowerSensorClient
getBatteryPercent and getProperties for the PowerSensorService RPCs from
api#950. Fill the TypeScript column only: the Go (rdk#6827), Python
(viam-python-sdk#1311) and Flutter (viam-flutter-sdk#586) implementations
are not in a published release yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nja2XmSjwDPiySV93hN9Ho
@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 54c7135
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b0556c313b425e1b5381f7d
😎 Deploy Preview https://deploy-preview-5585--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 32 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants