Configure Command line switch in HASS.IO

Hello,

I’m quite new to HomeAssistant and aim to control my SmartWares/Homewizard Devices with HA.
This for I developed a bash script that interacts with the “bridge” in Order to turn on/off my switches.

I can run this script on hass.io (commandline, ssh) and it turns on/off my switches. The script is stored in /home.

My Problem is one step before: when I try to create a switch in HA in configuration.yaml it doesn’t show up on the UI. My config for the switches looks like this:
#switches
switch:
- platform: command_line
switches:
fernseher:
command_on: bash /home/./send_homewizard.sh Lite Fernseher On
command_off: bash /home/./send_homewizard.sh Lite Fernseher Off
friendly_name: TV

The config check doesn’t give any errors but the device doesn’t appear on the HA UI.
Is there anything I missed out?

Thanks in advance!

Indentation and syntax is very important. So, for us to better help you, please format your code per the instructions in the blue box at the top of the page:

Thanks for your response!
I’m sorry, but I can’t format my code as code. I already did this when I first posted this thread, but it just indents the lines. No idea why, I don’t block any JS.

However, After I reinstalled hass.io, the Switches appeared directly, I don’t know what was wrong.