Blockheater problem


#1

1) Give a description of the problem
The last if is not working.

2) What is the expected behaviour?
Turn of if power is below 250W

3) What is happening/not happening?
The on section work fine, but not the off
I did a new piston with just the if power is under 250w turn of smartplug, and it works.
But in that piston i have a “flash” sign next to the it statement. Here i cant see that, so i think its missing a trigger?

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full


#2

I’m not sure why your using the three device variables for the same outlet?

Using is on is treated as a condition, for a trigger you need to use “changes to”

I think you just need to code the off condition the same as your multiple on coding, using the time to act as the trigger


#3

I use the same outlet just as test as the outlet im going to us is in the mail.

Ok, ill look it to it. Thanks


#4

The ‘every’ blocks are self-contained. So at the given times every day just the piston will run just the required block.

The piston always looks to see when it should run. It normally looks for explicit trigger conditions and sets itself to run when they happen. Failing that it looks at ordinary conditions and tries to run when they might have changed. I think in this case the ‘every’ blocks are enough for the piston to decide it doesn’t need to worry about the conditions.

I’d actually just put the ‘if’ block in its own piston as it looks like you may need it to run whenever the switch changes, the power changes, or at the beginning and end of the time period, so just using conditions is fine. If I am wrong and there is an obvious actual event your are interested in then that needs expressing as a trigger.