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

  • huntley1
    replied
    Hi, I'm using the plugin to send values of my devices to another controller. I have an event for each device that if they change value to send Status/Value of that device. It works well for some device because it sends the device address and it's value. So I have a script on the other controller to update its status based upon the device address an. On other devices it does not send the device address, just the value. How can I get it to send the device address on all devices?

    Leave a comment:


  • Pete
    replied
    Got it running with created event.

    Thank you Drule.

    Here is the configuration:

    I had to enable the persist checkbox to get the event to trigger.

    Click image for larger version

Name:	RFID-1.jpg
Views:	92
Size:	36.0 KB
ID:	1353784
    Test event configured:

    Click image for larger version

Name:	RFID-2.jpg
Views:	77
Size:	25.4 KB
ID:	1353785

    Leave a comment:


  • Pete
    replied
    Thank you Drule.

    Yes tried the plugin in HS3 running on Win7e and see the serial tab.

    So tried using the loopback address and port 3001 and configured an event to trigger on one of the 4 digit alpha numeric RFID tags and event does not trigger.

    Should I be seeing the serial port data in the logs?

    So testing the plugin on Linux Ubuntu running HS3 Lite and testing the plugin on an Oracle 7E Virtual box running on the same computer.

    Leave a comment:


  • drule
    replied
    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

    Leave a comment:


  • Pete
    replied
    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?

    Leave a comment:


  • sparkman
    replied
    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

    Leave a comment:


  • smithdavee
    replied
    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

    Leave a comment:


  • sparkman
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • sparkman
    replied
    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

    Leave a comment:


  • smithdavee
    replied
    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!

    Leave a comment:


  • drule
    replied
    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.

    Leave a comment:


  • larhedse
    replied
    Is there anyway to turn off logging?

    Leave a comment:


  • chubafelix
    replied



    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

    Leave a comment:


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

    Leave a comment:

Working...
X