Not able to see in the main page sonoff light tasmota firmware

HI All,
can you help me? I’m not able to see in the main page the light.

mqtt

mqtt:
broker: core-mosquitto
username: username insert into sonoff configuration
password: password insert into sonoff configuration

light:

  • platform: mqtt
    name: “ingresso”
    command_topic: “cmnd/sonoff-ingresso/power”
    state_topic: “stat/sonoff-ingresso/POWER”
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”
    retain: true

did you add the light to a card? Which home assistant version? Are you using lovelace? If you go to dev-tools and click on <> can you type in switch.sonoff and do you see it there?

That is not going to work!!

What’s the correct configuration? Following the steps:

  • Installed Mosquitto broker
  • filled the configuration.yaml with:

mqtt:
broker: core-mosquitto
username: username
password: password

  • Sonoff configuration panel >> configuration MQTT

  • IP = Raspberry’s IP (fixed IP)

  • username = username_1

  • password = password_1

  • SAVE

  • filled the configuration.yaml with (below the previous insert):
    light:

    • platform: mqtt
      name: “NomeAPiacere”
      command-topic: “cmd/SonoffTopic/power”
      state-topic: “stat/SonoffTopic/POWER”
      qos: 1
      payload_on: “ON”
      payload_off: “OFF”
      retain: true

Final result of configuration.yaml is:

mqtt:
broker: core-mosquitto
username: username
password: password

light:

  • platform: mqtt
    name: “NomeAPiacere”
    command-topic: “cmd/SonoffTopic/power”
    state-topic: “stat/SonoffTopic/POWER”
    qos: 1
    payload_on: “ON”
    payload_off: “OFF”
    retain: true
  • SAVE file and restart

Not able to see in Home Assistant’s main page.

I’d like to add to a card. This is my target :slight_smile:

Hard to know when you don’t follow the instructions on how to post your code. Refer to the top of every page in the forum.

image

You really are better to use discovery and have it just work.

i didn’t get

What does that mean?

I didn’t understand

Follow the instructions on the tasmota wiki.