Hi,
my first question. Coming from medium sized ioBroker installation I just installed HA to get an impression.
I’m trying to install 2 Tasmota plugs (Gosund and Nous, both setup with MQTT) with latest Tasmota firmware.
Have installed MQTT, MQTT-Explorer and Tasmota, with MQTT explorer I get answers from the devices.
I can switch them on and off, i.e.
Tasmota recognizes the plugs and “installs” them. I can even position the devices and entities on a dashboard. But when I click on them, it says thery are “unavailable” (“nicht verfügbar” in German). S. screenshot.
Where could I look up what’s wrong?
Thank you
Hi,
I suspect you’ve already done the checks I’d usually reccomend, but just in case, here’s a basic check-list:
New installs of Tasmota should default to SetOption19 0
, and you’ve already implied the HASS Tasmota integration is installed and was probably working.
If you are confident with MQTT Explorer, there’s three parts to HA - the published Tasmota Discovery properties, the cmnd/
topic to change state, and the tele/
reply with the actual state.
- Greyed out entities suggest the Discovery retained topic was received (delete the retained topic
tasmota/discovery/uid
, and HA will change immediately to remove the entities). - Control HA → Tasmota suggests the
cmnd/
topic is getting through and is valid - No change of state in the HA GUI suggests something wrong with the
tele/
state being published back.
(Buggy custom MQTT code can show this as a “sticky switch” - it changes state, but jumps back without confirmation.)
I’d delete the retained discovery topic tasmota/discovery/uid/
(older kit would be HA discovery homeassistant/
), and HA will change immediately. Restart the device and watch what happens as discovery gets published to the broker again.
Do you have a “flat” IPv4 LAN? (i.e. no VLANs nor routing)
HA can sometimes break MQTT with IPv6, but has been getting better.
ISTR a recent MQTT entity change was reverted in a recent release, but my Tasmota and custom MQTT devices seemed to be OK.
(I’ve used openHAB and written custom MQTT devices so have a lot more links if you need to go deeper.)
If this helps, this post!
Hi James,
thank you very much for your detailed help!
Both plugs are working now! It’s a little embarrassing - but when stepping through all of your instructions I stumbled across the full topic in the MQTT settings of the plugs, both were missing the ending ‘/’:
/%prefix%/%topic%/
Thank you again!
Friedhelm