Page 1 of 1

Tasmota ->MQTT->Domoticz issue (Solved)

Posted: Wednesday 16 December 2020 16:23
by iganin
I trying to switch two virtual devise from Tasmota using MQTT:

One of the has IDX 534 and the second 1081

Code: Select all

2020-12-14 22:14:03.389 MQTT: Topic: domoticz/in, Message: {"idx":534,"nvalue":1}
2020-12-14 22:15:20.069 MQTT: Topic: domoticz/in, Message: {"idx":1081,”nvalue":1}
2020-12-14 22:15:20.070 Error: MQTT: Invalid data received! 
As you can see the message to 1081 fails.
I tried another MQTT format, still the same response :cry:

Code: Select all

2020-12-16 15:56:09.934 MQTT: Topic: domoticz/in, Message: {"command":"switchlight","idx”:1080,"switchcmd":"On"}
2020-12-16 15:56:09.934 Error: MQTT: Invalid data received!
2020-12-16 15:56:10.927 MQTT: Topic: domoticz/in, Message: {"command":"switchlight","idx”:1080,"switchcmd":"Off"}
2020-12-16 15:56:10.927 Error: MQTT: Invalid data received!
The configuration of the devises looks similar

Code: Select all

			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "On",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "Switch",
			"SwitchType" : "On/Off",
			"SwitchTypeVal" : 0,
			"Timers" : "false",
			"Type" : "Light/Switch",
			"TypeImg" : "lightbulb",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "534"

			"Protected" : false,
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"Status" : "Off",
			"StrParam1" : "",
			"StrParam2" : "",
			"SubType" : "Switch",
			"SwitchType" : "On/Off",
			"SwitchTypeVal" : 0,
			"Timers" : "false",
			"Type" : "Light/Switch",
			"TypeImg" : "lightbulb",
			"Unit" : 1,
			"Used" : 1,
			"UsedByCamera" : false,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "1080"
Does someone has an idea what could be wrong?

Re: Tasmota ->MQTT->Domoticz issue

Posted: Wednesday 16 December 2020 17:01
by FireWizard
Hi, @iganin
What is your IDX number 1080 or 1081? Check it.
Your two examples show a different value.

Regards

Re: Tasmota ->MQTT->Domoticz issue

Posted: Wednesday 16 December 2020 18:04
by iganin
I found out that the issue was with quotation mark while i was using Tasmota rules
I used ” instead "
My bad.