diff --git a/source/_components/switch.dlink.markdown b/source/_components/switch.dlink.markdown index 50da6cf4a7b..18eb457fef4 100644 --- a/source/_components/switch.dlink.markdown +++ b/source/_components/switch.dlink.markdown @@ -32,11 +32,29 @@ switch: password: YOUR_PASSWORD ``` -Configuration variables: - -- **host** (*Required*): The IP address of your D-Link plug, eg. http://192.168.1.32 -- **name** (*Optional*): The name to use when displaying this switch. -- **username** (*Required*): The username for your plug. Defaults to `admin`. -- **password** (*Required*): The password for your plug. Default password is the `PIN` included on the configuration card. -- **use_legacy_protocol** (*Optional*): Enable limited support for legacy firmware protocols (Tested with v1.24). - +{% configuration %} +host: + description: "The IP address of your D-Link plug, e.g., http://192.168.1.32" + required: true + type: string +name: + description: The name to use when displaying this switch. + required: false + default: D-link Smart Plug W215 + type: string +username: + description: The username for your plug. + required: true + default: admin + type: string +password: + description: The password for your plug. + required: true + default: The default password is the `PIN` included on the configuration card. + type: string +use_legacy_protocol: + description: Enable limited support for legacy firmware protocols (Tested with v1.24). + required: false + default: false + type: boolean +{% endconfiguration %}