Hi All, I am struggling to get my first sonoff basic with Tasmota 5.12 firmware up and running on my HASS.io
this is all new ground for me, I have read as much as I can but I am obviously missing something that I either just can’t see or don’t understand so any help will be much appreciated.
I can see the virtual switch on my homepage.
If I operate the virtual switch a pop up tells me it has been turned on, it stays on for a few seconds and then reverts back to off, however the sonoff switch does not get physically switched on
mqtt:
broker: 192.168.0.107
port: 1883
username: BRYN-W
password: (removed)
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: http://192.168.0.107:3218
# Enables configuration UI
config:
switch:
platform: mqtt
name: "Outside Light"
state_topic: "stat/sonoff/POWER"
command_topic: "cmnd/sonoff/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
This is my MQTT parameters set on the sonoff basic switch (IP 192.168.0.106):
Screenshot of the console screen of my Sonoff (basic)
This is my mosquito config:
{
"plain": true,
"ssl": false,
"anonymous": true,
"logins": [
{
"username": "BRYN-W",
"password": "(pass removed)"
}
],
"customize": {
"active": false,
"folder": "mosquitto"
},
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
}
I can toggle the switch from the switch webpage, so no issues with wifi etc. I think my issue is something to do with my MQTT but I cannot see what the problem might be.
Can anyone help me out here?
Thanks guys.