questions about rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Sasch600xt
Normal user
Posts: 164
Joined: 10 Sep 2018, 16:37

questions about rules

#1 Post by Sasch600xt » 28 Nov 2019, 21:19

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
"the flat earth society has members all around the globe"

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: questions about rules

#2 Post by ThomasB » 28 Nov 2019, 21:36

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

User avatar
Sasch600xt
Normal user
Posts: 164
Joined: 10 Sep 2018, 16:37

Re: questions about rules

#3 Post by Sasch600xt » 28 Nov 2019, 21:53

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 !
"the flat earth society has members all around the globe"

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: questions about rules

#4 Post by grovkillen » 28 Nov 2019, 22:15

TaskRun,<task no>

That will make the value get updated.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
Sasch600xt
Normal user
Posts: 164
Joined: 10 Sep 2018, 16:37

Re: questions about rules

#5 Post by Sasch600xt » 28 Nov 2019, 22:22

like this :
TaskRun,<6>

or this :
TaskRun,6

Thank you for your help :)
"the flat earth society has members all around the globe"

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: questions about rules

#6 Post by grovkillen » 28 Nov 2019, 22:25

Have you read the docs? We don't use < and > as delimiters...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
Sasch600xt
Normal user
Posts: 164
Joined: 10 Sep 2018, 16:37

Re: questions about rules

#7 Post by Sasch600xt » 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
"the flat earth society has members all around the globe"

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: questions about rules

#8 Post by grovkillen » 29 Nov 2019, 02:47

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 :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests