Piston to set fan speed to Medium after midnight


#1

I am trying to make a pistion that will change my fan speed to medium if the fan is on and set high after midnight. My fan control switch is a GE Enbrighten Z-Wave Plus Smart Fan Control

Here is my beginner attempt at creating a piston:

Will this work. I did not see a setting for high so I selected 100%

I also did not see an option to set to medium like there is for low and high so I selected the value shown.

I would appreciate any help and suggestions. Thanks.


#2

I don’t have a fan control like yours so I can’t really test. My suggestion would be to use time after midnight as your trigger, and then do the check to see if the fan level is at 100%.

You can also try and log in to IDE and check the values reported by the device driver when you change speeds.


#3

Good tips, I will try them. Thank you.


#4

Side Note:

On new devices, I often create a single line piston to test various commands…
(since not all commands work with all devices)

Once you know how your fan reacts to medium and 100%, then you can program logic to control that.


#5

I was able to find the speeds in case anyone else needs to know Low=32, Medium=66 and High=99.

What do I enter for time if I want the piston to fire at midnight?

Thanks,


#6

Something like this…


#7

Thank you. I am thinking this through more, I think I will need to set an end time. Normal the fan will not be turned on after midnight, but if it is turned on high at 12:02 am will it continue to run at 99 all night?


#8

If turned on at 12:02am then yes. The above is the simple logic of just checking if it’s on at full speed after midnight. If you want to make it smarter then additional checks will need to be added.


#9

You could add another IF below the one posted above

IF dimmer changes to 99%
and
time is between 12:02AM and whatever time
then
set level to 33%


#10

I am now thinking a timer based approach might be what I need. What i was trying to do with this piston is say if the fan is on high (Level 99) for 2 hours then switch to medium (Level 66). This did not work, any suggestions. I have 2 minutes instead of 2 hours for testing.

Also, how do I start with an “only when statement”? I had to modify someone else’s piston to try this.


#11

This one would do what you want… I think :wink: There are two statements, they accomplish the same thing so pick one and delete the other.

Regarding Only When… enable it in the toolbar.
image


#12

Thank you, the first one worked for me.