Unify 2 entities (switch + dimmer)

Hi everyobdy, I want to use a single entity to control 2 separate entities connected. I have a strip led connected to a switch and dimmer that are 2 devices. It’s possible to control these like a unique device ?

  • on / off → activate switch
  • dimmer → manipulate dimming
    → dimmer to 0 → switch off
    dimmer to 20 when off —> switch on + dimming

yes, a light template can do that. see this page:

you can specify what happens on turn_on/turn_off as well as setting dimmer settings. and on each of them you can choose what happens with each real entity.