I am trying to simply turn on a fan if the temperature is above 70F and run for 5mins. I set up a trigger of "Temperature of ST Motion(75.0) reports > 70.0" and an action to turn on a switch of motion is detected. It's 75F in here so that should trigger..and when I have motion on the sensor it is not turning the fan on.
I feel like the issue is the trigger... How often does that poll? Is it 24/7 and should always be 'triggered' as long as temperature is above 70F?
I did find that Cobra seems to have written an app specifically for this, but his apps seem to not be available any longer so any suggestions are welcome.
Hi and thanks for your reply aaiyar. Yes I agree the site is there... But you cannot register to get access to any apps. If you try to register you are met with a message saying "New User registration is currently closed".
Maybe what I should be doing is asking Cobra if I can get access. @Cobra, could I get access to the website with your apps? I'll look for your reply.. Thanks.
So that is pretty specific per device. I don't know what device you are using, but most temp sensors don't poll on a regular basis. Most of the ones I have used send reports upon a certain degree change of temperature, or percentage thereof. This may be configurable in the device page for this particular sensor.
If I understand the sensor logic, (and sometimes I get it wrong) If the room was already 75 degrees, and you want the fan to turn on at greater than 70 degrees, you are out of luck. The room would have to change from (something less than 75) TO 75 to trigger.
So I think you are lacking the change part here, at least until it cools off enough to create enough difference to trigger the rule.
I was just about to add that, thanks for mentioning it. Just to clarify what I said in my previous post, polling usually isn't done automatically in the driver, but Rule Machine can do it for you.
Actually I did already create a new rule doing just that and I have it working. I am still curious though if the temperature can be used as a trigger in the way I was trying. It sounds like it cannot and the 'trigger' will only be changes in temperature as @neonturbo was suggesting.
I couldn't find any specific information about the ST motion, however its not clear why a trigger like:
motionsensortemp > 70
wouldn't work. Now my Iris reports temp every 5 minutes. Some devices report temp if there is a change of xxx. In either case you will not be getting fast updates from a battery device.
What do you plan after the 5 minute on time? Should the fan be retriggered the next report that is > 70?
Ah, interesting idea @neonturbo. I need it to be based on motion as well though because I don't want the fan turning on and off if we aren't even the in room, lol. I've never made a trigger based on time like that though so thank you for the example.
Hi John. Yea that was just my name for it. It's a "Smart Things" brand Motion Sensor.
After the 5 min time, if there is no motion, then the fan will turn off and the rule will end. If there is motion, then the fan will turn on again and stay on for 5 more minutes.
Interesting note though... I added a "Delay" for 5mins after it is turned on. I would think that during this 5mins if there is motion(i.e. We are moving around the room), I do not believe the timer will reset since it's just in a delay state. Resetting during the 5mins would be preferred but I don't know how to do that just yet. Maybe delay for events? I saw that as an option.
Triggers need to be events not conditions which is where you went wrong.
Hopefully this kind of explains the way to think about what the difference is when you are creating a rule.
An event is something that happens (e.g. motion & change in temperature) and a condition is a state you evaluate (e.g. temperature level, time of day)
I think the easiest way to think about it is if you are wanting something to limit when the rule runs that is a condition.
Also another option instead of the 5 minute delay to turn off is to use a wait for motion inactive which will keep the fan on as long as there is someone in the room.
Guys
I’m sorry, I was doing some work on the membership database which meant I could not allow new registrations.
The registration page will be back up today.