Announcement

Collapse
No announcement yet.

Checking if device address exists?

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

  • davidcald
    replied
    Originally posted by jon00 View Post
    Odd...If you updated, did you replace the Jon00DeviceViewer.aspx file?
    Looks like that was it all good now thanks!

    Leave a comment:


  • jon00
    replied
    Odd...If you updated, did you replace the Jon00DeviceViewer.aspx file?

    Leave a comment:


  • davidcald
    replied
    Originally posted by jon00 View Post
    Hey Jon-
    YES I have your utility installed! It's one of my many issues that with HS there's so many plugins and scripts and addons that I lose track of things I've installed for good reason and forget the reason. Anyway, I just ran the utility (v1.0.5) and get this error:

    Error in Main Block 1: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) at System.Array.GetValue(Int32 index) at Microsoft.VisualBasic.CompilerServices.Symbols.Container.Get ArrayValue(Object[] Indices) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.Intern alLateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, ResolutionFailure& Failure, Boolean[] CopyBack) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.Object LateInvokeDefault(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, Boolean[] CopyBack) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateIn dexGet(Object Instance, Object[] Arguments, String[] ArgumentNames) at scriptcode13.VBWrapper.Main(Object MyData)

    Leave a comment:


  • jon00
    replied
    Originally posted by davidcald View Post
    A question related to this... Is there a script or easy method to generate a simple list of devices and their refs and address? Something that I can use to sort or search on? I don't see in the HS4 UI such a simple data grid view with selectable headers for sorting.
    How about this? https://forums.homeseer.com/forum/3r...for-homeseer-4

    Leave a comment:


  • davidcald
    replied
    A question related to this... Is there a script or easy method to generate a simple list of devices and their refs and address? Something that I can use to sort or search on? I don't see in the HS4 UI such a simple data grid view with selectable headers for sorting.

    Leave a comment:


  • alexbk66
    replied
    Yep, it works, thank you enigmatheatre jon00

    Leave a comment:


  • alexbk66
    replied
    yeah, found in HomeSeerAPI.IHSApplication - will give it a try

    Leave a comment:


  • jon00
    replied
    Originally posted by enigmatheatre View Post
    I found it here but not sure about in the sdk.
    That would be under the HS3 HomeSeerAPI.IHSApplication

    Leave a comment:


  • enigmatheatre
    replied
    I found it here but not sure about in the sdk.

    Leave a comment:


  • stefxx
    replied
    Originally posted by alexbk66 View Post

    It's "ref", not address
    Correct, my bad.

    Leave a comment:


  • alexbk66
    replied
    Originally posted by enigmatheatre View Post
    DeviceExistsAddress or DeviceExistsAddressFull
    That's what I'm after, but where? IHsController doesn't have it.

    Leave a comment:


  • enigmatheatre
    replied
    DeviceExistsAddress or DeviceExistsAddressFull

    Leave a comment:


  • alexbk66
    replied
    Originally posted by stefxx View Post
    What about hs.DoesRefExist?
    It's "ref", not address

    Leave a comment:


  • stefxx
    replied
    What about hs.DoesRefExist?

    Leave a comment:


  • rmasonjr
    replied
    Originally posted by mnsandler View Post
    what's the alternative? you to enumerate through all the devices and/or features until you find a hit
    I think that also generates a log event from HS that something is iterating through all the devices.

    Leave a comment:

Working...
X