MQTT device integration

I am new to Homeassistant and its functions so I know that altho slightly technically minded, I have been out of the I.T. loop for many years. I have installed MQTT on home asstant. The HA IP address is 192.168.2.25. My configuration.yaml has the following:

mqtt:
  broker: 192.168.2.25
  username: xavier
  password: M0nkey62
  discovery: true

I have a spotlight which I flashed with tasmota.bin. The tasmota console shows the following:

14:51:33 MQT: stat/LS2/STATUS10 = {"StatusSNS":{"Time":"2020-07-02T14:51:33"}}

14:51:33 MQT: stat/LS2/STATUS11 = {"StatusSTS":{"Time":"2020-07-02T14:51:33","Uptime":"0T00:05:55","UptimeSec":355,"Heap":28,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Wifi":{"AP":1,"SSId":"EE-4ca94m","BSSId":"1C:B7:2C:F2:36:60","Channel":9,"RSSI":76,"Signal":-62,"LinkCount":1,"Downtime":"0T00:00:06"}}}

14:51:41 MQT: stat/LS2/STATUS = {"Status":{"Module":18,"FriendlyName":["LS2"],"Topic":"LS2","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}

14:51:41 MQT: stat/LS2/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://thehackbox.org/tasmota/release/tasmota.bin","RestartReason":"External System","Uptime":"0T00:06:03","StartupUTC":"2020-07-02T13:45:38","Sleep":50,"CfgHolder":4617,"BootCount":23,"SaveCount":47,"SaveAddress":"F5000"}}

14:51:41 MQT: stat/LS2/STATUS2 = {"StatusFWR":{"Version":"8.1.0.2(tasmota)","BuildDateTime":"2019-12-30T19:07:34","Boot":31,"Core":"2_6_1","SDK":"2.2.2-dev(38a443e)","Hardware":"ESP8266EX","CR":"358/699"}}

14:51:41 MQT: stat/LS2/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["EE-4ca94m","xavier"],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C8000100060000005A00000000000000","00000000","00000000"]}}

14:51:41 MQT: stat/LS2/STATUS4 = {"StatusMEM":{"ProgramSize":452,"Free":548,"Heap":28,"ProgramFlashSize":1024,"FlashSize":1024,"FlashChipId":"144068","FlashMode":0,"Features":["00000809","0F400082","04048000","00000005","000000C0","00000080"],"Drivers":"1,2,3,4,9,10,12,16","Sensors":"1,2,3"}}

14:51:41 MQT: stat/LS2/STATUS5 = {"StatusNET":{"Hostname":"LS2","IPAddress":"192.168.2.91","Gateway":"192.168.2.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.2.1","Mac":"98:F4:AB:FC:3F:AD","Webserver":2,"WifiConfig":2,"WifiPower":17.0}}

The MQTT log shows this:
1593697548: New client connected from 192.168.2.91 as DVES_FC3FAD (p2, c1, k30, u'xavier').

It looks like MQTT is talking to the bulb and yet I cannot see it in any of the entities lists.

I have attached a few screen shots with the details:

What do I need to do next?

Did you enter

setoption19 1

in the tasmota console ?

Yes I did and nothing seemed to change. I presume I type it exactly as that?

Ok, now I did that and I thought I would just try it again by copy past of your message. Lo and behold, it has worked. Thanks so much.

Good. :+1: :+1: :+1:

If in the future you flash things with something other than Tasmota or ESPHome sucj as an ESP8266 programmed with Arduino (IOW, it doesn’t have a discovery option or built-in API) then you can configure those devices manually using yaml.

The MQTT device configs are listed here: https://www.home-assistant.io/integrations/#search/mqtt

If the device does not support auto-discovery , I create a discovery message myself. Much easier then configuring in yaml. No restart required.

1 Like

Thanks, I will liook at the page and try work things out there