Announcement

Collapse
No announcement yet.

Ungrouping the 1-wire devices

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

    Ungrouping the 1-wire devices


    running this plugin on HS4. Anyone have a script that will ungroup the temp sensors from the Root Device?

    viewing the devices in grid view is not helpful.

    Click image for larger version  Name:	image.png Views:	0 Size:	13.0 KB ID:	1609354
    Mark

    HS3 Pro 4.2.17.0
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    #2
    It gets really ugly when you have 3 populated OWServers with 65 devices. If you tap on the tile you do get a list view.

    Click image for larger version  Name:	image.png Views:	0 Size:	70.0 KB ID:	1609362

    I would use Jon00’s grouping utility. It is quick and easy. I will usually change the location1 to “a” to make it easier to identify them in the utility. It quickly shows the relationship as feature, root or standalone. You can clear the relationships, then leave them ungrouped or create a new one. While you can make them all standalone, deleting a root created by a plug-in can cause problems. You could leave it as standalone and hide it.

    Click image for larger version  Name:	image.png Views:	0 Size:	235.9 KB ID:	1609361
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      Randy,
      thanks for the the response. did you have any issue with the plugin 'regrouping' the devices after you used the jon00 grouping utility?
      Mark

      HS3 Pro 4.2.17.0
      Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
      Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
      Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

      Comment


        #4
        Originally posted by mnsandler View Post
        Randy,
        thanks for the the response. did you have any issue with the plugin 'regrouping' the devices after you used the jon00 grouping utility?
        No. Since plug-ins address HS Devices by address or RefID, grouping has no effect on how they function, just how they are displayed.

        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

        Comment


          #5
          randy

          i ungrouped the the devices, and then after restarting hs4 and the plugin, everything is regrouped

          Click image for larger version

Name:	image.png
Views:	108
Size:	11.6 KB
ID:	1609688

          did HS4 do this, if the plugin didn't?​
          Mark

          HS3 Pro 4.2.17.0
          Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
          Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
          Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

          Comment


            #6
            Originally posted by mnsandler View Post
            randy

            i ungrouped the the devices, and then after restarting hs4 and the plugin, everything is regrouped

            Click image for larger version

Name:	image.png
Views:	108
Size:	11.6 KB
ID:	1609688

            did HS4 do this, if the plugin didn't?​
            I’ll bet the plug-in is handling the grouping. Plug-ins will usually handle the grouping. Since Randy Ultrajones bowed out of development, there is likely nothing that can be done.

            HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

            Comment


              #7
              Yes, the plug-in groups devices on startup. I think it's probably best if I just release the code for this plug-in so others can make changes as needed. It's now public: https://github.com/ultrajones/HSPI_Ultra1Wire3
              Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

              Comment


                #8
                Originally posted by Ultrajones View Post
                Yes, the plug-in groups devices on startup. I think it's probably best if I just release the code for this plug-in so others can make changes as needed. If you don't hear from me in a few days, please remind me. I just need to log into GitHub and make it public.
                thanks Jones
                Mark

                HS3 Pro 4.2.17.0
                Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                Comment


                  #9
                  Hey Jones
                  i downloaded the code (as a zip) but it doesn't look like it included all the install files listed in the install.txt

                  ,[CHECKVERSION],3.0.0.13
                  HSPI_ULTRA1WIRE3.exe,.,0
                  hspi_ultra1wire3.exe.config,.,0
                  SQLite.Interop.dll,.\bin\hspi_ultra1wire3,0
                  System.Data.SQLite.dll,.\bin\hspi_ultra1wire3,0

                  hspi_ultra1wire3.aspx,.\html\hspi_ultra1wire3,0
                  Web.Config,.\html\hspi_ultra1wire3,0
                  Ultra1Wire3_HSPI_Users_Guide.pdf,.\html\hspi_ultra1wire3,0
                  amcharts.js,.\html\hspi_ultra1wire3\js,0
                  dragIcon.gif,.\html\hspi_ultra1wire3\js\images,0
                  dragIconH.gif,.\html\hspi_ultra1wire3\js\images,0
                  lens.png,.\html\hspi_ultra1wire3\js\images,0
                  images.zip,[DELFILES],.\html\images\hspi_ultra1wire3
                  images.zip,[UNZIP],.\html\images\hspi_ultra1wire3


                  can you post the additional files in a zip file here?​​
                  Mark

                  HS3 Pro 4.2.17.0
                  Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                  Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                  Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                  Comment


                    #10
                    The files are in the zip file after you install the plug-in from the HomeSeer store.
                    Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

                    Comment


                      #11
                      Jones,

                      I have the code loaded and running in my dev environment. I have a old HA7E but not sure its working.

                      I've been stepping thought the code to see what happens when the plugin starts up.

                      it seems like the regrouping happens in UpdateOneWireSensors once the plugin has a collection of sensors.

                      do i need a fully functioning interface/device and set of temp sensors in order to test the code that re-groups the individual sensors back to the Root device?
                      Mark

                      HS3 Pro 4.2.17.0
                      Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                      Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                      Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                      Comment


                        #12
                        The device creation and grouping happens in this module in the GetHomeSeerDevice function.

                        https://github.com/ultrajones/HSPI_U...spi_devices.vb
                        Plug-ins: UltraMon, UltraM1G, UltraCID, Ultra1Wire, UltraLog, UltraWeatherBug, UltraPioneerAVR, UltraGCIR

                        Comment


                          #13
                          I now have a TEMP08 running, and made a small change so that each sensor will get its own parent/root device (see below)

                          that next step is figure out how to ungroup existing sensors from the existing primary root

                          Click image for larger version

Name:	image.png
Views:	61
Size:	42.7 KB
ID:	1611526
                          Mark

                          HS3 Pro 4.2.17.0
                          Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                          Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                          Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                          Comment


                            #14
                            Now that i'm using a TEMP08, I realize that the plugin groups Humidity, Temperature, and Voltage devices under a distinct Root for each sensor type. the other sensor types must have their own Root as well.

                            I was thinking of grouping devices using the root ROM ID. Thus, physical devices are grouped with their unique features (voltage, temp, humidly, etc)

                            i will probably just add a web config Option to allow this new grouping feature.

                            feedback welcome

                            Click image for larger version

Name:	image.png
Views:	66
Size:	162.1 KB
ID:	1611598

                            Grid View of the same:

                            Click image for larger version

Name:	image.png
Views:	48
Size:	69.6 KB
ID:	1611599​​
                            Mark

                            HS3 Pro 4.2.17.0
                            Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                            Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                            Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                            Comment


                              #15
                              Well i got it all working via a config option (see below)

                              had to run an hs4 script to update the display priority order (to 1) and display type (to important) since HS4 has a couple of small bugs that didn't make the conversion straight forward. I can make the script available here.

                              I left the old Root device (not displayed), so you could actually switch back and forth without changing any device ref ids.

                              Click image for larger version

Name:	image.png
Views:	42
Size:	11.6 KB
ID:	1613557

                              Click image for larger version

Name:	image.png
Views:	52
Size:	126.6 KB
ID:	1613556
                              Mark

                              HS3 Pro 4.2.17.0
                              Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                              Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                              Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

                              Comment

                              Working...
                              X