Sonoff Tasmota latested setting for Light

Hi Guys
What’s the latest way to set up your sonoff basic as a LIGHT and not a switch. I thought new MQTT integration and not using Setoption30 1 in the console of Tasmota.
I would appreciate some direction as getting as a Light and not switch.
Thanks

What hardware do you have?

1 Like

Hi
Sonoff Basic 1 and flashed with latest release of tasmota and HA on Raspberry Pi

Normal way of working would be:

  1. setoption19 0 - HA disable autodetect
  2. setoption30 1 - set as light
  3. setoption19 1 - redetect hardware

If however you don’t want to use that, you have to use a yaml statement/file;

---
# My bathroom mirror lights are connected using a z-wave wall switch.
# This makes the device a "switch" withing Home Assistant and therefore
# it shows up as a switch in HomeKit and Google Assistant as well.
#
# This little light switch solves that issue.
#
# https://www.home-assistant.io/integrations/light.switch/
platform: switch
name: badkamer spiegel
entity_id: switch.badkamer_spiegel

this results in a entity light.badkamer_spiegel which can be used in Lovelace

1 Like

I was watching digiblurDIY lasted youtube videos and he was saying something about not using setOption30 1 anymore with the MQTT integration. Little confused with this now. Thanks

1 Like

With option 30 ON just does not work correctly with the newer MQTT in HA.

And if you have several entities {relays} that you want as different domain in same device it’s much easier to change in HA with the change helper.

So30 ON will make all relays in the device a light and will have conflicts.

The HA helper “change switch as” helper will not show up in entity options.


The only reason I care to have the HA change a entity to proper domain is because some things are just easier to automate and use custom dashboard cards such as “mushroom fan card”

if you you give proper domain to a device such as

Fan

Light

Cover

Especially if you have multiple button devices

One button can be a fan

Another can be a light.

Then voice commands to Google or Alexa are much more reliable

Saying “turn on coles fan”

If the word FAN is not in the friendly name.

You are also able to create a group

Fan group

Light group