Author Topic: How to adjust brightness in increments?  (Read 1507 times)

0 Members and 1 Guest are viewing this topic.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
How to adjust brightness in increments?
« on: February 09, 2016, 06:32:43 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: How to adjust brightness in increments?
« Reply #1 on: February 10, 2016, 09:03:50 AM »
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.