Announcement

Collapse
No announcement yet.

DumpDevice - A utility to aid plugin development

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

  • DumpDevice - A utility to aid plugin development

    During plugin development, I'm always using Visual Studio's breakpoints/watch lists to verify that device creation is taking place correctly. This is a little time consuming and cumbersome and I find myself needing to compare devices, especially PED.

    Usually, I would dump a device to the log file or even a separate text file to verify device contents (PED).
    That, too, is cumbersome. So, I took my DumpDevice sub and made it into an ASPX page that you can use.

    Drop the attached .aspx page into your HomeSeer html folder and go to localhost/DumpDevice.aspx
    Enter the device id and it will return the device info.

    Note that this gives you the background code and you can add other device properties you need.

    ***I am not maintaining this code. It is free to use and modify as you see fit.

    Hope this helps... [ATTACH]n1405489[/ATTACH]


    Click image for larger version

Name:	screenshot.png
Views:	76
Size:	244.0 KB
ID:	1405488
    HS3Pro Running on a Raspberry Pi3
    68 Z-Wave Nodes, 174 Events, 326 Devices
    UPB modules via OMNI plugin/panel
    Plugins: Z-Wave, OMNI, HSTouch, weatherXML, EasyTrigger
    HSTouch Clients: 3 Android, 1 Joggler

  • #2
    Will play with this, many thanks in advance!

    Wim
    -- Wim

    Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
    650 devices ---- 336 events ----- 40 scripts

    Comment


    • #3
      Server Error in '/' Application.

      Compilation Error

      Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

      Compiler Error Message:


      Compiler Warning Messages:


      Show Detailed Compiler Output:

      Code:
       
      C:\Program Files (x86)\HomeSeer HS3> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\assembly\dl3\ad007ae6\00b2adfe_ 3f4ed501\Scheduler.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configu ration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.d ll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Lin q\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Ser vices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll " /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Compone ntModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\Syste m.ComponentModel.DataAnnotations.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing \v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSha rp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Enterpris eServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseSe rvices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Service Model\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll " /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Service Model.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.Servi ceModel.Activation.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Ext ensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions .dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.Da taSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.D ataSetExtensions.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4. 0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime .Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime .Serialization.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Identit yModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.d ll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Ent ity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activit ies\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4 .0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4. 0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_ 4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\App_global.asax.dqpvzaf7.dll" /R:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\assembly\dl3\1a04e25d\00eb8c2c_ 9b4dd501\HSCF.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Workflo wServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServ ices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Service Model.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel .Web.dll" /R:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\assembly\dl3\24a739e1\005190e6_ b34dd501\HomeSeerUtil.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Service Model.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Servi ceModel.Activities.dll" /R:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\assembly\dl3\931b2a96\00eb8c2c_ 9b4dd501\HomeSeerAPI.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0 _4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.App licationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.A pplicationServices.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Dyn amicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicDa ta.dll" /R:"C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Visu alStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d5 0a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /out:"C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\App_Web_dumpdevice.aspx.cdcab7d 2.gid7rexa.dll" /debug- /nowarn:41008,40000,40008 /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,Syst em.Collections.Generic,System.Collections.Specialized,System .ComponentModel.DataAnnotations,System.Configuration,System. Linq,System.Text,System.Text.RegularExpressions,System.Web,S ystem.Web.Caching,System.Web.DynamicData,System.Web.SessionS tate,System.Web.Security,System.Web.Profile,System.Web.UI,Sy stem.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,S ystem.Web.UI.HtmlControls,System.Xml.Linq /warnaserror- /optionInfer+ "C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\App_Web_dumpdevice.aspx.cdcab7d 2.gid7rexa.0.vb" "C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\App_Web_dumpdevice.aspx.cdcab7d 2.gid7rexa.1.vb" Microsoft (R) Visual Basic Compiler version 14.8.3752 for Visual Basic 2012 Copyright (c) Microsoft Corporation. All rights reserved. This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to Visual Basic 2012, which is no longer the latest version. For compilers that support newer versions of the Visual Basic programming language, see http://go.microsoft.com/fwlink/?LinkID=533241 C:\Program Files (x86)\HomeSeer HS3\html\DumpDevice.aspx(63) : error BC30524: Property 'Status' is 'WriteOnly'. If (Not vs(x) Is Nothing) Then sb.Append("VSPair [" & vsp.Status & "] =[" & vsp.Value & "]" & "<br>") ~~~~~~~~~~ C:\Users\alexb\AppData\Local\Temp\Temporary ASP.NET Files\root\e179ac2a\f8932e5b\App_Web_dumpdevice.aspx.cdcab7d 2.gid7rexa.0.vb(15) : warning BC40056: Namespace or type specified in the Imports 'HomeSeerSDK' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. Imports HomeSeerSDK ~~~~~~~~~~~

      Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0

      Comment


      • #4
        Here it is working without issues. Can be very useful as it shows more info that the device properties of HS4
        -- Wim

        Plugins:RFXCOM, HSTouch Server, Squeezebox, BLGData, Restart, Jon00's Perfmon and Network monitor, WeatherXML, BLBackup, TenScripting, BC4, Pushover, PHLocation, JowiHue, Zwave, Sonos
        650 devices ---- 336 events ----- 40 scripts

        Comment


        • #5
          Originally posted by alexbk66 View Post
          Server Error in '/' Application.

          Compilation Error
          I see the same, in HS3. Presumably why posted in an HS4 specific area.

          Comment


          • #6
            You might want to look at this to display detailed info, including ExtraData for HS devices http://tenholder.net/tenWare2/tenScriptAid/Default.aspx

            tenholde

            Comment

            Working...
            X