powersource

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package powersource implements the Matter Power Source cluster (0x002F).

Index

Constants

View Source
const (
	// ID is the Matter cluster ID for Power Source.
	ID uint32 = 0x002F
	// Name is the CLI-friendly cluster name.
	Name = "PowerSource"
	// DisplayName is the human-friendly cluster name.
	DisplayName = "Power Source"
)
View Source
const (
	FeatureWired        uint32 = 1 << 0 // WIRED
	FeatureBattery      uint32 = 1 << 1 // BAT
	FeatureRechargeable uint32 = 1 << 2 // RECHG
	FeatureReplaceable  uint32 = 1 << 3 // REPLC
)

Feature bits for the FeatureMap attribute.

View Source
const (
	AttrStatus                      uint32 = 0x0000
	AttrOrder                       uint32 = 0x0001
	AttrDescription                 uint32 = 0x0002
	AttrWiredAssessedInputVoltage   uint32 = 0x0003
	AttrWiredAssessedInputFrequency uint32 = 0x0004
	AttrWiredCurrentType            uint32 = 0x0005
	AttrWiredAssessedCurrent        uint32 = 0x0006
	AttrWiredNominalVoltage         uint32 = 0x0007
	AttrWiredMaximumCurrent         uint32 = 0x0008
	AttrWiredPresent                uint32 = 0x0009
	AttrActiveWiredFaults           uint32 = 0x000A
	AttrBatVoltage                  uint32 = 0x000B
	AttrBatPercentRemaining         uint32 = 0x000C
	AttrBatTimeRemaining            uint32 = 0x000D
	AttrBatChargeLevel              uint32 = 0x000E
	AttrBatReplacementNeeded        uint32 = 0x000F
	AttrBatReplaceability           uint32 = 0x0010
	AttrBatPresent                  uint32 = 0x0011
	AttrActiveBatFaults             uint32 = 0x0012
	AttrBatReplacementDescription   uint32 = 0x0013
	AttrBatCommonDesignation        uint32 = 0x0014
	AttrBatANSIDesignation          uint32 = 0x0015
	AttrBatIECDesignation           uint32 = 0x0016
	AttrBatApprovedChemistry        uint32 = 0x0017
	AttrBatCapacity                 uint32 = 0x0018
	AttrBatQuantity                 uint32 = 0x0019
	AttrBatChargeState              uint32 = 0x001A
	AttrBatTimeToFullCharge         uint32 = 0x001B
	AttrBatFunctionalWhileCharging  uint32 = 0x001C
	AttrBatChargingCurrent          uint32 = 0x001D
	AttrActiveBatChargeFaults       uint32 = 0x001E
	AttrEndpointList                uint32 = 0x001F
)

Attribute IDs.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL