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
-
- Normal user
- Posts: 4344
- Joined: 10 Jun 2018, 12:06
- Location: NL
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)
-
- Normal user
- Posts: 33
- Joined: 09 Feb 2018, 20:04
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.
-
- Core team member
- Posts: 9926
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: json switchcmd=On for 1 sec.
Do you want to send this URL from ESPeasy to Domoticz?
-
- New user
- Posts: 6
- Joined: 02 May 2021, 22:17
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')
-
- Normal user
- Posts: 33
- Joined: 09 Feb 2018, 20:04
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: Anthropic Claude Bot [bot], opensiteexplorer.org/dotbot [bot] and 22 guests