I have 1xDS18B20 and 1xHHT22 - works great.
But I have problem with two relays.
If I control relay through http://10.123.1.188/control?cmd=GPIO,12,1 it works. There is output:
Code: Select all
{
"log": "GPIO 12 Set to 1",
"plugin": 1,
"pin": 12,
"mode": "output",
"state": 1
}
But if I turn on(or off) relay at Domoticz web, esp easy do nothing. There is mqtt message from domoticz:
Code: Select all
$ mosquitto_sub -v -h 10.123.1.18 -p 1883 -t '#'
domoticz/out {
"Battery" : 255,
"RSSI" : 12,
"description" : "",
"dtype" : "Light/Switch",
"id" : "00014052",
"idx" : 2,
"name" : "Sonoff_1_internal_relay",
"nvalue" : 1,
"stype" : "Switch",
"svalue1" : "0",
"switchType" : "On/Off",
"unit" : 1
}

I tried Sonoff-Tasmota firmware and relay works. But Tasmota firmware has little functionality.
If I use on/off action url in Domoticz, it works. But I do not want it - it is not possible to use DHCP.
How can I fix it?