Jump to content

Fan Control via KeypadLinc and Mini Remote


Recommended Posts

Posted (edited)

I'm trying to set up some programs that will control my fan speed by both the wall switch (KeypadLinc where I have OFF, LOW, MED, HIGH buttons) and a wireless mini remote where one button is used to cycle the speeds. I also have it beeping to indicate what speed it's set to since I may not be able to see the light that is lit up on the KeypadLinc.
 
Any ideas what I'm doing wrong here? Here is an example of the fan medium program. 

It seems that this works one time (from off to low or what not) but then after that somehow all the programs run at the same time, and it beeps a bunch of times
 
FanSpeed is a Integer variable

 

FanSpeed 0 is off , 1 is low, 2 medium, 3 is high
 
 

Fan Med - [ID 0023][Parent 002B]

If
        Control 'Bedroom / Fan / Fan Medium Button' is switched On
     Or-(
       |     Control 'Bedroom / Remote - Fan Speed' is switched On
       |  Or Control 'Bedroom / Remote - Fan Speed' is switched Off
       | And $FanSpeed is 1
       -)
 
Then
        $FanSpeed  = 2
        Set Scene 'Bedroom / Fan / Fan Medium' On
        Set Scene 'Bedroom / Fan / Fan Medium' Beep
        Set Scene 'Bedroom / Fan / Fan Medium' Beep
 
Else
   - No Actions - (To add one, press 'Action')
 

Edited by PaulMichaels
Posted (edited)

First, i am not sure that I can accurateli infer you full intention fron the program. Is it your intention to turn the fan from low to medium when you press the remote OFF?!

 

Personally, I would probably use scenes to control the fan via keypad and a program to relate remote commands to the scenes.

 

One think that appears suspicous is your parenthesese. (I believe the last one is in the wrong place...should be ahead of AND statement.) I am also suspicous that, somehow, your variable is defined as a STATE type, but without seeing all your programs and knowing what buttons you pressed, it would be speculation on my aprt why your other programs would be running

Edited by oberkc
Posted

 

I'm trying to set up some programs that will control my fan speed by both the wall switch (KeypadLinc where I have OFF, LOW, MED, HIGH buttons) and a wireless mini remote where one button is used to cycle the speeds. I also have it beeping to indicate what speed it's set to since I may not be able to see the light that is lit up on the KeypadLinc.

 

Any ideas what I'm doing wrong here? Here is an example of the fan medium program. 

It seems that this works one time (from off to low or what not) but then after that somehow all the programs run at the same time, and it beeps a bunch of times

 

FanSpeed is a Integer variable

 

FanSpeed 0 is off , 1 is low, 2 medium, 3 is high

 

 

Fan Med - [ID 0023][Parent 002B]

If
        Control 'Bedroom / Fan / Fan Medium Button' is switched On
     Or-(
       |     Control 'Bedroom / Remote - Fan Speed' is switched On
       |  Or Control 'Bedroom / Remote - Fan Speed' is switched Off
       | And $FanSpeed is 1
       -)
 
Then
        $FanSpeed  = 2
        Set Scene 'Bedroom / Fan / Fan Medium' On
        Set Scene 'Bedroom / Fan / Fan Medium' Beep
        Set Scene 'Bedroom / Fan / Fan Medium' Beep
 
Else
   - No Actions - (To add one, press 'Action')
 

 

What kind of variable is: $FanSpeed ?  Make sure your using an integer and not a state variable here.

 

-Xathros

Posted

Xathros, $fanspeed is an integer variable accordong to original post, but one does wonder. I suspect all programs are running because the are all triggered by the same remote button.

Posted

Completely missed that line in the original post!

 

Think we need another set of parens to make the logic logical...

If
        Control 'Bedroom / Fan / Fan Medium Button' is switched On
     Or-(
          Or-(
       |    |   Control 'Bedroom / Remote - Fan Speed' is switched On
       |    |Or Control 'Bedroom / Remote - Fan Speed' is switched Off
       |    -)
       | And $FanSpeed is 1
       -)
 

-Xathros

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37.2k
    • Total Posts
      372.5k
×
×
  • Create New...