Jump to content

fanlinc help


rana

Recommended Posts

Posted

Need help programing my Fanlinc

 

If my AC is off Fan is set to High

If
       Status  'AC - Cool Ctl' is Off
   And (
            Status  'Master Bed Room-Motor' is not  off
         Or Status  'Living Room-Motor' is not  off
       )

Then
       Set 'Master Bed Room-Motor' High
       Set 'Living Room-Motor' High

Else
  - No Actions - (To add one, press 'Action')

 

If my AC is on Fan is set to Medium

 

If
       Status  'AC - Cool Ctl' is On
   And (
            Status  'Master Bed Room-Motor' is not  off
         Or Status  'Living Room-Motor' is not  off
       )

Then
       Set 'Master Bed Room-Motor' Med
       Set 'Living Room-Motor' Med

Else
  - No Actions - (To add one, press 'Action')

 

 

 

Now how do i program if the fan is on low just leave it on low regardless of the AC being on or off

Posted

The fan is control from my iphone and wife's iphone. I like the fan to be on high when the AC is off and med when its on. and she like the fan on low all the time

 

Now if i can also set a fan mode manually and automatic when set to automatic the ac controls it. If set to manual then the iphone controls it.

 

Or when AC on then set to med. When AC off then return to previous status

Posted

Rana-

 

I'm not sure how you arrived at your existing code. For fanlinc status is only see: Responding, Off, Low, Med and High. I do not see "On" as a valid status. Given your requirement, "On" seems rather useless anyway.

 

How about this:

 

If
       Status  'AC - Cool Ctl' is Off
   And (
            Status  'Master Bed Room-Motor' is Off
         Or Status  'Master Bed Room-Motor' is Med
       )

Then
       Set 'Master Bed Room-Motor' High

Else
  - No Actions - (To add one, press 'Action')

 

If
       Status  'AC - Cool Ctl' is Off
   And (
            Status  'Living Room-Motor' is Off
         Or Status  'Living Room-Motor' is Med
       )

Then
       Set 'Living Room-Motor' High

Else
  - No Actions - (To add one, press 'Action')

 

If
       Status  'AC - Cool Ctl' is On
   And (
            Status  'Master Bed Room-Motor' is High
         Or Status  ''Master Bed Room-Motor' is Off
       )

Then
       Set 'Master Bed Room-Motor' Med


Else
  - No Actions - (To add one, press 'Action')

 

If
       Status  'AC - Cool Ctl' is On
   And (
            Status  'Living Room-Motor' is High
         Or Status  ''Living Room-Motor' is Off
       )

Then
       Set 'Living Room-Motor' Med


Else
  - No Actions - (To add one, press 'Action')

 

-Xathros

Posted

Hey Xathros the code is fixed now

 

What im trying to do when the AC turns on set the Fan to med. Only do this if the fan is on. And When AC is off then return to previous status if it was high then high if it was low then back to low

Posted

Gotcha. It will require the use of variables to remember the current fan state. Are both fans always remain in the same state or do you need to track them individually?

Posted
if it was low then back to low
Now how do i program if the fan is on low just leave it on low regardless of the AC being on or off

 

These two statements conflict with each other, as I interpret it.

 

Combining your newly-revealed requirements with your old requirements, it appears that if the fan (or fans) are off, you want them to stay off. If the fans are on low, you want them to stay on low. If so, then the only thing you end up doing is toggling the fan (or fans) between high and medium, based on the state of the AC. Given this (only two possible states), variables may not be needed.

 

Now if i can also set a fan mode manually and automatic when set to automatic the ac controls it.

 

What method or device do you wish to use to "set" your fan mode to automatic or manual? A keypad button? Time? iPhone?

 

How do you want your system to respond in each mode? I may not be smart enough to understand what it is you are trying to do.

Posted

1. track them individually

2. oberkc you got it but i would nice to return the fan to its previous status so if it was on high then say at high and if it was on low then stay at low

Posted

ok lets start over forget about everything i have posted so far.

 

If AC on then reduce fan speed by one level

If AC off then increase speed by one level

and if fan off leave it off

Posted

Not really but kind of yes the part i dont understand how i would increase speed by one level and reduce fan speed by one level

Posted

The post by Xathros has the answer. Use Variables to note and remember what the FanLinc Motor speed is and what the next should be.

 

Example

 

Variable X represents current FanLinc Motor speed.

0 = Off

1 = Low

2 = Med

3 = High

 

The If AC On Ands a check of variable X greater than 0 Then X -= 1 (to reduce motor speed one level)

Run Program2

 

The If AC Off Ands a check of variable X greater than 0 And not greater than 2 Then X += 1 (to increase motor speed one level)

Run Program2

 

 

 

Program2

 

If X = 1

Then

Set FanLinc Motor to Low

Else

Run Program3

 

Program 3

 

If X = 2

Then

Set FanLinc Motor to Med

Else

Run Program 4

 

 

Program 4

 

If X = 3

Then

Set FanLinc Motor to High

Else

Null

 

This is a rough concept but should convey one way to accomplish task. Xathros may well have a better approach since using Variables is his idea to begin with

Posted

First of all think you guys for all of your help. this is what i ended up doing

 

From High to Med

If
       Status  'AC - Cool Ctl' is On
   And Status  'Master Bed Room-Motor' is High

Then
       Set 'Master Bed Room-Motor' Med
       $High2MedMBR  = 2

Else
  - No Actions - (To add one, press 'Action')

 

 

And from Med to High

If
       Status  'AC - Cool Ctl' is Off
   And $High2MedMBR is 2

Then
       $High2MedMBR  = 0
       Set 'Master Bed Room-Motor' High

Else
  - No Actions - (To add one, press 'Action')


 

I also did the same thing for Med to Low and its working out just fine now

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.1k
    • Total Posts
      371.5k
×
×
  • Create New...