Report helpers for every tier-1 property, asset ids, AlexaCapability::isValid()

AlexaStatusMessage gets a helper for color, percentage, power level, range, mode, lock state, contact,
motion, humidity and the thermostat (target, lower and upper setpoint, mode), and addProperty(row, place,
value) for a property without one. Each is a function of its own on one shared builder; a value outside of
the range of its property is reported as the nearest of the range with an error.
AlexaResources.h holds the 103 asset ids of resources-and-assets.html (AlexaAssets, AlexaUnits); AlexaState
has the seven states that were missing; addStateMapping() takes a number of any type.
A setter that refuses its argument makes isValid() false, and the capability is left out of discovery with
an error instead of being announced without what was refused.
basicLight: static RAM 30,520 B (was 30,540), flash 333,389 B (was 334,981); 130 host tests (was 112).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
David 2026-09-28 21:00:01 +00:00
parent 3215457f91
commit 77156ffbe5
10 changed files with 995 additions and 100 deletions

View file

@ -14,6 +14,10 @@ AlexaInterfaceType KEYWORD1
AlexaInterfaces KEYWORD1
AlexaInterfaceDesc KEYWORD1
AlexaStatusMessage KEYWORD1
AlexaAssets KEYWORD1
AlexaUnits KEYWORD1
AlexaLockState KEYWORD1
AlexaThermostatMode KEYWORD1
ActionMapping KEYWORD1
AlexaActions KEYWORD1
AlexaActionsUtils KEYWORD1
@ -80,6 +84,22 @@ AddTemperatureSensorProp KEYWORD2
AddBrightnessControllerProp KEYWORD2
AddColorTemperatureControllerProp KEYWORD2
AddToggleControllerProp KEYWORD2
addColorControllerProp KEYWORD2
addPowerLevelControllerProp KEYWORD2
addPercentageControllerProp KEYWORD2
addRangeControllerProp KEYWORD2
addModeControllerProp KEYWORD2
addLockControllerProp KEYWORD2
addContactSensorProp KEYWORD2
addMotionSensorProp KEYWORD2
addHumiditySensorProp KEYWORD2
addThermostatSetpointProp KEYWORD2
addThermostatLowerSetpointProp KEYWORD2
addThermostatUpperSetpointProp KEYWORD2
addThermostatDualSetpointProp KEYWORD2
addThermostatModeProp KEYWORD2
addProperty KEYWORD2
isValid KEYWORD2
AddContextProp KEYWORD2
send KEYWORD2
printMemoryInfo KEYWORD2