Announcement

Collapse
No announcement yet.

how to show last zone active

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

  • how to show last zone active

    I am trying to control audio switching biased on the last zone that was active, is there a script command to show which was the last zone that was marked as active ?, something like last echo but with zones?
    detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

  • #2
    Try 2.0.108 in the HS3 updater
    I added a new scripting call called "LastEchoSensor" which will return a sensor object for the last echo sensor processed
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


    • #3
      right but isnt that the same as the last echo? i wanted the last zone ( the ones you create using a bunch of sensors and define a zone with them )
      detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

      Comment


      • #4
        Try 2.0.109
        I added a new scripting call called "LastActiveZone" which will return a sensor object for the last active zone processed
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment


        • #5
          LOL that was fast, can you give me an example of the scripting line so i can use it

          thanks
          detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

          Comment


          • #6
            See the help web page for example code
            Cheers,
            Bob
            Web site | Help Desk | Feature Requests | Message Board

            Comment


            • #7
              Ok i must be dumb cause i am just NOT getting it

              Dim lastZone As Object = hs.PluginFunction("BLRadar", "", "LastActiveZone", Nothing)

              great so you have this as an object, how do it get either the device, or name out of it so i can actually use this in a script and act or match it with my audio zones?

              hs.SetDevicestring (405,Sensor.DeviceCode,true)

              even for this to work would be great
              detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

              Comment


              • #8
                lastZone.Location
                lastZone.Name
                lastZone.Ref

                hs.SetDevicestring (405,lastZone.DeviceCode,true)
                Cheers,
                Bob
                Web site | Help Desk | Feature Requests | Message Board

                Comment


                • #9
                  Thanks Blade, got that, BUT how do i trigger this if a sensor changes, i tried doing a trigger on a value change on last echo but then realized the value dosnt change just the string, you don't have a last zone echo so I am trying to trigger the script to update a device with the last zone when the last echo changes, but cant seem to find an easy event to get this to happen. any ideas?
                  Last edited by collegeboyslive; September 9th, 2015, 06:46 PM.
                  detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

                  Comment


                  • #10
                    You should be able to trigger on a value change
                    100 for ON and 0 for OFF unless you are using value triggered sensors
                    Cheers,
                    Bob
                    Web site | Help Desk | Feature Requests | Message Board

                    Comment


                    • #11
                      script

                      Originally posted by collegeboyslive View Post
                      Thanks Blade, got that, BUT how do i trigger this if a sensor changes, i tried doing a trigger on a value change on last echo but then realized the value dosnt change just the string, you don't have a last zone echo so I am trying to trigger the script to update a device with the last zone when the last echo changes, but cant seem to find an easy event to get this to happen. any ideas?
                      Hello ,
                      Did you manage to have ascript that works ?
                      Can you share as I would like to do something similar?
                      Thanks

                      Comment

                      Working...
                      X