MQTT actions are not triggered

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
zerros
New user
Posts: 2
Joined: 04 Nov 2019, 10:31

MQTT actions are not triggered

#1 Post by zerros » 04 Nov 2019, 10:46

Hi,

Forgive me in advance for my bad english.

Im trying to connect a nodemcu v2 to Domoticz MQTT. In controller I have setup the "Domoticz MQTT" and fill up the form.

When I try to trigger on/off a relay connected on D5 (14) using the browser, I can see in domoticz that the state of the virtual switch changes.

Code: Select all

http://192.168.7.12/control?cmd=gpio,14,0
http://192.168.7.12/control?cmd=gpio,14,1
But if i trigger the virtual switch using domoticz, the relay is not triggered. But I can see in MQTT that domoticz send the right json:
ON

Code: Select all

{
   "Battery" : 255,
   "RSSI" : 12,
   "description" : "",
   "dtype" : "Light/Switch",
   "id" : "000140AB",
   "idx" : 91,
   "name" : "temp",
   "nvalue" : 1,
   "stype" : "Switch",
   "svalue1" : "0",
   "switchType" : "On/Off",
   "unit" : 1
}
OFF

Code: Select all

{
   "Battery" : 255,
   "RSSI" : 12,
   "description" : "",
   "dtype" : "Light/Switch",
   "id" : "000140AB",
   "idx" : 91,
   "name" : "temp",
   "nvalue" : 0,
   "stype" : "Switch",
   "svalue1" : "0",
   "switchType" : "On/Off",
   "unit" : 1
}
The firmware i use:

Code: Select all

Build:⋄	20103 - Mega
System Libraries:⋄	ESP82xx Core 2_4_1, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.0.3 PUYA support
Git Build:⋄	mega-20190903
Plugins:⋄	48 [Normal]
Build Md5:	a34e7ef87792844a8cc5948f52dba545
Md5 check:	passed.
Build Time:⋄	Sep 3 2019 02:18:27
Binary Filename:⋄	ESP_Easy_mega-20190903_normal_core_241_ESP8266_4M1M.bin
Any idea whats is wrong ?

Thanks.

User avatar
uxhamby
Normal user
Posts: 132
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

Re: MQTT actions are not triggered

#2 Post by uxhamby » 30 Nov 2019, 01:19

If you go to

http://192.168.7.12/control?cmd=gpio,4,1

and

http://192.168.7.12/control?cmd=gpio,4,0[

with a browser, does the relay operate on and off?

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests