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:	286
Size:	244.0 KB
ID:	1405488
    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

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

    Wim
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 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:
       [TABLE]
      [TR]
      [TD][FONT=Consolas][FONT=Arial]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
      			~~~~~~~~~~~ [/FONT][/FONT][/TD]
       		[/TR]
      [/TABLE]

      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: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

        1210 devices/features ---- 392 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


              #7
              It looks like the original attachment is now unavailable. Any chance it could be re-posted? Thanks!

              Comment


                #8
                it is still available? Check image

                Attached Files
                -- Wim

                Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

                1210 devices/features ---- 392 events ----- 40 scripts

                Comment

                Working...
                X