Project Home‎ > ‎Documentation‎ > ‎Attributes‎ > ‎


Mapped is used to map one command to another. When the COMMAND is received it is mapped to the new MAPPED command and then issued to the device.


	Attribute.COMMAND:	Command.<State>,
	Attribute.MAPPED: 	Command.<State>,
       	Attribute.SOURCE:	<source device>,


We have an X10 remote control pad with ON/OFF buttons. When one of the ON buttons is pressed, “pp_sofa60” in this case, map the ON command to a LEVEL command and send that instead. In this case when we press the button the light will come on to a level of 60% instead of full brightness.

mapped={ Attribute.COMMAND: Command.ON, Attribute.MAPPED: (Command.LEVEL, 60), Attribute.SOURCE: pp_sofa60, },