Tasmota Integration Issue

Hi guys,

just tried to use the new Tasmota integration in HA. HA discovers my Tasmota Relay but I always get the following log error. Also there is no entity or device created by the integration. What I’m doing wrong?

Exception in discovery_message_received when handling msg on 'tasmota/discovery/xxxxxxxxx/config': '{"ip":"10.0.x.x","dn":"Tasmota","fn":["Tasmota","Tasmota2",null,null,null,null,null,null],"hn":"tasmota-xxxx","mac":"xxxxxxxxx","md":"Generic","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.1.0","t":"tasmota","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[1,1,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0},"lk":1,"lt_st":0,"ver":1}' Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/hatasmota/discovery.py", line 158, in discovery_message_received payload = TasmotaDiscoveryMsg(json.loads(payload)) File "/usr/local/lib/python3.8/site-packages/hatasmota/discovery.py", line 117, in __init__ config = TASMOTA_DISCOVERY_SCHEMA(config) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['if']

Are you on 0.117.5? I believe there was a discovery bug with this fixed in .5

Yes I’m on 0.117.5. I also thought that this may have been fixed with this release - but still the same issue.

I don’t see any errors.
I assume you have the broker working and the mqtt integration as well as Tasmota Integration and you turned off discovery on the device? (SetOption19 0)

Yes, everything is set up correctly also the SetOption19.

Did you eventually manage to solve this?
What was the solution?

I’m at 2021.2.2 and have the same issue

Exception in discovery_message_received when handling msg on ‘tasmota/discovery/600194867917/config’: ‘{“ip”:“192.168.1.87”,“dn”:“Sonoff-corr”,“fn”:[“Sonoff-corr”,null,null,null,null,null,null,null],“hn”:“sonoffcorr-6423”,“mac”:“600194867917”,“md”:“Sonoff Touch”,“ofln”:“Offline”,“onln”:“Online”,“state”:[“OFF”,“ON”,“TOGGLE”,“HOLD”],“sw”:“8.5.1”,“t”:“sonoffcorr”,“ft”:"%prefix%/%topic%/",“tp”:[“cmnd”,“stat”,“tele”],“rl”:[1,0,0,0,0,0,0,0],“swc”:[-1,-1,-1,-1,-1,-1,-1,-1],“btn”:[0,0,0,0],“so”:{“11”:0,“13”:0,“17”:0,“20”:0,“30”:0,“68”:0,“73”:0,“80”:0},“lk”:1,“lt_st”:0,“ver”:1}’

I’m on 2021.2.3 and I just ran into this error as I began transitioning to the Tasmota integration. I moved about 14 devices now nothing more will add. Did you have any luck figuring this out?

I figured it out…Upgraded to Tasmota 9.2

1 Like