Hello,
I've been looking for days how in the json line below the switch for 1 sec. can be switched 'On'.
Is there anyone who has a solution for this?
dz.openURL('http:/192.168.xxx.xxx:8080/json.htm?type=command¶m=switchlight&idx=507&switchcmd=On')
json switchcmd=On for 1 sec.
Moderators: grovkillen, Stuntteam, TD-er
Re: json switchcmd=On for 1 sec.
Is this supposed to work with ESPEasy?, as I don't recognize the command syntax
/Ton (PayPal.me)
Re: json switchcmd=On for 1 sec.
This is a command from a Domoticz/dzvents script to activate a switch for 1sec. to turn on.
Perhaps this question should not be asked in this forum.
Perhaps this question should not be asked in this forum.
Re: json switchcmd=On for 1 sec.
Do you want to send this URL from ESPeasy to Domoticz?
Re: json switchcmd=On for 1 sec.
If I understand correctly, you're trying to send a dzEvent from Domoticz to activate a switch flashed with EspEasy.
If so, have you tried :
Code: Select all
dz.openURL('http:/192.168.xxx.xxx/control?cmd=pulse,<gpio>,1, 1000')
Re: json switchcmd=On for 1 sec.
I'll try to explain what the point is.
I have a wireless Doorbell whose push button range (433 MHz.) is not large enough.
With this push button I have created a Doorbell Device in Domoticz so that the range is large enough.
With a dzVents Script I can now control the bell, but that should not be less than a second.
The current command keeps the bell ringing.
return {
on = {
devices = { 525 }
},
execute = function(dz, device)
if (device.active) then
dz.openURL('http:/192.168.1.23:8080/json.htm?type=command¶m=switchlight&idx=507&switchcmd=On')
end
end
}
I have a wireless Doorbell whose push button range (433 MHz.) is not large enough.
With this push button I have created a Doorbell Device in Domoticz so that the range is large enough.
With a dzVents Script I can now control the bell, but that should not be less than a second.
The current command keeps the bell ringing.
return {
on = {
devices = { 525 }
},
execute = function(dz, device)
if (device.active) then
dz.openURL('http:/192.168.1.23:8080/json.htm?type=command¶m=switchlight&idx=507&switchcmd=On')
end
end
}
Who is online
Users browsing this forum: No registered users and 14 guests