Hello all,
I'm trying around to set all dummy Device Variables with one Taskvalueset command but could not find an example or Doku about the syntax...
What I did:
Setup a Dummy Devive with 3 variables (Screenshot), first I tried without checking the marked box.
I send commands over serial line. When I do Taskvalueset,1,1,value everything is fine for variable 1 (and also for ,2 and ,3)
Then I checked the box and tried to send all values in one serial command.
I tried different commands but with no success.
When I send taskvalueset,1=1,2,3
only value1 is set, not the others...
Do I misunderstandthis funktion or is it just the wrong syntax?
Any help or hint to the docu will be greatly appreaciated.
Many thanks in advance
edit: I use ESPeasy Version: mega-20211224_f162ebf
Syntax for taskvalueset (taskname#All) ?
Moderators: grovkillen, Stuntteam, TD-er
Syntax for taskvalueset (taskname#All) ?
- Attachments
-
- DummyDevice-setting.png (94.74 KiB) Viewed 3934 times
Re: Syntax for taskvalueset (taskname#All) ?
See the documentation on TaskValueSet: https://espeasy.readthedocs.io/en/lates ... skvalueset
You need to set it per taskvalue of the dummy task.
If you want to send multiple values at once, you should do it as an event and then in the rules handle this event.
For example:
Command via serial: event,MyEvent=1,2,3
Rules:
You need to set it per taskvalue of the dummy task.
If you want to send multiple values at once, you should do it as an event and then in the rules handle this event.
For example:
Command via serial: event,MyEvent=1,2,3
Rules:
Code: Select all
on MyEvent do
taskValueSet,1,1,%eventvalue1%
taskValueSet,1,2,%eventvalue2%
taskValueSet,1,3,%eventvalue3%
endon
Re: Syntax for taskvalueset (taskname#All) ?
Hi and thanks a lot!
OK, this for event only. Tested and worked as you described it!
Sorry for my misunderstanding.
Best regards
Klaus
OK, this for event only. Tested and worked as you described it!
Sorry for my misunderstanding.
Best regards
Klaus
Who is online
Users browsing this forum: No registered users and 131 guests