Closed fluppie closed 6 years ago
Okay, detecting a switch/relay seems to work, only it doesn't accept the sensors. I used an older Tasmota version to check if it was the newer 6.xxxx version. Log file from the Tasmota module:
00:00:00 Project sonoff bme680_1_5140 (Topic bme680_1_5140, Fallback DVES_1BAB51, GroupTopic sonoffs) Version 5.14.0-2_4_1
00:00:00 WIF: Connecting to AP1 WiFi2016AP1 in mode 11N as bme680_1_5140-2897...
00:00:05 WIF: Connected
00:00:05 DNS: Initialized
00:00:05 HTP: Web server active on bme680_1_5140-2897.local with IP address 192.168.1.58
00:00:06 MQT: Attempting connection...
00:00:06 MQT: Connected
00:00:06 MQT: tele/bme680_1_5140/LWT = Online (retained)
00:00:06 MQT: cmnd/bme680_1_5140/POWER =
00:00:06 MQT: tele/bme680_1_5140/INFO1 = {"Module":"Generic","Version":"5.14.0","FallbackTopic":"DVES_1BAB51","GroupTopic":"sonoffs"}
00:00:06 MQT: tele/bme680_1_5140/INFO2 = {"WebServerMode":"Admin","Hostname":"bme680_1_5140-2897","IPAddress":"192.168.1.58"}
00:00:06 MQT: tele/bme680_1_5140/INFO3 = {"RestartReason":"External System"}
00:00:06 MQT: homeassistant/light/bme680_1_5140_1/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_1/config = {"name":"bme680_1_5140","command_topic":"cmnd/bme680_1_5140/POWER","state_topic":"stat/bme680_1_5140/RESULT","value_template":"{{value_json.POWER}}","payload_off":"OFF","payload_on":"ON","availability_topic":"tele/bme680_1_5140/LWT","payload_available":"Online","payload_not_available":"Offline"} (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_2/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_2/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_3/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_3/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_4/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_4/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_5/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_5/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_6/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_6/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_7/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_7/config = (retained)
00:00:06 MQT: homeassistant/light/bme680_1_5140_8/config = (retained)
00:00:06 MQT: homeassistant/switch/bme680_1_5140_8/config = (retained)
13:30:30 MQT: stat/bme680_1_5140/RESULT = {"POWER":"OFF"}
13:30:30 MQT: stat/bme680_1_5140/POWER = OFF
13:30:38 MQT: tele/bme680_1_5140/STATE = {"Time":"2018-08-12T13:30:38","Uptime":"0T00:00:15","Vcc":2.974,"POWER":"OFF","Wifi":{"AP":1,"SSId":"WiFi2016AP1","RSSI":82,"APMac":"78:8A:20:5A:41:76"}}
13:30:38 MQT: tele/bme680_1_5140/SENSOR = {"Time":"2018-08-12T13:30:38","AM2301":{"Temperature":20.2,"Humidity":1.0},"BME680":{"Temperature":25.8,"Humidity":43.9,"Pressure":1012.7,"Gas":0.00},"TempUnit":"C"}
Check tasmota command
SetOption30 | 1 / on | Enforce Home-Assistant discovery for light group only
Tasmota auto dicsovery support only switch/light components.
This seems to be a Tasmota issue and needs to be addressed there as MQTT discovery is working fine for other implementation.
Home Assistant release with the issue:
0.75.3
Last working Home Assistant release (if known):
0.72
Operating environment (Hass.io/Docker/Windows/etc.):
hassbian release
Component/platform:
MQTT
Description of problem:
Around version 0.72 I would use the Sonoff Tasmota firmware 6.0.0a for adding sensors/switches to Home Assistant using MQTT discovery. As I upgraded to the latest version, I cannot add new sensors to Home Assistant. I see parse errors in the log files. Did something change in the MQTT component between 0.72 and today?
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
Copy/paste of the log: