Dimmer brightness over-triggering


#1

1) Problem description
I tried using the max brightness piston example here, but it seems to be triggering a) when I set the brightness to any level, and b) multiple times. Note that I replied with my problem on the thread, but since it’s an example thread I’d figure I’d re-post to the help forum.

2) Expected behavior
All dimmable lights automatically get set to 80% only when they’re set to above 80%.

3) Actual behavior
When a light is dimmed to any level it’s re-set to 80% (twice for some reason).

4) Piston

5) Logs
image


#2

Seems like that could happen if dimmer 1 was above MaxDimmer and you adjusted dimmer 2. Dimmer 1 would satisfy your “if any of” condition and your current event device would be dimmer 2.


#3

Ah, thanks so much; I think this was exactly the issue. So what I have is basically “on any dimmer change, if any dimmer is above 80%, change the dimmer that changed to 80%”.

It seems like turning all lights on, setting them to at most 80%, then this piston would work as I intend, although perhaps a little inefficiently as any dimmer change would check all dimmer levels.

I think the “rises above” trigger might be a bit better. Instead of triggering on any being above 80%, it triggers on any rising above 80%. I believe that trigger implicitly makes the current device(s) the one(s) that caused the trigger.

It seems to work after some quick testing, although I’m still a little new to WebCoRE so let me know if you have any advice or see any flaws (functionally or perf-wise).


#4

I think what you modified there should work just fine - good fix! :slight_smile:


#5

Sorry for beeing late to the party :slight_smile:

I have used mine for a long time, how did the first light end up above 80% in the first place?
Is it a group of lights entering above 80% maby?
Curious :smiley:


#6

So the reason it didn’t work for me is because when I initially set the Piston up, all lights were already at 100%. So when I changed one of them at all to any dimness, the condition was still met since the condition was if any are above 80%, and there were other lights that I hadn’t changed yet which were. So that caused the one that I changed to always be reset to 80% no matter what. If I had gone and set all my lights to 80%, I think it would start working as expected, and why it’s working for you, although maybe slightly inefficiently as each time any one is changed, it checks if any are above 80%, where I would think the “rises above” trigger may not. A little bit of a guess on my part though and not likely noticeable to any degree.