Announcement

Collapse
No announcement yet.

Avoid dimming value <0 and >99%

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Avoid dimming value <0 and >99%

    Hi,

    Im using 'Set Device to Another Device to dim or bright a lamp on (up./down) Keypress. In this example dimming 17%. How can i avoid that the value becomes negative ( <0 or when using +17 the value becomes >99%) So the values must be locked to min 0% and max 99%. I think with some regular expression i can do?

    Click image for larger version

Name:	dim.JPG
Views:	135
Size:	33.7 KB
ID:	1345661

    Thanks,

    Walter

    #2
    Try this :

    Then EasyTrigger "Set device to expression"

    "Begane grond Woonkamer..." Max($DEVICEVALUE-17,0)

    And

    "Begane grond Woonkamer..." Min($DEVICEVALUE+17,99)

    Comment


      #3
      Hi Michel,

      This was exactly what i needed and its working Thanks for your help! I just starting with EasyTrigger and has some learningcurve

      Walter

      Comment

      Working...
      X