No announcement yet.

How to detect if the LCD Backlight is ON/OFF

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to detect if the LCD Backlight is ON/OFF

    I am updating my LCD panels if device values change but also have a motion sensor that controls the backlight.

    I like to stop updating the text on the LCD if the backlight is off. I tried to use the Status and Value of the LCD:Line-1 device but cannot figure out what is happening. It seems the behavior is not consistent and most of the time the value is just 100 regardless if the display is on or off. Off course I can use a virtual device but rather include a condition that is directly based on the device value.

    Can somebody explain the different values for the Line-1 device?

  • #2
    While the control devices are on the LCD Line 1 device there is no status return for the LCD backlight. The only way I could track it is to have a virtual device that I change status whenever I control the LCD backlight. There are 2 events that change the LCD backlight whenever the status of the virtual device is changed. I have made any event that controls the backlight use the virtual device rather than directly controlling it with the line 1 controls to make sure they stay in sync.
    Randy Prade
    Aurora, CO

    PHLocation - Pushover - EasyTrigger - UltraECM3 - Ultra1Wire3 - Arduino