[OBSOLETE] 3 Speed Ceiling Fan Thermostat

Hi Scott, been busy on another device using the zigbee ceiling fan control for the time being and I haven’t looked closer at that yet but it is absolutely on the radar.

Any updates? It’s been over 3 weeks. Thanks!

I’m also experiencing the same behavior as @Vette0067, in two different rooms with two different fans/motion sensors. One room has the GE 12730 fan switch, using Ecolink PIRZWAVE2-ECO-2 for the motion sensor and Ecobee 3 thermostat for the temp sensor. The second room is using the GE 12730 fan switch, and Smartthings SmartSense Motion Sensor w/ temp sensor (2014 model). The fan stops when the temp is below the threshold, but never when the motion stops.

I copied the code into SmartApps and Published…when i click on “New Fan Automation” it forever loads and does not take me into the settings. Anyone else experience similar issues?

I have the same issue.
It looks like a bug on SmartThings latest app for Iphone I guess.

Here’s a thread about it:
https://community.smartthings.com/t/unable-to-install-custom-smartapps/92352/5

So I found a weird workaround.
If you tap New Fan Automation and wait until your iphone screen sleep ( be total black) than you unlock the fone again so the Smartthing App will come up. On my case the Automation was created without any name so I clicked and worked.

Give it a try :slight_smile:

I am using the latest dth released in 4/2017. My tile is stuck in adjusting. Any ideas?

Any way of adding a section for only running this app auto fan control when the thermostat is set to sit condition or when outside temp is above a a set degree. App works great for summer but in the winter it turns on right as the heat shuts off and I don’t really need it to cool me during the winter.

I discussed this with the app developer a while back, and he wasn’t interested at the time in the crossover. Ultimately, I ended up writing a webcore piston to replicate the functionality of this and integrate HVAC (ecobee) monitoring. I have it setup to monitor the thermostat set-point, and adapt temperature triggers accordingly, but only in certain HVAC modes.

Hi, just checking if the motion issue was resolved cause I am having the same issue. No motion does NOT turn off the fan. Everything else seems to work just fine

I add some new features and fix the motion sensor as well take a look let me onow if its working for you:

Victor,

Thanks for the fast reply but this doesn’t seem to support my ZigBee 4 Speed Ceiling Fan device (Home Decorators Ceiling Fan/Light Controller MR101Z). I seems that this one is for the 3-Speed designed for the GE Z-Wave and I have the 4-Speed Zigbee MR101Z by Home Depot. Is it possible that it could be modified to support the 4 speed Home Depot version?

Yes it’s possible. Usually a 3 speed is handled like 1 to 33 is low, 34 to 65 is Medium and 66 to 99 is High. Can you please check how yours work? Is it 1 to 25 is low, 26 to 50 medium, 51 to 75 is high and 76 to 99 super high?
Can double check the right values testing it? I would like to know if it goes until 24 or 25 to go to the next level. This is just a sanity check.

I dont exactly know how to check those settings but here is a link to the app that I’ve been using. It works well except for the motion part

Hi Victor,

I tried to edit your code to make the 4 speed version work but I was unable to get it working. Can you help?

Hi,

I’ll help for sure. I was busy during the weekend.
As soon I have a free time I’ll take a look on it.

I would need more time to understand what the fanDimmer.setFanSpeed really does behind the scenes. I don’t have too much time to test it during this week so I duplicate the code.

There is a small bug that I couldn’t fix yet. When you select to create a “New Fan Automation” the mobile app start spinning and never finish, it get stuck. To workaround it you lock your phone pressing the power button and unlock it again you will see that a new ChildApp will be created. Click on that and follow the wizard.

I new option was added. If you are using 4 speed fan (which is your case) you have to enable the option “4 speed fan control”.

Can you please give it a try?
Here is the new link:

Don’t forget to enable the debugging log option and send it to me in case it doesn’t work.

1 Like

Thanks again Victor,

I tried it but it wouldn’t allow me to select the fan control hardware so I made the following change…

section(“Select the ceiling fan control hardware…”){
//input “fanDimmer”, “capability.switchLevel”,
input “fanSwitch”, “capability.switch”, multiple:false, title: “ZigBee Fan Control device”, required: true
}

And it seems to work. I will continue to test it and let you know

Sorry about that. It probably happened because your switch was not advertised as a dimmer switch.
Let me know if you have additional problem.

Victor,

It seemed to have been working fine until just now. So I deleted the app and tried to add it back but I get an error message (Error saving page). below is the log…

7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def HASBEENRECENTMOTION - elapsed:96160 threshold:1800000
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: error java.lang.NullPointerException: Cannot get property ‘currentSwitch’ on null object
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def HASBEENRECENTMOTION - motionState value:inactive
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def HASBEENRECENTMOTION - called
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def BETWEENSUNSETSUNRISE - called
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def SOMEONEPRESENT - called
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def BETWEENSUNSETSUNRISE - returning isGoodTime:false
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def HANDLETEMPERATURE - handleTemperature called: null
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def BETWEENSUNSETSUNRISE - betweenSunsetSunRise: SunRiseTime: Sun Feb 04 12:04:00 UTC 2018 SunSetTime: Sun Feb 04 23:07:00 UTC 2018 now: Mon Feb 05 03:56:05 UTC 2018 between: true
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def INICHILD - Subscribing sunsetsunrise
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def INICHILD - Subscribing modes
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def INICHILD - Subscribing motionSensor
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def INICHILD with settings: [fanDiffTempString:2.0, autoMode:YES-Auto, fanSwitch:Ceiling Fan, sunsetsunrise:true, speedfan4:true, setpoint:76, tempSensor:Temp/Motion Sensor, idelog:true, motionSensor:Temp/Motion Sensor, minutesNoMotion:30, modes:[Home, Night]]
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def INITIALIZE - initChild
7eb0ec8f-b1b5-474a-9f31-3fda4cb39ffd 10:56:05 PM: debug def UPDATED with settings: [fanDiffTempString:2.0, autoMode:YES-Auto, fanSwitch:Ceiling Fan, sunsetsunrise:true, speedfan4:true, setpoint:76, tempSensor:Temp/Motion Sensor, idelog:true, motionSensor:Temp/Motion

I dont know why it suddenly stopped working.

Victor,

I copied your code again and now it works again… must have been something wrong in my version