Announcement

Collapse
No announcement yet.

How to get Last Echo device?

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

    How to get Last Echo device?

    I am trying to avoid wasting time writing extra script since BLRadar already track this. Is there a way to get the Last Echo device through the Plugin?

    I want to set a condition where if the Last Echo device is something.

    Thanks!

    #2
    I'm pretty sure it is already being set to the root device.

    Been a while since I've used BLRadar. Great buy, but my needs have changed, so it's installed, but I've not used it in a while.

    --Dan
    Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

    Comment


      #3
      BLRadar creates and updates a HS device called Last Echo. Perhaps you could just reference this device?
      Nicolai L

      Comment


        #4
        Thanks guys. That's what I am trying to figure. I know there is a "Last Echo" device, but all it does is keep tracks of the Motion Sensor name.

        What i want is to use this device in the event Condition, say "Device Value Is". I don't think there is a condition for "Device String is"?

        Comment


          #5
          Got it. Yes, don't think there is any easy way of doing this.

          However, why don't you log an feature request for BLRadar on Bob's site: http://bladeplugins.no-ip.org/ListFeatureRequests.asp

          I've found him to be quite responsive to suggestions in the past.
          Nicolai L

          Comment


            #6
            Thinking about it some more, if you put in a feature request, it might even be an idea to ask for this as a trigger?
            Nicolai L

            Comment


              #7
              You can reference it from a script if that will help:


              PHP Code:
              if(hs.isOnByName(hs.deviceString("$1"))) then
                 hs
              .writeLog("debug","the last echo device is ON")
              else
                  
              hs.writeLog("debug","the last echo device is OFF")
              end if 
              Replace $1 with the device code of the last echo device.
              HS4Pro on a Raspberry Pi4
              54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
              Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

              HSTouch Clients: 1 Android

              Comment

              Working...
              X