Announcement

Collapse
No announcement yet.

BLRadar - NewDelayedEventForNoEcho

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

    BLRadar - NewDelayedEventForNoEcho

    Hi

    Currently trialling BLRadar on HS 2.5.0.49.

    Like most users, I was using Doomotion and am transferring over the custom code.
    I have a motion sensor that when it is night time and triggered ON, turns a light and stays on for 4mins. If the sensor is retriggered than the light stays on, If leave the room, the light goes off after 4min.

    I was using the following UDMC

    hs.ExecX10ByName("Den Light", "On")
    hs.RemoveDelayedEvent("","Den Lamp Control Delay")
    hs.Plugin("BLRadar").DMC("Den Lamp Control Delay", "Den Lightff", 4)


    But I keep getting the following error

    NewDelayedEventForNoEcho() - There was an issue validating the device command string for this new delayed event (Den Lightff)


    Can you help me pls?

    Regs

    Liam

    #2
    This is a sample of one of mine from HS2
    I had the code in the ON code section

    Code:
    blradar.NewDelayedEventForNoEcho("Master Bathroom Sink Control", "Master Bathroom Sink Light:off", 5)
    hs.ExecX10ByName("Master Bathroom Sink Light", "DDim", 100)  ' full light
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Hi,

      Thanks for the quick reply. I use your code and changed it so it references my device name.
      The error is still appearing. The event does not appear to be created. The script option is ticked in the options sections.
      Not sure what the next step is.

      Regs

      Comment


        #4
        The device name you are referencing in the call must exist in HS

        In this code:

        Code:
        blradar.NewDelayedEventForNoEcho("Master Bathroom Sink Control", "Master Bathroom Sink Light:off", 5)
        The device name is "Master Bathroom Sink Light"
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


          #5
          blradar.NewDelayedEventForNoEcho("Den Light Control", "Den Lightff", 4)
          hs.ExecX10ByName("Den Light", "DDim", 100) ' full light

          Den Light is the device name and is created in HS (D1).
          Den Light Control is the name of the event. The motion sensors device name is Motion and is D4.

          Regs
          Liam

          Comment


            #6
            The device name you use has to be the full name including the location

            NewDelayedEventForNoEcho will create the event for you with the name you specify (which is Den Light Control in your case)

            In HS3 this call is complete redone and does not use events anymore. The plugin takes care of it all itself. The call is still the same but works completely different
            Cheers,
            Bob
            Web site | Help Desk | Feature Requests | Message Board

            Comment


              #7
              Thanks,

              So I should include the location in the call

              So it now becomes

              blradar.NewDelayedEventForNoEcho("Den Light Control", "Den Den Lightff", 4)
              hs.ExecX10ByName("Den Light", "DDim", 100) ' full light

              Den is the location name. ??

              Sorry for been slow on this but I need to get this right

              Comment


                #8
                Try this:

                Code:
                blradar.NewDelayedEventForNoEcho("Den Light Control", "Den Den Lightff", 4)
                hs.ExecX10ByName("Den Den Light", "DDim", 100) ' full light
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                  #9
                  Hi,

                  I was away for a couple of days and just getting back to this problem. At the moment my UDMC is

                  If hs.Plugin("BLRadar").NightTime() Then
                  hs.ExecX10ByName("Den Den Light", "On")
                  hs.Plugin("BLRadar").NewDelayedEventForNoEcho("Delayed Event Turn OFF Den Light", "Den Den Lightff",4)
                  End If

                  THis will turn on the light when I walk into the room (at night time) and keep it on while I am in the room. However, it does not turn off the light 4mins after I have left the room. It created the delayed event but does not seem to issue it. THe light will turn off/on from the device status page ok.

                  Any ideas?

                  Regs

                  Liam

                  Comment


                    #10
                    Very odd
                    Try this:

                    Code:
                    If blradar.NightTime() Then 
                        hs.ExecX10ByName("Den Den Light", "On") 
                        blradar.NewDelayedEventForNoEcho("Delayed Event Turn OFF Den Light", "Den Den Light:off",4) 
                    End If
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment


                      #11
                      Thanks,

                      Tried that but still not working. When the delayed off event is created, I can go into the action tab of the event and use the TEST button to execute the action and the lights go off.
                      I noticed as well in the TRIGGER tab that the Calendar date is set to american date format 3/27/2014 where the PC is set up for European date format.
                      There is also no error or log message in the homeseer log

                      The only good point is that I brought the plugin tonight as I am confident we will get this sorted

                      Regs
                      Liam

                      Comment


                        #12
                        Try 1.0.100 in the HS2 updater and let me know

                        I added a new option on the options page where you can select the date format. The default is mm/dd/yyyy
                        It will give you the option of dd/mm/yyyy
                        Cheers,
                        Bob
                        Web site | Help Desk | Feature Requests | Message Board

                        Comment


                          #13
                          Hi,

                          New version works. Well done. Super response time.

                          Full update later.


                          Thanks

                          Liam

                          Comment

                          Working...
                          X