News:

There is now a ChangeLog page on the wiki
New developments are added at the bottom of the page.

Main Menu

How to adjust brightness in increments?

Started by IKROWNI, February 09, 2016, 06:32:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IKROWNI

Ive been trying to find a way to adjust the brightness of vera controlled lights in increments of ~5% is this possible? I know i can set the brightness to a specific setting through voice but im creating buttons on my watch so that when i tap the button it toggles the light on/off when i slide up or down on the button i want the brightness to decrease and increase slowly.

jitterjames

The api provided by Vera does not include a method to adjust brightness, only to get or set it.

The solution should be easy enough though. Query the device to get the current level, do some simple addition or subtraction, and then set the level.