Skip to content

Instantly share code, notes, and snippets.

@hardillb
Created October 31, 2015 10:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hardillb/ec88e86597d65584b1ba to your computer and use it in GitHub Desktop.
Save hardillb/ec88e86597d65584b1ba to your computer and use it in GitHub Desktop.
A list of available capabilities and a description of their fields
{ CapabilityProfileList:
{ CapabilityProfile:
[ { CapabilityID: [ '10006' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'OnOff' ],
CapabilityAttrName: [ 'OnOff' ],
CapabilityDataType: [ 'IntegerSet' ],
CapabilityNameValue: [ '{Off:0,On:1,Toggle:2}' ],
CapabilityControl: [ 'RW' ] },
{ CapabilityID: [ '10008' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'LevelControl' ],
CapabilityAttrName: [ 'Level,TransitionTime' ],
CapabilityDataType: [ 'Integer,Integer' ],
CapabilityNameValue: [ '{0~255},{0~65535}' ],
CapabilityControl: [ 'RW' ] },
{ CapabilityID: [ '30008' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'SleepFader' ],
CapabilityAttrName: [ 'TransitionTime,ReferenceTime' ],
CapabilityDataType: [ 'IntegerSet,Integer' ],
CapabilityNameValue: [ '{0~65535},{0~4294967295}' ],
CapabilityControl: [ 'RW' ] },
{ CapabilityID: [ '30009' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'LevelControl.Move' ],
CapabilityAttrName: [ 'Direction,Rates' ],
CapabilityDataType: [ 'IntegerSet,Integer' ],
CapabilityNameValue: [ '{Up:0,Down:1},{0~255}' ],
CapabilityControl: [ 'W' ] },
{ CapabilityID: [ '3000A' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'LevelControl.Stop' ],
CapabilityAttrName: [ 'None' ],
CapabilityDataType: [ 'None' ],
CapabilityNameValue: [ 'None' ],
CapabilityControl: [ 'W' ] },
{ CapabilityID: [ '10300' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'ColorControl' ],
CapabilityAttrName: [ 'ColorX,ColorY,TransitionTime' ],
CapabilityDataType: [ 'Integer,Integer,Integer' ],
CapabilityNameValue: [ '{0~65535},{0~65535},{0~65535}' ],
CapabilityControl: [ 'RW' ] },
{ CapabilityID: [ '30301' ],
CapabilitySpec: [ 'ZigBee' ],
CapabilityProfileName: [ 'ColorTemperature' ],
CapabilityAttrName: [ 'Color,TransitionTime' ],
CapabilityDataType: [ 'Integer,Integer' ],
CapabilityNameValue: [ '{0~65279},{0~65535}' ],
CapabilityControl: [ 'RW' ] } ] } }
@hardillb
Copy link
Author

hardillb commented Mar 12, 2017

var getCapabilitiesProfileList = {
	method: 'POST',
	path: '/upnp/control/bridge1',
	action: '"urn:Belkin:service:bridge:1#GetCapabilityProfileList"',
	body: [
		postbodyheader,
		'<u:GetCapabilityProfileList xmlns:u="urn:Belkin:service:bridge:1">',
		'<CapabilityIDs>10006,10008,10300,30008,30009,3000A,30301</CapabilityIDs>',
		'</u:GetCapabilityProfileList>',
		postbodyfooter
	].join('\n')
}

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