Page 1 of 1
questions about rules
Posted: 28 Nov 2019, 21:19
by Sasch600xt
Hello all and sorry for this noob question.
I have an ADS1115 which works great.
i have set the interval in the plugin to 600 seconds.
but in my rule i send this line every 10 seconds for a special event.
Code: Select all
publish,"%sysname%/AmpereMeter/Analog-IN3",[AmpereMeter#Analog-IN3]
i see my variable gets updated every 10 seconds, but always with the old value.
So if i send the value every 10 seconds, but the plugin is set to 600 seconds, will this work ?
So in regular case i want new value every 10 minutes, but when my rule is active i want new value every 10 seconds.
or just simple my publish line is wrong
Thank you so much for your help
Re: questions about rules
Posted: 28 Nov 2019, 21:36
by ThomasB
So in regular case i want new value every 10 minutes, but when my rule is active i want new value every 10 seconds.
I suggest you try using the TaskRun command in your rule (insert before the publish). See
https://www.letscontrolit.com/wiki/inde ... _Reference.
or just simple my publish line is wrong
Your format is different than what I typically use. My rule statement would have looked like this:
Code: Select all
publish %sysname%/AmpereMeter/Analog-IN3,[AmpereMeter#Analog-IN3]
Your method may work the same, but if you continue to have problems then try my format.
- Thomas
Re: questions about rules
Posted: 28 Nov 2019, 21:53
by Sasch600xt
thank you so much for your answere,
how exactley should it look like ?
TaskRun,[AmpereMeter#Analog-IN3]
followed by:
publish %sysname%/AmpereMeter/Analog-IN3,[AmpereMeter#Analog-IN3]
I am so sorry, i did never use this so far
But thank you so much for your help !
Re: questions about rules
Posted: 28 Nov 2019, 22:15
by grovkillen
TaskRun,<task no>
That will make the value get updated.
Re: questions about rules
Posted: 28 Nov 2019, 22:22
by Sasch600xt
like this :
TaskRun,<6>
or this :
TaskRun,6
Thank you for your help
Re: questions about rules
Posted: 28 Nov 2019, 22:25
by grovkillen
Have you read the docs? We don't use < and > as delimiters...
Re: questions about rules
Posted: 28 Nov 2019, 22:28
by Sasch600xt
i am very sorry,
i started this morning my dayshift and it looks like it is followed direct with a nightshift
now after reading my question again i see how silly the question was......sorry
Re: questions about rules
Posted: 29 Nov 2019, 02:47
by grovkillen
Sasch600xt wrote: ↑28 Nov 2019, 22:28
i am very sorry,
i started this morning my dayshift and it looks like it is followed direct with a nightshift
now after reading my question again i see how silly the question was......sorry
Great