cancel
Showing results for 
Search instead for 
Did you mean: 

Negative values for realtive changes

jabirf1
Community Member

Hi, I have scripted an automation to make my fish bowl light decrease in relative brightness dependant on the status of another device. However, the automation seems to ignore the negative (-) sign and hence, cause the light to brighten. My script is below. How do i make the automation consider the value as negative?

actions:

      - type: device.command.BrightnessRelative

        brightnessRelativePercent: -1

        devices: Fish Bowl Light - Aquarium

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @jabirf1 ,

Thank you for reaching out to us with your request. We were able to reproduce your issue at our end and I would recommend submitting a feedback from the Automation Script Editor. Also, please include a screenshot of the editor that shows the script. 

You can also open a feature request in this regard on the public issue tracker

View Recommended Answer in original post

4 REPLIES 4

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @jabirf1 ,

Thank you for reaching out to us with your request. We were able to reproduce your issue at our end and I would recommend submitting a feedback from the Automation Script Editor. Also, please include a screenshot of the editor that shows the script. 

You can also open a feature request in this regard on the public issue tracker

ActuallyAndy
Community Member

Is there any status on this bug? I’m experiencing the same issue. 

The status remains same. Tech support just informed me that it is not possible to have a dimming function with the relative brightness command. As you mentioned, it seems to be a bug more than anything else, and it should an easy straight forward fix, as it clearly works well for positive integers, and only the bug causing the code to ignore (-) sign needs to be address. But, they do not even seem to be interested in looking into it.

-David-
Community Member

Yes, this issue is of interest for me as well.