New home, new switches - need advice on fan/lighting control.

So, you like it when I talk nerdy. ;D[/quote]

;D

@priest, could you share your Lua code? I’m about to set something up with a scene controller with a fan and this would be perfect.

[quote=“integlikewhoa, post:11, topic:196857”]Probley not enough demand. Aeotec don’t even make a fan controller period, let alone one that would have a wall switch on the wall and a remote micro controller up in the fan. Then you need to make sure its not a DC fan motor. Probley would fit a few people perfectly but not sale nearly as much as just a normal switch yet be a total new design product for them.[/quote]The Aeon nano dimmers allegedly support fan speed control (look at the bottom of the page where it lists this:
https://aeotec.com/z-wave-light-dimmer-switch

I just bought one and am going to try it next week in a new fan, and use a leviton four button scene controller to control it.

@priest, could you share your Lua code? I’m about to set something up with a scene controller with a fan and this would be perfect.[/quote]

I did modify it slightly, but it does the same function I described before. Change dID to whatever your device ID number is and thats it

local dID =95 local level = tonumber(luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",dID),10) if level < 1 then level = 32 elseif level >= 67 then level =0 else level = level + 32 end local args = {} args["newLoadlevelTarget"] = level luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", args, dID)

As I said, that is a modification of the one I use to step up a dimmer. I have two scenes for the dimmer, one stepping up and one stepping down. they both make some large jumps, but for my light and our use this works. It would be easy to make any of the jumps smaller, or different. you could also do like I do in the fan one and make it cycle back off, but I like the two separate scenes for up and down myself.

local dID =23 local level = tonumber(luup.variable_get("urn:upnp-org:serviceId:Dimming1","LoadLevelStatus",dID),10) if level < 5 then level = 5 elseif level >= 80 then level =100 else level = level + 20 end local args = {} args["newLoadlevelTarget"] = level luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", args, dID)

So it jumps from off to 5%, which is nightlight level. Then it jumps 25%, 45%, 65%, 85%, 100%. anything above 80% is prett close to 100% so thats hy the jump there, but I could have made it jump if above 60 instead if I wanted. With any scene like this I’ve set up a “low case” a “high case” and something do do if it’s anywhere in the middle.

Thanks @Priest