Rules - Dummy device not triggered

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
zigberg
New user
Posts: 2
Joined: 05 Mar 2023, 18:52

Rules - Dummy device not triggered

#1 Post by zigberg » 05 Mar 2023, 19:08

Hi
My dummy device not triggered when I change a value. It is ok or I miss something?
I made Dummy device #6 with name asicRelay and 1 value AsicState
Via timer I change value and expect after that must fire up trigger asicRelay# AsicState but it not happens
This simplified code

Code: Select all

On System#Boot do
 loopTimerSet,1,3 //start timer
 Let,1,0 //just counter
endon

On Rules#Timer=1 do
 Let,1,%v1%+1
 taskvalueset 6,1,%v1% //here I change value of dummy device and expect "asicRelay#AsicState" must execute
endon

On asicRelay#AsicState do //this my dummy device
 ...this not execute :(
endon
Please help

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

Re: Rules - Dummy device not triggered

#2 Post by Ath » 05 Mar 2023, 19:34

The TaskValueSet command doesn't generate events for the Dummy Device, these can be generated every Interval seconds (default = 0 -> No events generated), or by using the TaskValueSetAndRun command, that will set the value and also 'run' the task, generating the events you expect.
/Ton (PayPal.me)

zigberg
New user
Posts: 2
Joined: 05 Mar 2023, 18:52

Re: Rules - Dummy device not triggered

#3 Post by zigberg » 05 Mar 2023, 20:38

Oh, I see. Thank you very much, you save me tons of time.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests