MQTT non-autodiscovery lights/switches as devices?

It doesn’t matter if it supports auto-discovered or not. Instead of configuring lights in YAML (what you are currently doing) you can configure them via MQTT Discovery with a script. That’s how I have configured several dozen entities consisting of lights, sensors, binary_sensors, climate, lock, etc. I provided an example here:

1 Like