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
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
}
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
}
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
Thanks.