I want to set a "rule" if you will that if ANY dimmer in the house is set >90% then the dimmer is set back down to =90%. OR make it so that its not possible to set the brightness over 90%. I'm using the GE/Jasco Dimmers, and the CreeLR6/EcoSmart LED downlights.For Example… Someone holds the “up” button on the dimmer it gets past 90%, when they let go, I want it to drop back down to 90%, OR never go above 90% in the first place…
In case your wondering “why”… I purchased over 50 of the Cree LR6, AKA Home Depot EcoSmart LED retrofit downlights, and they CANNOT be set at a brightness over 90% (with the GE dimmers at least) otherwise they Flicker and dim up and down to about 80% brightness… real fun…
This “global rule” i’m dreaming of will solve all my problems. I’ve researched the advanced settings on the GE switches and cannot find any type of brightness governor.
As always any help is appreciated. Thanks!
So after a month of searching for this answer, waiting on MCV to respond to my ticket (too busy with UI5 it seems), and diving deep into a lot of code that I was way over my head, I finally stumbled onto a post and used their similar situation to figure it out!
Thanks to Guard and ZMaF (http://forum.micasaverde.com/index.php?topic=5300.0)
Here is my modified code, there is some unused code / variables in there that I wanted to leave for future reference or more advanced scripting
This must be set in your Startup LUA which will create this globally
Dashboard - Mios Developers - Startup LUA
[code]
–Original Source: http://forum.micasaverde.com/index.php?topic=5300.0
–Currently Dimmers Flicker around 90% some at 93 so were setting all dimmers/led switches to 90% if they ever exceed that %
–Set this line for each device you want governed by this rule
luup.variable_watch (‘no_dimming’, ‘urn:upnp-org:serviceId:Dimming1’, ‘LoadLevelStatus’, 65)
luup.variable_watch (‘no_dimming’, ‘urn:upnp-org:serviceId:Dimming1’, ‘LoadLevelStatus’, 86)
–These lul variables can be used for more advanced settings so I wanted to keep them in this post
function no_dimming (lul_device, lul_service, lul_variable, lul_value_old, lul_value_new)
–If ANY of the devices watched in the first line(s) are set over 90% (which causes the flickering)
if ( tonumber( lul_value_new ) > 90 ) then
luup.call_action(‘urn:upnp-org:serviceId:Dimming1’, ‘SetLoadLevelTarget’, { newLoadlevelTarget=‘90’ }, lul_device)
–Take it back down to 90 (flicker free max)
else
end
end[/code]
Now there does seem to be some bug (or feature?) that if a switch is “held” for a period longer than 1 second it gets excluded from triggering a scene, and this is no exception, therefore if someone does hold this button over 1 second and it sets over 90% it will stay there :-\ but if you hit the up button again, the rule is caught and it drops back down to the 90% value in the code…
I’m hoping this will help others out, and also create some other useful settings, or cool scenarios. One thing I want to implement is to avoid a “range” of level for example, I have a bank of 4 leds that will flicker between 55% and 67% so maybe someone can help me with the if/then statement for only a select device while still being part of this code since it’s part of the startup lua.
Thanks all!