What’s a good way to show a slider that also has on/off toogle in an app?

I am working on an app where a user can dim the lights in a room. However, it is also possible to turn them on and off.

I have three different concepts:

  1. just one slider where the left is off too. However, this wouldn't be correct, as left really is "dim 0%" and not "turned off"
  2. toggle and slider. Not very good, as these are now two separate actions
  3. my suggestion for combining toggle and slider

slider toggle

Any better ideas of how to illustrate this concept?

ps. Lights are shown in a list, so multiple devices are shown at the same time. Room view