Smart Dimmer Plugin

Posted on
Wed May 18, 2016 10:35 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Smart Dimmer Plugin

Logo-lg.png
Logo-lg.png (18.49 KiB) Viewed 5714 times


"Single action to brighten and then dim your light"

This has two modes, default and "round robin". In default mode each execution of the action brightens the selected device up to 100% and then each execution will then dim it down to 0%. Basically you bounce between the ON state and OFF state through steps of brightness. A great single control for control pages!

NAVIGATE: Plugin Store Download | GitHub Downloads & Release Notes | Manual

__________________________________________________________________________________________________________________________________________________________________________________________

Introduction

Smart Dimmer is a simple plugin that allow you to use a single action to brighten and then dim a device.

I had a need to use a single button to dim AND brighten a device on my control pages. It is easy enough to say the button action would, say, "brighten by 25%" but once it hit 100% then I had to hit a different button to turn it off and if I wanted to go from 75% to 50% I had to turn off the device and then tap the button 2 times to get to 50%.

This has two modes, default and "round robin". In default mode each execution of the action brightens the selected device up to 100% and then each execution will then dim it down to 0%. Basically you bounce between the ON state and OFF state through steps of brightness.

In Round Robin mode you can choose to just always brighten, in which case you brighten to 100% and the next execution will turn off the device and the next will brighten again.

Configuration and Use

This is only a plugin so no devices are needed. Once installed you will use the plugin "Smart Dimmer" action instead of directly changing the brightness of your device. The action will prompt you for which dimmable device you want to control and the percentage you wish to brighten or dim it.

Screen Shot 2016-05-18 at 10.32.50 AM.png
Screen Shot 2016-05-18 at 10.32.50 AM.png (382.47 KiB) Viewed 8959 times


Examples of Use

  • Example: Dim and brighten device from a control page
    • Control Page: Create a button on the control page an instead of setting the action to dim an Indigo device as normal, instead use the EPS - Smart Dimmer and select the device you want to dim and click on the options button to specify the percentage and optionally use round robin. Now each tap of that button will result in brightening to 100% then dimming to 0 back and forth as much as you wish
Last edited by Colorado4Wheeler on Wed May 18, 2016 11:04 am, edited 1 time in total.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed May 18, 2016 11:04 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: New Plugin: Smart Dimmer

Super cool!

This will let me remove control page popup UI elements that are pretty kludgy for the use I need. Thanks!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed May 18, 2016 11:06 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New Plugin: Smart Dimmer

Approved! Thanks for another great contribution.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed May 18, 2016 11:06 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: New Plugin: Smart Dimmer

Awesome :D! Jay published it just a few minutes ago so it's ready for download. This was one of those plugins that I thought "not everyone needs this or wants it but those that do probably REALLY do" :).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Wed May 18, 2016 11:21 am
durosity offline
User avatar
Posts: 4320
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: New Plugin: Smart Dimmer

Very cool! I was just thinking the exact same as DC with the pop-up in control pages!


Sent from my iPad using Tapatalk

Computer says no.

Posted on
Wed May 18, 2016 11:35 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: New Plugin: Smart Dimmer

+1

Posted on
Wed May 18, 2016 11:57 am
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: New Plugin: Smart Dimmer

Thanks, working great!! :D

Posted on
Mon May 23, 2016 10:04 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: New Plugin: Smart Dimmer

A lot of folks may not have seen this get posted so I'm replying to bump it in the forums so you know it's out there :).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Jun 07, 2016 7:37 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin: Smart Dimmer

I just spent a good 30 minutes banging my head wondering why Smart Dimmer wasn't actually doing anything to the lights I was trying control. Finally figured out that the Lutron RRA2 plugin doesn't implement the DimBy and BrightenBy actions. D'oh. There's my coding project for tomorrow. I've got some other updates for that plugin to do anyway.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jun 07, 2016 7:56 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: New Plugin: Smart Dimmer

Haha, I've been down that road myself :). Good thing you write plugins, I'm betting you dove into my code thinking "what did he screw up here?" :P

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Jun 07, 2016 7:58 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: New Plugin: Smart Dimmer

Colorado4Wheeler wrote:
Haha, I've been down that road myself :). Good thing you write plugins, I'm betting you dove into my code thinking "what did he screw up here?" :P


:oops:

Well, I did add debug statements to make sure it was actually doing something, then I looked at what actions it was calling and finally figured out that I didn't recall seeing those in the Lutron plugin. :idea:

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jun 07, 2016 8:00 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: New Plugin: Smart Dimmer

FlyingDiver wrote:
Well, I did add debug statements


I'm working on that. My new plugins are using my "universal" library that does a lot more debugging, but that one was so quick that I didn't put a lot of effort into having a debug system. Added to my update list :).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Aug 30, 2016 2:22 pm
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Smart Dimmer Plugin

Awesome plugin that I have finally got round to trying. Only one request: would it be possible to choose the direction (for the Round Robin)? Right now it brightens with each press, but it would be great to dim with each press.

Posted on
Tue Aug 30, 2016 3:00 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Smart Dimmer Plugin

It does both automatically, so it will brighten to 100% then dim to 0% and it knows if it's at 100% or not. The only possible change would be to have a "default" so if you were at 75% it would go down instead of up.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Sep 06, 2016 4:50 am
Londonmark offline
Posts: 509
Joined: Feb 29, 2012

Re: Smart Dimmer Plugin

That could be useful...

The one other issue I have is that the dimming of some of my lights is not especially linear - so for example, the best sequence for one set of lights if brightness levels of 1, 3, 5, 10, 25, 50 100. I use a simple script to deal with that.

Who is online

Users browsing this forum: No registered users and 1 guest