Announcement

Collapse
No announcement yet.

What is the correct dim statement?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blade
    replied
    That is not the debug log
    It is called BLRadar-Detailed.log and will be in your HS3 root folder
    I need you to run the script command when debug is on and then turn it off and attach the log zipped

    Leave a comment:


  • BMXdad
    replied
    Understanding code

    This is the original code that is in the sensor for turning a light on after sunset then off after a period of time of no motion.

    All I am trying to do is get the light to dim instead of just turning on.

    UDMC code in BLradar:
    ==========================================
    blradar.PluginFunction("NewDelayedEventForNoEcho", new Object(){"Office Wall Lamp Control", "Office Wall Lampff", 5, ""})
    dim ntime as Date = TimeValue(DateTime.Now)
    if ntime >= TimeValue((hs.SunsetDt.AddHours(-1))) then
    blradar.PluginFunction("ControlDevice", new Object(){"Office Wall Lamp", "on", 0})
    end if
    ==========================================

    Leave a comment:


  • BMXdad
    replied
    Tried checking log and got this.

    Originally posted by Blade View Post
    Try this:

    1. Turn on debug logging in BLRadar
    2. Then run the script command in UDMC
    3. Turn off debug logging

    Attach the BLRadar-Detailed.log file zipped and I will take a look
    Now I am even more confused. I turned logging on and enabled device loging.

    Ran the test udmc and did motion in the room with and without the dim statement and got this result.

    --------------------------------------------------------------------------------
    Dec-21 9:33:29 PM Event Event Trigger "Motion Controlled Lights Basement Work Light Off"

    Dec-21 9:27:11 PM BLRadar Info BLRadar Debug Logging Disabled!

    Dec-21 9:21:19 PM Warning Lost 2 seconds, maybe system busy, catching up...

    Dec-21 9:21:16 PM Warning Lost 2 seconds, maybe system busy, catching up...

    Dec-21 9:20:28 PM Warning Lost 14 seconds, maybe system busy, catching up...

    Dec-21 9:15:10 PM BLRadar Info BLRadar Debug Logging Enabled!

    Dec-21 9:11:14 PM Warning Lost 2 seconds, maybe system busy, catching up...

    Dec-21 9:10:04 PM Device Control Device: First Living Room Heating 1 Setpoint to 70 F (70)

    --------------------------------------------------------------------------------------

    Now I have no idea what is going on. I even put the udmc back to just on and there still was no data in the hs log or is there a different log for BLradar?
    Last edited by BMXdad; December 21st, 2015, 09:51 PM.

    Leave a comment:


  • dmurphy
    replied
    One thing I remember is you can't dim to 0 or 99 it doesn't error it just does nothing all other dim values cause a hs capi value log entry

    Leave a comment:


  • Blade
    replied
    Try this:

    1. Turn on debug logging in BLRadar
    2. Then run the script command in UDMC
    3. Turn off debug logging

    Attach the BLRadar-Detailed.log file zipped and I will take a look

    Leave a comment:


  • BMXdad
    replied
    X10 dimmable

    Yes it is dimmable and this is a udmc code in blradar. HS3 pro.

    Some are X10 wall switches and some are X10 modules. And some will become Zwave modules.
    Last edited by BMXdad; December 20th, 2015, 08:35 PM.

    Leave a comment:


  • Blade
    replied
    Looks like UDMC code
    Is the lamp dimmable in HS3?

    Leave a comment:


  • Blade
    replied
    Where are you trying to run the script command from?

    Leave a comment:


  • BMXdad
    replied
    Not getting it

    This looks like a HS2 statement and it does not work.

    Leave a comment:


  • sparkman
    replied
    Originally posted by BMXdad View Post
    Running HS3 for sure.
    Then the syntax should be something like:

    Code:
     hs.PluginFunction("BLRadar", "", "ControlDevice", new Object(){"Office Wall Lamp", "dim", 60})
    This is untested so you may need to adjust a bit.

    Cheers
    Al

    Leave a comment:


  • BMXdad
    replied
    Device is dimmable and...

    Running HS3 for sure.

    Leave a comment:


  • sparkman
    replied
    Originally posted by BMXdad View Post
    I have tried to modify this code to dim a light:

    blradar.PluginFunction("ControlDevice", new Object(){"Office Wall Lamp", "on", 0})

    By doing this:

    blradar.PluginFunction("ControlDevice", new Object(){"Office Wall Lamp", "dim", 60})

    But this does not seem to work. What am I missing?

    Thanks.
    Are you running HS2 or 3? For HS3, the syntax is different.

    Cheers
    Al

    Leave a comment:


  • dmurphy
    replied
    That dim statment works for me, are u sure the device is dimable?

    Leave a comment:


  • BMXdad
    started a topic What is the correct dim statement?

    What is the correct dim statement?

    I have tried to modify this code to dim a light:

    blradar.PluginFunction("ControlDevice", new Object(){"Office Wall Lamp", "on", 0})

    By doing this:

    blradar.PluginFunction("ControlDevice", new Object(){"Office Wall Lamp", "dim", 60})

    But this does not seem to work. What am I missing?

    Thanks.
Working...
X