{{:server:control64.png?nolink|}} ====== FS20RemapButton ====== This module is a part of the [[:start|NetHomeServer]]. The FS20RemapButton is used to let FS20 buttons control events in the NetHomeServer. You may for example let an FS20 wall switch start your WEB-radio player program. The FS20RemapButton allows you to map all messages that can be sent from a button to specific commands. A command may for example be to call the //on//-method of a lamp or an external shell file. The syntax of the command is described [[commandportsyntax|here]]. The supported commands are: //set, call, event, exec//. Note that depending on configuration ov the FS20-buttons not all commands may be generated. If a single button is configured, then only "Toggle" (short press on the button) and "DimLoop" (press and hold button) are generated. If a two button configuration is used on the FS20-device, then "On", "Off", "Dim" and "Bright" can be sent from the buttons. ===== Attributes ===== * **HouseCode** //[get] [set]// House code of the FS20Button * **DeviceCode** //[get] [set]// Device code of the FS20Button * **FHZ1000PcPort** //[get] [set]// Port to use to recive commands * **OnCommand** //[get] [set]// Command to execute when "On" is received from the device * **OffCommand** //[get] [set]// Command to execute when "Off" is received from the device * **BrightCommand** //[get] [set]// Command to execute when "Bright" is received from the device * **DimCommand** //[get] [set]// Command to execute when "Dim" is received from the device * **ToggleCommand** //[get] [set]// Command to execute when "Toggle" is received from the device * **DimLoopCommand** //[get] [set]// Command to execute when "DimLoop" is received from the device ===== Actions ===== * **on** Directly trigger the "On" command * **off** Directly trigger the "Off" command * **bright** Directly trigger the "Bright" command * **dim** Directly trigger the "Dim" command * **toggle** Directly trigger the "Toggle" command * **dimLoop** Directly trigger the "DimLoop" command ==== See also ==== [[:start|NetHomeServer]], [[commandportsyntax]], [[FS20]], [[FHZ1000PcPort]]