# MQTT Setup and Configuration

**URL:** <https://community.openhab.org/t/mqtt-setup-and-configuration/109660>\
**Category:** Beginners\
**Created:** [December 7, 2020, 6:08am UTC](https://community.openhab.org/t/mqtt-setup-and-configuration/109660 "2020-12-07T06:08:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hafniumzinc](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Post date:** [December 7, 2020, 9:00am UTC](https://community.openhab.org/t/mqtt-setup-and-configuration/109660/8 "2020-12-07T09:00:04Z")

</div>

> [@Joerg\_Schreiner](#):
>
> E.g. Command should be something like “FietBulb01/cmnd/POWER” and payload should be “ON/OFF”. No need to enter these, as these are the default.

@Joerg_Schreiner has a point here. You changed your Tasmota `Topic` to _FietBulb01_. But the default command topic to turn it on or off is normally:

```auto
cmnd/FietBulb01/POWER

```

However, that will only work for you if you put your ` FullTopic` back to the default as shown above the field in the Tasmota MQTT Parameters page (`%prefix%/%topic%`). I would suggest you put that back to default so that most of the online guides you read make sense!

I tried to write a guide for setting up a simple Tasmota device. It’s based around a Sonoff Basic, but your bulb should work in exactly the same way. Like @rpwong I use configuration files instead of the UI:

> [@Control Tasmota flashed devices via MQTT](https://community.openhab.org/t/control-tasmota-flashed-devices-via-mqtt/104099):
>
> Overview This tutorial follows the setup and installation of a Sonoff Basic. However, many Tasmota flashed devices have an on/off capability, so this tutorial is relevant for other Tasmota flashed devices. A Sonoff Basic is a simple mains relay, which can be flashed with Tasmota firmware and controlled from openHAB using the the MQTT binding. You can splice the Basic into anything mains powered (check the power rating first!) that you wish to switch on or off. Ingredients You will need: 1. So…

But as @denominator says: forget about openHAB for now and use MQTT Explorer to make sure all the MQTT stuff is working. Once that’s done, come back to configure it in openHAB.

> [@T.Hutchins](#):
>
> Would POWER also be used for a light bulb? This is where all the documentation I have read and watched eludes me

This page is your Bible: [Commands - Tasmota](https://tasmota.github.io/docs/Commands/)

Use the Tasmota console to try out commands (just type `POWER ON` and `POWER OFF` into the Tasmota console and watch what happens), then use MQTT Explorer to do the same over MQTT, then move to openHAB.

---

_[View the full topic](https://community.openhab.org/t/mqtt-setup-and-configuration/109660)._
