Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

IP / Serial Plugin for HS3 (by "drule") - Discussion Thread

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

  • I keep getting the following error message in my log:
    Oct-01 1:37:18 AM drhsIpPlugIn ERROR in SendTcpClient: Object reference not set to an instance of an object
    what does this mean?

    Comment


    • Good question....I have the same. Looks like the plugin is broken since the last HS3 upgrade?

      Comment


      • The Plug in is still functioning, but my log file is filled with the above error.

        Comment


        • I disabled then enabled the plug-in and I haven't seen the error again since.

          Comment





          • I installed your plugin in HS3, on Windows 7 PC with the intention to control a JVC projector via TCP connection on local network.

            However, I could not figure out how to establish a TCP connection. If you know how, that would be great.
            I configured a connection by entering IP address and port on which to connect with projector. Next, I configured some commands but that is where I think I am failing.

            The required procedure for turning on a JVC projector consists of 4 steps.
            1. establish a TCP connection. It is described as "standard TCP/IP Three-Way Handshake". I believe it is, host send SYN; Projector sens SYN-ACK; host sends ACK.
            2. host sends a string "PJREQ"
            3. host sends a decimal value "115"
            4. host sends a hex string of "21 89 01 50 57 31 0A"

            I tried to configure these commands but i failed. Can someone please help me to figure out how to configure above commands for this plugin?

            Thank you

            Comment


            • Is there anyway to turn off logging?

              Comment


              • Originally posted by larhedse View Post
                Is there anyway to turn off logging?
                Unfortunately not. I'll add logging levels to the plugin when I update it for HS4.

                Comment


                • Is there a way to log into a linux box, authenticate and then run a command and hang up. It would be a ssh connection, or a telnet connection if I have to!

                  Comment


                  • Originally posted by smithdavee View Post
                    Is there a way to log into a linux box, authenticate and then run a command and hang up. It would be a ssh connection, or a telnet connection if I have to!
                    I use plink for that purpose: https://www.ssh.com/ssh/putty/putty-.../Chapter7.html
                    HS 3.0.0.548: 1990 Devices 1172 Events
                    Z-Wave 3.0.1.262: 126 Nodes on one Z-Net

                    Comment


                    • Thanks for the info, can you give me an example of how you set it up and also call it from an event?

                      Comment


                      • Originally posted by smithdavee View Post
                        Thanks for the info, can you give me an example of how you set it up and also call it from an event?
                        Follow the instructions in the link I posted to connect to the system first using putty, or plink in interactive mode. Then you can call it from an event similar to this:
                        Click image for larger version  Name:	Capture.PNG Views:	0 Size:	19.0 KB ID:	1348553


                        I have plink installed in the HS3/bin folder, but it could be elsewhere on the system. In the example, it connects to a linux system to reboot it. I also have events where I call plink from a VB.NET script so that I can capture the output and write it to the log.
                        HS 3.0.0.548: 1990 Devices 1172 Events
                        Z-Wave 3.0.1.262: 126 Nodes on one Z-Net

                        Comment


                        • Thanks Sparkman, works like a charm. I had no idea after years of running HS, from 1999 had the ability to call another application! Learn something every day!

                          Thanks again.

                          Dave

                          Comment


                          • Originally posted by smithdavee View Post
                            Thanks Sparkman, works like a charm. I had no idea after years of running HS, from 1999 had the ability to call another application! Learn something every day!

                            Thanks again.

                            Dave
                            You're welcome and glad I could help.

                            Cheers
                            Al
                            HS 3.0.0.548: 1990 Devices 1172 Events
                            Z-Wave 3.0.1.262: 126 Nodes on one Z-Net

                            Comment


                            • Newbie testing plugin here on HS3 Linux.

                              It's a simple connection to an old Cheaper RFID device just to receive data only.

                              I do not see a serial tab so went to using ser2net

                              See data doing:

                              TPro_HS3Lite:/dev# cat ttyUSB1
                              1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1 1oZL 1oZL ^C

                              Testing ser2net see data doing:

                              telnet 127.0.0.1 3001

                              Connected to 127.0.0.1.
                              Escape character is '^]'.
                              1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1iSz 1oZL 1oZ

                              Set up a host connection to 127.0.0.1:3001 and an event to trigger with data above.

                              I do not see anything in the logs nor does the trigger event run.

                              Questions:

                              1 - does the serial tab work in the Linux Mono version of the plugin?
                              2 - what am I doing wrong configuring the ser2net configuration?
                              - Pete

                              Auto mator
                              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.8X
                              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.8X
                              HS4 pro - 4.0.3.0 - Ubuntu 18.04/W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono 6.8X

                              X10, UPB, Zigbee, ZWave and Wifi MQTT automation. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant

                              Comment


                              • 1 - Unfortunately, due to how Mono implements serial, the serial tab is only available under Windows.
                                2 - Try a client connection to 127.0.0.1:3001

                                Comment

                                Working...
                                X