Partial Switch to Light

I have a number of Sonoff T0 US 3 Channel switches installed across the hours that is running Tasmota 8.3.1.

A few of these channels are not actually connected to any lights (nothing linked on the relay) and I use these switches to control other items for example the bathroom fan, another one switches the existing kitchen light (second switch setup) and even use one to open and close my gate.

What I am stuggling with is to classify only some of the channels in a 3 channel T0 as lights. For the switches that I only use for lights, I used the tasmota SetOptions30 1 command but this seems to be an all or nothing command.

From the following image, how to I classify the lights as lights but leave the switches as is. (then they are coming from the same Sonoff T0)

One more thing that I found if that if I leave the Device Name field populated, homeassistant will append the device name to the switch name and you’ll end up with “Sun Room Light Kitchen Switch 2” which is a bit of a mouth full for Alexa to handle. Is there a way of populating the Device Name field but have homeassistant ignore it?

Any advice would be greatly appreciated.

You can convert a switch to a light if you want:


In HA you can rename every entity in multiple ways. Look at:

Hi Pippyn,

Thank you for the quick reply. I am not sure I fully understand as I am not using the configuration.yaml file for this currently. Instead the devices are automatically being added to home assistant via the Mosquitto MQTT broker addon (Added via Supervisor) and by configuring the Tasmota to use MQTT.

Do you know if there is a way within the homeassistant interface to change the switch to a light domain? Perhaps via the Configuration > Customizations section?

I tried changing it via the settings “cog” but it does not look like the domain can change from this section.

Cog

the default mqqt discovery in tasmota is switch to force as a light just execute this in the tasmota console
SetOption30 1

1 Like

Hey Demon,
I’m new to HA so can’t PM yet but wanted to get your feedback on the switches now that you’ve had them for awhile.
I’m planning to replace 90% of my light switches, bathroom fans, ceiling fans with these types of switches.
Anything you don’t like about them?
Are you just using them for On/Off or can you control things with through HA (dimming lights, timers, backlight on switch on/off?)

There are a ton of these branded switches in China now, including Zigbee ones instead of Wifi. I don’t see any “off the shelf” integrations that are just plug and play for these but it seems like sonoff is the most popular in HA. Any suggestions on easiest way for a beginner to get these integrated into HA with the functions available mentioned above? I see ESPHome, you did MQTT it looks like, Tasoma was another way I saw.
I’d also like to keep it local instead of needing them to be connected to the internet.
Any insight would be appreciated.
Thanks