Syntax for taskvalueset (taskname#All) ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kllei
Normal user
Posts: 11
Joined: 11 Feb 2019, 13:07

Syntax for taskvalueset (taskname#All) ?

#1 Post by kllei » 27 Apr 2022, 15:33

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
Attachments
DummyDevice-setting.png
DummyDevice-setting.png (94.74 KiB) Viewed 3909 times

TD-er
Core team member
Posts: 8736
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Syntax for taskvalueset (taskname#All) ?

#2 Post by TD-er » 27 Apr 2022, 16:12

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:

Code: Select all

on MyEvent do
  taskValueSet,1,1,%eventvalue1%
  taskValueSet,1,2,%eventvalue2%
  taskValueSet,1,3,%eventvalue3%
endon

kllei
Normal user
Posts: 11
Joined: 11 Feb 2019, 13:07

Re: Syntax for taskvalueset (taskname#All) ?

#3 Post by kllei » 27 Apr 2022, 16:20

Hi and thanks a lot!

OK, this for event only. Tested and worked as you described it!

Sorry for my misunderstanding.

Best regards
Klaus

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests