Moderators: grovkillen, Stuntteam, TD-er
-
toffel969
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
#11
Post
by toffel969 » 23 Oct 2017, 19:59
vader wrote: ↑23 Oct 2017, 19:44
I've tested it and does not work for me. I mean, you can not transmit values to an event. The parser seems to ignore more than 1 value after "event". It is only interested in the event name....
The messed rules seem to be an issue of core 2.4.0....
You can send values, check the wiki
https://www.letscontrolit.com/wiki/inde ... _Variables
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
-
vader
- Normal user
- Posts: 241
- Joined: 21 Mar 2017, 17:35
#12
Post
by vader » 23 Oct 2017, 20:10
Ok, now I got it. The "=" after event name was wrong (I had ",")...

-
danmero
- Normal user
- Posts: 64
- Joined: 11 May 2017, 01:19
#13
Post
by danmero » 23 Oct 2017, 23:16
Code: Select all
on testevent do
TaskValueSet 5,4,%eventvalue%
endon
Code: Select all
http://x.x.x.x/control?cmd=event,testevent=3
This works on 2.0.0.x
-
rayE
- Normal user
- Posts: 144
- Joined: 12 Oct 2017, 12:53
- Location: Philippines
#14
Post
by rayE » 24 Oct 2017, 02:53
Thanks guy's, this works a treat

-
grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
#15
Post
by grovkillen » 24 Oct 2017, 07:54
toffel969 wrote: ↑23 Oct 2017, 19:59
vader wrote: ↑23 Oct 2017, 19:44
I've tested it and does not work for me. I mean, you can not transmit values to an event. The parser seems to ignore more than 1 value after "event". It is only interested in the event name....
The messed rules seem to be an issue of core 2.4.0....
You can send values, check the wiki
https://www.letscontrolit.com/wiki/inde ... _Variables
I have now moved this section to its correct section
https://www.letscontrolit.com/wiki/inde ... alue.25.29
I hope more people will use this awesome technique (I sure hadn't seen it before you pointed it out).
-
danmero
- Normal user
- Posts: 64
- Joined: 11 May 2017, 01:19
#16
Post
by danmero » 20 Nov 2017, 15:20
I use this rule set to pass GPIO # as event argument.
Code: Select all
on sniff#a do
event event1=%eventvalue%
endon
on event1 do
pcfpulse %eventvalue%,0,200
endon
Regards,
-
grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
#17
Post
by grovkillen » 20 Nov 2017, 16:32
danmero wrote: ↑20 Nov 2017, 15:20
I use this rule set to pass GPIO # as event argument.
Code: Select all
on sniff#a do
event event1=%eventvalue%
endon
on event1 do
pcfpulse %eventvalue%,0,200
endon
Regards,
Clever, will try to add this to the wiki as well.
Who is online
Users browsing this forum: Amazon [Bot], Anthropic Claude Bot [bot] and 16 guests