I just don’t feel that your piston is the best way to accomplish what the OP wanted, that’s all.
What are you using for a humidity sensor?
I have been playing around with this now for the past week.
And have found this piston to work the best.
-Looking at the other Humidity values around the house,
In my findings the bathroom is normally close too, or the same as the other sensors
(when shower is not in use)
So comparing the bathroom sensor to these others works well.
I also needed to insure the off statement was a trigger versus condition.
Insuring you could still run the fan manually for other room needs.
And created an off function if on longer than 30min
I also felt it safe to run the piston only in the home mode.
I will most likely remove the wink humidity from the value (as it can be sketchy at times)
The Nest alone works well enough to compare values
Aside from Nest, and one on my wink relay unit.
I have been using ZooZ 4-n-1, and a Centralite Temp & Humidity
I have found I prefer the ZooZ unit. More verstile and reliable
This will not turn the fan on ever. You need to have the first if be a Trigger and not a Condition. This has been working? Your fan must never turn on through this piston so how is that good?
This topic has had me intrigued, I was using a basic piston set to turn a fan on based on an arbitrary humidity setting, so seeing this made me take another look. If I go back to the real intent of this it is to turn on the fan when you have a bath or shower and then turn it off again when the humidity has fallen bak to the original level. Thus I took the approach to make a minor mod and add a stake in the ground when humidity starts to rise in the room. that way you don’t have to compare to other humidity sensors in the house (assuming you have them)
I have had this running for a couple of days now and it seems to work as intended.
I suggested that like a week ago. The OP didn’t like that method.
https://community.smartthings.com/uploads/short-url/1PofQYcJEuXMynI5SN2qgkNIMI9.png
Our pistons are super similar. It’s uncanny.
Actually it has been working and running very well so far.
And has been controlling the on and off of the fan fairly accurately,
And has been very close to my desired goal.
I never said I didn’t like the method you suggested.
I had some concerns
I never really found or got an answer too my concerns above.
I began to play with using other home sensors to run comparison from. And this so far has been running fairly well. I would still rather rely on just the one sensor.
So I am going to still work with your piston.
Simon seems to be happy with the results of using one sensor
Okay…here you go…and remember, you asked:
- I was only using one sensor as well. I don’t understand why you think the piston I posted uses two.
- Actually my piston recycled every 30 seconds so i don’t know where you got 5 minutes.
- Batter life for what? Webcore doesn’t have batteries. LMAO I don’t know what you’re talking about.
- System resources would be fine running a piston every minute. The pistons execute in the cloud.
- why turn off every 30 second loop? just run every minute if your want.
OK, back at ya !
-
I Never mentioned or even commented on your piston using more than one sensor, so not sure where you are going with this one ? wow
-
Actually your piston was set-up for 30 seconds, but it was you that said this was for testing, and your suggested 5min when you started. see below
I think the only way you could do that is to run a piston every so many minutes and record the humidity.
Loop: Every 5 minutes
Set variable current to device's humidity reading
If current-previous > 10
then turn on fan
If Previous - current > 10
Then turn fan off.
Then Set previous = current
And
```this was at the bottom of you piston post
This one runs every 30 seconds for **testing only**
My question was clearly Battery on the sensor, and was referring to it updating polling to much
_-Would there be problems with battery life on the sensor?_
Not Batter ??? LMAO back at ya
Your 4 & 5 actually was the answer I was looking for, and was helpful thank you
Honestly I am a newbie at this and was seeking help. And sincerely appreciate that help.
And there is no reason for back and forth banter. If it’s hard for you to help and do it nicely than just walk away
An alternative would be to install this smartapp in the IDE. I have been using this for a long while now and has worked great!
If you’re seeking help don’t be so dismissive of suggestions just because you think you have the answer. There’s a million and one ways to do everything in webCoRE and everyone can learn from everyone else. So…don’t be so dismissive.
Well given that I used yours as a starting point that’s not a surprise.
Actually quite the contrary on being dismissive, I’m sure I have even thanked you personally 3-4 times now for the ideas, suggestion and advice. I posted a few basic question to you and your piston. As I try to gain a better understanding of things and how they work. And I am sorry if this came off as dismissive to you. That was not my intent. I am a newbie at this and learning as I go. So I may have questions that seem dumb. Your replies to this were sarcastic and arrogant. My apologies in advance if this is not how you intended them to be. This thread has been extremely helpful and I now have three varied pistons from the suggestions posted here and I am enjoying playing with the many ideas. And which works the best in my particular application. So if I share a piston I have been experimenting with constructive criticism and suggestions are always welcome.