diff --git a/source/_components/switch.anel_pwrctrl.markdown b/source/_components/switch.anel_pwrctrl.markdown index c753805477c..9b851f5dfbe 100644 --- a/source/_components/switch.anel_pwrctrl.markdown +++ b/source/_components/switch.anel_pwrctrl.markdown @@ -32,12 +32,27 @@ switch: password: PASSWORD ``` -Configuration variables: - -- **host** (*Optional*): The IP address or hostname of your PwrCtrl device. -- **port_recv** (*Required*): The port to receive data from the device. -- **port_send** (*Required*): The port to send data to the device. -- **username** (*Required*): The username for your device. -- **password** (*Required*): The password for your device. +{% configuration %} +host: + description: The IP address or hostname of your PwrCtrl device. + required: false + type: string +port_recv: + description: The port to receive data from the device. + required: true + type: integer +port_send: + description: The port to send data to the device. + required: true + type: integer +username: + description: The username for your device. + required: true + type: string +password: + description: The password for your device. + required: true + type: string +{% endconfiguration %}
If no **host** is given the platform will try to auto-discover all devices on the network, that are listening on the given **port_recv**.