Logic Machine Forum
Staircase logic with repeating off - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Staircase logic with repeating off (/showthread.php?tid=4801)



Staircase logic with repeating off - Tee_Trinker - 02.06.2023

Hello every one.
I use the Staircase logic Version 3.1 by Erwin van der Zwart.
I use this to start my lawn sprinkler and this one startet an EnOcean Rocker. 
It works realy fine, but sometimes EnOcean Rocker does not receive the signal. 
The Staircase logic is off but the EnOcean Rocker is still on. so i need to turn it manually off.
Is it possible to add a repeating off signal...like 2 or 3 times after ending the Staircase logic?

Tanks for you help!


RE: Staircase logic with repeating off - Dré - 03.06.2023

Maybe you can add something like?

Code:
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)

replace my object with your groupadress / objectname


RE: Staircase logic with repeating off - Tee_Trinker - 04.06.2023

(03.06.2023, 10:57)Dré Wrote: Maybe you can add something like?

Code:
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)
os.sleep(10)    --time delay of 10 seconds
grp.write('my object', false)

replace my object with your groupadress / objectname

hey thanks
But in which line should I enter this??  -->  Staircase logic Version 3.1 by Erwin van der Zwart.
In "SET PARAMETERS" ???


RE: Staircase logic with repeating off - Dré - 04.06.2023

Do you have a link to the post? post of Erwin
Maybe next time you need to post in that treat?

I think i should put it between line 101 and 102
Code:
grp.write(AddressOutput, false)
        ValueOutput = false

what would look now
Code:
grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
        ValueOutput = false

But does the EnOcean not have a feedback object, what you can use?


RE: Staircase logic with repeating off - Tee_Trinker - 05.06.2023

(04.06.2023, 12:19)Dré Wrote: Do you have a link to the post? post ofErwin 
[quote pid="31053" dateline="1685881182"]
Maybe next time you need to post in that treat?

I think i should put it between line 101 and 102
Code:
            grp.write(AddressOutput, false)
        ValueOutput = false

what would look now

Code:
           grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
os.sleep(10)    --time delay of 10 seconds
grp.write(AddressOutput, false)
        ValueOutput = false

But does the EnOcean not have a feedback object, what you can use?
[/quote]


OH  Confused sorry my mistake.

should I write here then?  post of Erwin

because this one didnt work.
because after the time has elapsed, it still only sends the off signal once.
the feedback doesn't help me because I start the logic from everywhere