Jump to content

How to programmatically control mini-remotes buttons


Bobby g

Recommended Posts

We like having our mini-remotes and have one in several rooms in our house.   However, any time we changed a scene related to a mini-remote, we would have to find all the mini-remotes and manually set them in update mode.  Maybe we are lazy, but having to gather my three remotes every time we made adjustments was a pain.

Instead, we created the following set of programs to control the buttons on a mini-remote.  For each button, you need to create one scene and eight programs. You never have to put the mini-remotes in update mode.

  1. Scene:  this has all the devices you want the button to control
  2. Programs:
    1. One to be used to tell if any of the devices in the scene are on or off.
    2. Seven Programs: to be used for ON, OFF, FAST ON, FAST OFF, FADE UP, FADE STOP, FADE DOWN

Is this crazy? Or is there a better way to do this?

-------

1. Create a separate Scene for each button of the mini-remote.  I use the eight-button remote and have each remote do the exact same function, and then in each of the scenes add the devices that you want to control.  Here is what the scene for the "A" button looks like:

1185810985_ScreenShot2020-02-08at7_28_43AM.png.48189c2ee3763142e33ce602b3cf0754.png

2. Next create a program for each button that is true if any light in that scene is on. This will be used in the following program to determine if the button press should turn the scene on or off.

1444980265_ScreenShot2020-02-08at8_10_58AM.png.c47ae6c1780b95e6aa1728412c38b49e.png

Here is what the program for the  "A" Scene looks like:

MiniRemote-A-Any-ON


If
	'Family Room / Family Room KeyPad / Family Room KeyPad-Outlets' Status is not Off
Or 	'Family Room / Family Room Outlets' Status is not Off
Then
	No Actions - (To add one, press 'Action')
Else
	No Actions - (To add one, press 'Action')

 

3. Finally, create a separate program for each button press.  I created a program for ON, OFF, FAST ON, FAST OFF, FADE UP, FADE STOP, FADE DOWN:

 

872273760_ScreenShot2020-02-08at7_30_33AM.thumb.png.fbcafbf915f6b615e1946801e7c10630.png

 

 FadeDown

There are three remotes at our house, so I need to check if an of the three remotes have a button press:

MiniRemote-A-FadeDown


If
	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fade Down
Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fade Down
Or 	'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fade Down
Then
	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Fade Down
Else
	No Actions - (To add one, press 'Action')

 

 

FadeStop

 

MiniRemote-A-FadeStop

If
	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fade Stop
Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fade Stop
Or 	'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fade Stop
Then
	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Fade Stop
Else
	No Actions - (To add one, press 'Action')

 

 FadeUp

 

MiniRemote-A-FadeUp

 
If
	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fade Up
Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fade Up
Or 	'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fade Up
Then
	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Fade Up
Else
	No Actions - (To add one, press 'Action')

 

 FastOff

 

MiniRemote-A-FastOff

 

If
	(
		(
		 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fast On
		Or 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fast Off
		)
	Or (
			'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fast On
		Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fast Off
		)
	Or (
			'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fast On
		Or  'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fast Off
		)
	)
	And Program 'MiniRemote-A-Any-ON' is True

Then

	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Fast Off
Else
	No Actions - (To add one, press 'Action')

 

 FastOn

 

MiniRemote-A-FastOn

 

If
	(
		(
		 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fast On
		Or 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Fast Off
		)
	Or (
			'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fast On
		Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Fast Off
		)
	Or (
			'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fast On
		Or  'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Fast Off
		)
	)
	And Program 'MiniRemote-A-Any-ON' is False

Then

	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Fast On
Else
	No Actions - (To add one, press 'Action')

 

 

Off

MiniRemote-A-Off

 

If
	(
		(
		 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched On
		Or 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Off
		)
	Or (
			'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched On
		Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Off
		)
	Or (
			'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched On
		Or  'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Off
		)
	)
	And Program 'MiniRemote-A-Any-ON' is True

Then

	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' Off
Else
	No Actions - (To add one, press 'Action')

 

 

On

MiniRemote-A-On

 

If
	(
		(
		 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched On
		Or 	'Mini Remotes / Mini Remote - 1 / Mini Remote-1-A' is switched Off
		)
	Or (
			'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched On
		Or 	'Mini Remotes / Mini Remote - 2 / Mini Remote-2-A' is switched Off
		)
	Or (
			'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched On
		Or  'Mini Remotes / Mini Remote - 3 / Mini Remote-3-A' is switched Off
		)
	)
	And Program 'MiniRemote-A-Any-ON' is False

Then

	Repeat 2 times
	Set 'Scenes / Mini Remotes Scenes / Mini-Remote-A' On
Else
	No Actions - (To add one, press 'Action')

 

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...