Jump to content

One Button KPL Fan Control


tallngro

Recommended Posts

Posted

I did a quick search on the forum and couldn't find someone that has a similar scenario to use the FanLinc on one button. I have been running this for about a week now. It's been working nicely.

 

I have a scene named "Fan", with the FanLinc and non toggle KPL button for status purposes. I also use a RemoteLinc in the room to control the fan in similar fashion.

 

The KPL button is "MB_B Fan Control".

The RemoteLinc button is "MB_RMC".

 

If there is some code can be cleaned up, please don't hesitate to suggest.

 

The programs are as follows:

 

Click to High:

If
       Status  'Second Level / Devices / Master Bedroom / MasterBed Fan' is Off
   And-(
      |     Control 'Second Level / Devices / Master Bedroom / MB_RMC - Fan' is switched On
      |  Or Control 'Second Level / Devices / Master Bedroom / MB_B Fan Control' is switched On
      -)
    Or-(
      |     Status  'Second Level / Devices / Master Bedroom / MasterBed Fan' is Low
      | And Control 'Second Level / Devices / Master Bedroom / MB_RMC - Fan' is switched On
      -)

Then
       Set Scene 'Second Level / Scenes / Fan' On

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

 

Click to Medium:

If
       Status  'Second Level / Devices / Master Bedroom / MasterBed Fan' is High
   And-(
      |     Control 'Second Level / Devices / Master Bedroom / MB_RMC - Fan' is switched On
      |  Or Control 'Second Level / Devices / Master Bedroom / MB_B Fan Control' is switched On
      -)

Then
       Set 'Second Level / Devices / Master Bedroom / MasterBed Fan' Med

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

 

Click to Low:

If
       Status  'Second Level / Devices / Master Bedroom / MasterBed Fan' is Med
   And-(
      |     Control 'Second Level / Devices / Master Bedroom / MB_RMC - Fan' is switched On
      |  Or Control 'Second Level / Devices / Master Bedroom / MB_B Fan Control' is switched On
      -)

Then
       Set 'Second Level / Devices / Master Bedroom / MasterBed Fan' Low

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

 

Click to Off:

If
       Control 'Second Level / Devices / Master Bedroom / MB_RMC - Fan' is switched Off
    Or-(
      |     Status  'Second Level / Devices / Master Bedroom / MasterBed Fan' is Low
      | And Control 'Second Level / Devices / Master Bedroom / MB_B Fan Control' is switched On
      -)

Then
       Set Scene 'Second Level / Scenes / Fan' Off

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

Guest
This topic is now closed to further replies.

  • Recently Browsing

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

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...