Announcement

Collapse
No announcement yet.

What is the correct dim statement?

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

    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.

    #2
    That dim statment works for me, are u sure the device is dimable?
    HS3 Pro Edition 3.0.0.435 (Windows 10 vmware)
    BLOccupied:,UltraNetCam3:,weatherXML:,RFXCOM:,Current Cost 3P:,UltraGCIR3:
    DMMQTT:,Kodi:,Z-Wave:,BLRadar:,EasyTrigger:,MySensors:,BLBackup:

    Comment


      #3
      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
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #4
        Device is dimmable and...

        Running HS3 for sure.

        Comment


          #5
          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
          HS 4.2.8.0: 2134 Devices 1252 Events
          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

          Comment


            #6
            Not getting it

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

            Comment


              #7
              Where are you trying to run the script command from?
              Cheers,
              Bob
              Web site | Help Desk | Feature Requests | Message Board

              Comment


                #8
                Looks like UDMC code
                Is the lamp dimmable in HS3?
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                  #9
                  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 20, 2015, 08:35 PM.

                  Comment


                    #10
                    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
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment


                      #11
                      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
                      HS3 Pro Edition 3.0.0.435 (Windows 10 vmware)
                      BLOccupied:,UltraNetCam3:,weatherXML:,RFXCOM:,Current Cost 3P:,UltraGCIR3:
                      DMMQTT:,Kodi:,Z-Wave:,BLRadar:,EasyTrigger:,MySensors:,BLBackup:

                      Comment


                        #12
                        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 21, 2015, 09:51 PM.

                        Comment


                          #13
                          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
                          ==========================================

                          Comment


                            #14
                            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
                            Cheers,
                            Bob
                            Web site | Help Desk | Feature Requests | Message Board

                            Comment

                            Working...
                            X