Good morning, fellow Home Assistant. I am new to this system and little by little I am learning new things thanks to the documentation. I have searched for this question, but I have not been able to find it.
I have created a switch to control the light and a fan through the Tasmotized Sonoff Bridge, so far everything perfect.
The question would be, is it possible to add an input_select in switch details?
I would like to configure it to make it simpler, since the use of that input would be occasionally.
Here my configuration:
switch:
- platform: mqtt
name: "Luz Dormitorio"
icon: hass:lightbulb
state_topic: "cmnd/rf_sonoff/light/status"
command_topic: "cmnd/rf_sonoff/backlog"
payload_on: "rfraw XXXXXXXXXXXXXXXXXX; rfraw 0"
payload_off: "rfraw XXXXXXXXXXXXXXXXXX; rfraw 0"
state_on: "ON"
state_off: "OFF"
input_select:
brillo_dormitorio:
name: "Brillo Luz Dormitorio"
icon: hass:lightbulb-on
options:
- "Intensidad 1"
- "Intensidad 2"
- "Intensidad 3"
- "Intensidad 4"
- "Intensidad 5"
- "Intensidad 6"
- "Intensidad 7"
- "Intensidad 8"
With an automation, when selecting the option, send the corresponding command