name=Green Power Server
description=A plugin implementing the server-side functionality of the Green Power cluster.
category=Green Power

qualityString=Alpha release
quality=development

#introducedIn=gp-0.8-14-0563-8

includedByDefault=true

sourceFiles=green-power-server.c,green-power-server-cli.c,green-power-security.c
sourceFilesHost=green-power-crypto.c

dependsOnClusterServer=Green Power
requiredApis=gp,gp-util,green-power-common,aes-cmac
api.aes-cmac.condition=conf.architectureMatches("unix,simulation-ezsp")

implementedCallbacks=emberAfPluginGreenPowerServerInitCallback,emberAfGreenPowerClusterGpNotificationCallback,emberAfGreenPowerClusterGpCommissioningNotificationCallback,emberAfGreenPowerClusterGpSinkCommissioningModeCallback

# List of options
options=hiddenProxyZclMessageSrcEndpoint, zclMessageDstEndpoint, customizedGpdTranslationTableSize, userHasDefaultTranslationTable, userHasGenericSwitchTranslationTable, multiSensorCommissioningTimeoutInSec, multiSensorCommissioningBufferSize, genericSwitchCommissioningTimeoutInSec, translationTableSize

hiddenProxyZclMessageSrcEndpoint.name=Hidden ZCL Message Proxy Endpoint
hiddenProxyZclMessageSrcEndpoint.description=This is a local endpoint is used to send/receive 
hiddenProxyZclMessageSrcEndpoint.type=NUMBER:1,255
hiddenProxyZclMessageSrcEndpoint.default=2

zclMessageDstEndpoint.name=ZCL Message Default Destination Endpoint
zclMessageDstEndpoint.description=This is the default destination endpoint for all translated ZCL messages from GPDF commands.
zclMessageDstEndpoint.type=NUMBER:1,255
zclMessageDstEndpoint.default=1

translationTableSize.name=Translation Table Size
translationTableSize.description=The user provided translation table size will override the default behavior.
translationTableSize.type=NUMBER:1,255
translationTableSize.default=30

customizedGpdTranslationTableSize.name=Customized Gpd Translation Table Size
customizedGpdTranslationTableSize.description=User customized translation that will override the default behavior.
customizedGpdTranslationTableSize.type=NUMBER:1,255
customizedGpdTranslationTableSize.default=1

userHasDefaultTranslationTable.name=User has the default translation table emberGpDefaultTranslationTable.
userHasDefaultTranslationTable.description=The user provided table will be used for the gpd command translation. The table is of type EmberAfGreenPowerServerGpdSubTranslationTableEntry.
userHasDefaultTranslationTable.type=BOOLEAN
userHasDefaultTranslationTable.default=FALSE

userHasGenericSwitchTranslationTable.name=User has the default configuration table emberGpSwitchTranslationTable.
userHasGenericSwitchTranslationTable.description=The user provided table will be used for the gpd command translation. The table is of type EmberAfGreenPowerServerDefautGenericSwTranslation.
userHasGenericSwitchTranslationTable.type=BOOLEAN
userHasGenericSwitchTranslationTable.default=FALSE

multiSensorCommissioningTimeoutInSec.name=Multi Sensor Commissioning Timeout in seconds
multiSensorCommissioningTimeoutInSec.description=Timeout to close the multi-sensor commissioning.
multiSensorCommissioningTimeoutInSec.type=NUMBER:1,255
multiSensorCommissioningTimeoutInSec.default=20

multiSensorCommissioningBufferSize.name=Multi Sensor Commissioning Buffer Size
multiSensorCommissioningBufferSize.description=Multi sensor commissioning buffer size to hold a complete one application description buffer.
multiSensorCommissioningBufferSize.type=NUMBER:1,255
multiSensorCommissioningBufferSize.default=1

genericSwitchCommissioningTimeoutInSec.name=Generic Switch Commissioning Timeout in seconds
genericSwitchCommissioningTimeoutInSec.description=Timeout to close the generic switch commissioning.
genericSwitchCommissioningTimeoutInSec.type=NUMBER:1,255
genericSwitchCommissioningTimeoutInSec.default=60

events=genericSwitchCommissioningTimeout,multiSensorCommissioningTimeout

setup(bookkeeping) {
  retrieveAttributeAndCraftResponse=emAfPluginGreenPowerServerRetrieveAttributeAndCraftResponse
}
setup(token) {
  files = green-power-server-tokens.h
}
