TaskValueSet,TASKnr,VARnr,Value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gibus17
Normal user
Posts: 22
Joined: 06 Jan 2020, 12:02

TaskValueSet,TASKnr,VARnr,Value

#1 Post by gibus17 » 04 Jul 2022, 18:18

HELLO,
I created a virtual device
name: DUREE_filtration
value 1: calculatee
value 2: effectuee

if to update it I use
taskValueSet,9,1,2515
taskValueSet,9,2,3025
It's OK
However, if I use
taskValueSet,DUREE_filtration,calculatee,2515
taskValueSet,DUREE_filtration,effecuee,3025
it does not work

please show me my mistake

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: TaskValueSet,TASKnr,VARnr,Value

#2 Post by Ath » 04 Jul 2022, 19:22

Where did you type those TaskValueSet commands?
And is there anything more around that code? (Please wrap your code using code tags for readability, using the '</>' button in the forum toolbar)
Wat version of ESPEasy is installed on your device? (Most explicit is the name of the .bin file you flashed)

And I assume the typo is 'effecuee' in because you re-typed it, not copy/pasted?
/Ton (PayPal.me)

gibus17
Normal user
Posts: 22
Joined: 06 Jan 2020, 12:02

Re: TaskValueSet,TASKnr,VARnr,Value

#3 Post by gibus17 » 07 Jul 2022, 16:44

excuse english it's a google translation
Hello
I don't remember the .bin file
I realized the flash in January 2012 with this version:
ESP_Easy_mega_20210114_normal_ESP8285_1M
I am looking to change the code made at the time and use the name and value of the virtual device
Here is the code I am trying. I run using in the "TOOLS" tab

Code: Select all

on filtration do
taskValueSet,FILTRATION,calculee,2020
taskValueSet,FILTRATION,effectuee,4500
endon
The virtual device is called "FILTRATION" and it has two values: calculatee "and "effectuee"

The command returns "OK" but does not change the values
Thank you for helping me

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

Re: TaskValueSet,TASKnr,VARnr,Value

#4 Post by TD-er » 07 Jul 2022, 18:09

Can you check on the Tools->Advanced page to make sure this checkbox is checked:
[x] Allow TaskValueSet on all plugins:

And when not sure about the syntax/names of the task and task values, you can always use the task index and taskvalue index (both starting at '1')

gibus17
Normal user
Posts: 22
Joined: 06 Jan 2020, 12:02

Re: TaskValueSet,TASKnr,VARnr,Value

#5 Post by gibus17 » 08 Jul 2022, 12:05

Hello
My current code uses indices. But they make code less understandable than name and value. It is for this reason that I seek to use them.
In the page "tools ->Advanced" I can't find
"Allow TaskValueSet on all plugins:"

User avatar
Ath
Normal user
Posts: 3418
Joined: 10 Jun 2018, 12:06
Location: NL

Re: TaskValueSet,TASKnr,VARnr,Value

#6 Post by Ath » 08 Jul 2022, 12:12

Then you are on an old(er) version of ESPEasy that doesn't yet have that setting. Please update to the latest version, available from the Github releases page
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests