Ceiling fan controller?

Sweet jebus! That’s a little excessive! Thanks for the warning!

This SmartApp can turn a fan, AC unit, heater of electric blanket on or off depending on a temperature range. I’m looking for some feedback since I don’t have a ton of devices to test it on.


Add another +1 to that fanlync.

I ended up writing a smart app that does this

I’ll give a whirl on my fan and let you know. Is there a thread somewhere that you started on your app that you want the feedback?

you can put the feedback in this thread.

@Lojack Testing the app but it is crashing. I am using temperature from a SmartThings multipurpose sensor and I trigger the fan ON as a cooling unit. It crashes after I try selecting the devices I want to use and is telling me it is sending the developer a notification about it. Here is my device setup at this thread Control 3-speed Ceiling Fan and Light Kit? I have been using the Virtual Thermostat smartapp but unloaded to test yours.

I manually am setting the variable speed but ideally want to do it automatically in an app. The idea being at desired setpoint trigger the Fan ON and also Low Speed, if temp continues to rise 2 more degrees set speed to Medium Speed. If temp rises 2 more degrees then set fan speed to High Speed. And the reverse should happen to lower Fan Speed in increments until it shuts off the fan 2 degrees below desired setpoint.

For now I configured three new routines that set the fan speed for Low, Medium, High so if the app could trigger routines based on the above?

@chrisb It certainly isn’t the ideal configuration like the Insteon hardware but at least it works. I had a similar problem to you but in my case I had power wiring to the ceiling fan without any wall switches. It was a remodel and since the fan had pull chains I didn’t get the wall switch installed. So I ended up installing both the fan speed and light controller inside the canopy.

Continuing the discussion from Control 3-speed Ceiling Fan and Light Kit:

Are you still seeing that error? I’m having trouble reproducing it. I’ll keep trying.

Yes, Let me try uninstalling and reinstalling it just in case something went weird. Did you get notified about the crash like SmartThings is reporting? I wonder if it is giving you any clues as to what it might be. Just a thought about wording. “Thing with thermostat” is a little confusing. Isn’t it supposed to be “Temperature input”?

UPDATE: I reloaded and it OK until I started changing settings and then it still crashes. If I set the app to be cooling. The crash occurs when I changed the lower setpoint to 65? From now on no matter what I set the setpoint to “it” crashes. The exact bubble message says “SmartThings has crashed, but a report has been sent to the developer.”

1 Like

That’s good information and maybe enough of a clue for me to figure out what’s wrong.

…no report was send to me. You see the SmartApp. It’s pretty simple and their isn’t any code to do that.

Stay tuned…

Is this similar to your setup?

Yes that is correct, here it is from my screen. I tried using the SmartThings multisensor for the temperature reading in “Thing with thermostat” then I switched to the ecobee3 as my temp input just to see if it would help. The device that I am sending the “Switch to control…” to is Dimmer Switch Device labeled Ceiling Fan Speed. BTW the temperature input reading is at 70.

Hey something is going on outside of your app! I reinstalled Virtual Thermostat and I get that one to crash SmartThings as well so it can’t be your app but something else like a device type maybe?

1 Like

Have you figured it out yet? It’s still working for me. It would be nice if someone else tried to install it.

I wish I could figure it out. I opened a support ticket with SmartThings to get some help. I do not think it is you at all since I get the same crash with Virtual Thermostat by SmartThings. For whatever reason I can get it to fail with your app very easily but I can get the same error with other apps. I think when support tells me “the developer” that is getting notified it will help my troubleshooting.

1 Like

I am not a developer so I am just curious, Is it possible to modify the SmartThings SmartLighting code to simply include Temperature as one of the triggers?

No, but you can use Rule Machine instead of Smart Lighting. It will do everything that Smart Lighting does (except run locally), and includes temperature as a trigger.


Wanted to share. This is my git code and eagle file for my project. I have a Photon on the eagle board with a Cat5 cable connected to my Hampton Bay Controller. Enjoy

Cool, any pictures?

Sure do.

If anyone is wondering why I am using relays its because this could be done using transistors only. Here’s why. When I installed my fans back in 2014 I for some reason put all the code pins on for fan 0, pin 1 off and 2-4 on for fan 1 and so on. So I had to use a relay that is Normaly Closed. So when it was triggered it was actually opening the circurt. It was a decision on if I wanted to just use relays on my board or pull down the fans. You can guess what won.

This has been working good for a while. I just change the battery every so often and I’m good. My next project I want to do with a photon is connected to a Nextion display connected to a photon placed within an electrical box. With my new Ecovent system I want to have a display to send API commands to smartthings, to control the lights and fans, and also control the Ecovent room temps. It would be a decent project if I can figure it out. The photon is $20 and the Nextion is $10. Most of my projects I make working off of others projects to learn the code. Right now there’s no one who wrote a project that uses the Nextion with a photon and also no projects that send commands to smartthings from a photon. Just sending commands from smartthings to photon. If anyone knows any code let me know and I’ll get working.