Tasmota ->MQTT->Domoticz issue (Solved)

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
iganin
Posts: 47
Joined: Tuesday 28 October 2014 17:55
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Aalter, Belgium
Contact:

Tasmota ->MQTT->Domoticz issue (Solved)

Post 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?
Last edited by iganin on Wednesday 16 December 2020 18:05, edited 1 time in total.
User avatar
FireWizard
Posts: 1770
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Tasmota ->MQTT->Domoticz issue

Post by FireWizard »

Hi, @iganin
What is your IDX number 1080 or 1081? Check it.
Your two examples show a different value.

Regards
iganin
Posts: 47
Joined: Tuesday 28 October 2014 17:55
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Aalter, Belgium
Contact:

Re: Tasmota ->MQTT->Domoticz issue

Post by iganin »

I found out that the issue was with quotation mark while i was using Tasmota rules
I used ” instead "
My bad.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest