I have a simple IR control RGB LED bulb.
I'm controlling it using ESPHome + IR LED, using raw IR commands.
I would like to add this to HA as a light, but I can't send brughtness up or down commands, since HA supports only the exact brigthness settings.
How could I add a template light, that has the following feature - HA action pairs? :
power on->switch.turn_on(to supply power to the bulb using a Sonoff basic via MQTT)power off->switch.turn_offbrightness up->mqtt.publishtrigger the ESP to send an IR commandbrightness down->mqtt.publishtrigger the ESP to send another IR command