No announcement yet.

Can I hold a room at a particular light level with Easytrigger?

  • Filter
  • Time
  • Show
Clear All
new posts

    Can I hold a room at a particular light level with Easytrigger?

    I am trying to wrap my head around using Easytrigger to maintain a constant lux value in our TV room if the TV is on. The trigger would be comparing a device that reports the lux value in the room to a "constant lux value" and makes a decision to either increase the percentage of the room lights or decrease it. Thus far, my attempts seem to return an error based on string vs. integer.
    HomeSeer Version: HS3 Pro Edition
    Operating System: Microsoft Windows 10 Pro - Work Station

    Enabled Plug-Ins: AmbientWeather | BLLock | BLUPS | Device History | EasyTrigger | MeiHarmonyHub | 3.0.6681.34300: UltraCID3 | 3.0.6644.26753: UltraLog3 | 3.0.6554.33094: UltraMon3 | weatherXML | Z-Wave | 3.0.51: HS Touch Designer | Z-Seer+

    Spitballing a bit here, but maybe this would work?

    IF Repeating trigger every X seconds
    AND IF TV is on
    AND IF dimmer > 0
    AND IF dimmer < 100 (or whatever max dim value is)

    THEN Set dimmer to expression: if (lux_val > lux_constant, $DEVICEVALUE - 1, (if (lux_val < lux_constant, $DEVICEVALUE + 1, $DEVICEVALUE))

    And check option: “Send command only if expression results in a new value”.

    edit: changed last argument in expression from 0 to $DEVICEVALUE.