Humidity sensor activates ST outlet


#1

1) Give a description of the problem
Looking for a code sample or some ideas to start my design.

2) What is the expected behavior?
Would like to use a humidity sensor to turn on a ST outlet which will have a humidifier plugged into. Would like it to turn off the outlet if the room reaches a desired humidity level.

3) What is happening/not happening?
N/A looking for starting design suggestions.


#2

Without any known devices to start with, it should be as simple as this:

IF
Humidity Sensor is greater than X%
Then
With ST Outlet, Turn On
Else
With ST Outlet, Turn Off


#3

If my humidier stays on for a long time (esp in a low temp) it will start to ice up. It’s older. So hence me wanting to know when it’s been on for over 12 hours…

This could clearly be cleaned up with some variables since I’m using direct names in the log entries…but…it should get you going.


#4

thanks!


#5

Thanks again, I had no trouble building that. Do i need to run the piston on a schedule or do something to trigger it to check conditions?


#6

Glad it worked! You shouldn’t need a timer/schedule or anything; the humidity sensor should report changes in its measurement, causing your piston to run whenever the condition “humidity is > X” evaluates true.

Just to be sure, can you post a green snapshot of your piston so I can see what device(s) are subscribed?