Hi, I need to import sensor data from a remote sensor via mqtt and toggle a relay. The Setup already works, only thing is, I can not change how the switch looks, I want to look it like autodiscovered switches with the slider, but instead it has 2 icons to click on, see in screenshot.
I already tried a lot in the (so named) mqtt.yaml. the current setup is:
Yes! Thanks for pointing me into the right direction. The problem was if the state_topic could not be read, the switch works but shows those 2 icons only.