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>
118 lines
2.9 KiB
Text
118 lines
2.9 KiB
Text
#######################################
|
|
# Syntax Coloring Map For Alex2ESP
|
|
#######################################
|
|
|
|
#######################################
|
|
# Datatypes (KEYWORD1)
|
|
#######################################
|
|
|
|
Alex2ESP KEYWORD1
|
|
Alex2ESPState KEYWORD1
|
|
AlexaDevice KEYWORD1
|
|
AlexaInterface KEYWORD1
|
|
AlexaInterfaceType KEYWORD1
|
|
AlexaInterfaces KEYWORD1
|
|
AlexaInterfaceDesc KEYWORD1
|
|
AlexaStatusMessage KEYWORD1
|
|
AlexaAssets KEYWORD1
|
|
AlexaUnits KEYWORD1
|
|
AlexaLockState KEYWORD1
|
|
AlexaThermostatMode KEYWORD1
|
|
ActionMapping KEYWORD1
|
|
AlexaActions KEYWORD1
|
|
AlexaActionsUtils KEYWORD1
|
|
FriendlyName KEYWORD1
|
|
DisplayCategory KEYWORD1
|
|
DisplayCategoryUtils KEYWORD1
|
|
EndpointHealth KEYWORD1
|
|
PowerController KEYWORD1
|
|
TemperatureSensorScale KEYWORD1
|
|
AlexaUtils KEYWORD1
|
|
AlexaLog KEYWORD1
|
|
AlexaLogLevel KEYWORD1
|
|
AlexaSendResult KEYWORD1
|
|
AlexaTransport KEYWORD1
|
|
|
|
#######################################
|
|
# Methods and Functions (KEYWORD2)
|
|
#######################################
|
|
|
|
begin KEYWORD2
|
|
loop KEYWORD2
|
|
getState KEYWORD2
|
|
getDisconnectReason KEYWORD2
|
|
getDevice KEYWORD2
|
|
setLogLevel KEYWORD2
|
|
setTimeSource KEYWORD2
|
|
publish KEYWORD2
|
|
timestamp KEYWORD2
|
|
setName KEYWORD2
|
|
getName KEYWORD2
|
|
getEndpointId KEYWORD2
|
|
hasEndpointId KEYWORD2
|
|
setDisplayCategory KEYWORD2
|
|
getDisplayCategory KEYWORD2
|
|
setDescription KEYWORD2
|
|
getDescription KEYWORD2
|
|
setManufacturerName KEYWORD2
|
|
getManufacturerName KEYWORD2
|
|
setManufacturer KEYWORD2
|
|
getManufacturer KEYWORD2
|
|
setModel KEYWORD2
|
|
getModel KEYWORD2
|
|
getSoftwareVersion KEYWORD2
|
|
getDeviceJSON KEYWORD2
|
|
addCapability KEYWORD2
|
|
registerEvent KEYWORD2
|
|
triggerEvent KEYWORD2
|
|
buildStatusMessage KEYWORD2
|
|
getType KEYWORD2
|
|
getTypeString KEYWORD2
|
|
getVersion KEYWORD2
|
|
getProps KEYWORD2
|
|
setInstance KEYWORD2
|
|
addFriendlyName KEYWORD2
|
|
isRetrievable KEYWORD2
|
|
isProactivelyReported KEYWORD2
|
|
setRetrievable KEYWORD2
|
|
setProactivelyReported KEYWORD2
|
|
addActionMapping KEYWORD2
|
|
getJSON KEYWORD2
|
|
AddHealthProp KEYWORD2
|
|
AddPowerControllerProp KEYWORD2
|
|
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
|
|
|
|
#######################################
|
|
# Constants (LITERAL1)
|
|
#######################################
|
|
|
|
ALEX2ESP_MAX_DIRECTIVE LITERAL1
|
|
ALEX2ESP_MAX_MESSAGE LITERAL1
|
|
ALEX2ESP_MAX_QUEUED_DIRECTIVES LITERAL1
|
|
ALEX2ESP_MAX_QUEUED_BYTES LITERAL1
|
|
ALEX2ESP_LOG_MAX LITERAL1
|
|
ALEX2ESP_VERSION LITERAL1
|
|
ALEXA_TIMESTAMP_SIZE LITERAL1
|
|
MAX_EVENTS LITERAL1
|