You are not logged in.
This post has been edited 1 times, last edit by "InfoSeeker" (Mar 9th 2022, 5:18pm)
Remayz
Senior Member
This post has been edited 1 times, last edit by "InfoSeeker" (Mar 10th 2022, 5:06am)
WinstonWoof
Full Member
Something else I am misunderstanding: how the X=t(+A) Logic Function works.
The cheat says "Output switches off delayed if input <= to 0". Having a 7 sec delay dialed in, I expect the following:But what I see is S & A on the function X=mem(A), both dropping to 0 immediately
- ([attach]9282[/attach])
- input is dropped from 1 to 0
- S on function X=mem(+A) goes to 0
- A on function X=t(+A) goes to 0, this starts a 7 second countdown
- at the end of the 7 second countdown, A on function X=mem(A) drops to zero
- ([attach]9283[/attach])
This post has been edited 1 times, last edit by "WinstonWoof" (Mar 10th 2022, 8:34am)
When you change somthing in your flow, everything in the flow restart.
You cant test it in this way with using constants and changing it. you have to use data sources / sensor values / input values.
This post has been edited 1 times, last edit by "InfoSeeker" (Mar 10th 2022, 2:13pm)
WinstonWoof
Full Member
Now that I understand a little better how to operate virtual sensors, I have another question.
Is there a reason for not allowing multiple inputs to trigger the switch on the X=mem(A) function?
Being a switch, it would be useful to allow it to be triggered by any source desired.
Glad to hear that you finally got it working the way you want. I am still wondering about your "Twilight Zone" post which showed that X changed to 0 when S changed to 0, so the X value did not persist until S >0. Was this caused by using constants instead of data sources as inputs, and the reset being caused by changing the constant value?Been a few hours and the thing works great, fairly elegant solution (almost 100%
I want to thank all who contributed... thank you!
Glad to hear that you finally got it working the way you want. I am still wondering about your "Twilight Zone" post which showed that X changed to 0 when S changed to 0, so the X value did not persist until S >0. Was this caused by using constants instead of data sources as inputs, and the reset being caused by changing the constant value?
Also, is the only difference between X=mem(A) and S=sh(A) that X-mem(A) writes the X value to an XML file (as Remayz suggested)?
This thread contains a LOT of detailed information about how these logic functions work, and has helped me to understand some of the nuances of these functions. I still don't quite fully understand the tweaked flow that Remayz posted. I have been staring at it but think I need to build it to fully understand it. Thanks to everyone who posted diagrams. They are immensely helpful.
-