Announcement

Collapse
No announcement yet.

X10

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

    #16
    I've got the plug-in working and I can control my valves. In the timer configuration of the plug-in in is not letting me save my adjusted times. when I click on "Save Timer Changes" the screen sits there and smiles at me.

    I tried running it on my windows PC and everything seem to be working there. Is there a way on my Linux machine to save my adjusted timers. I guess a work around could be to create timers in HS3 and run events for each of my valves based on that timer.

    Comment


      #17
      I'd like to learn more about running plugins on remote machines. Your above comment when right over my head.

      Comment


        #18
        @Charles,

        Apologies ....didn't catch your last question.

        Some plugins can be run in Linux talking to a Linux or Windows Homeseer 3 box.

        In Linux the command to run the plugin is:

        mono plugin.exe server=ip_of_homeseer_server

        In Windows the command is:

        plugin.exe server=ip_of_homeseer_server

        If the plugin uses a serial or USB port then the device is plugged in to the remote box and looks at the ini on the Homeseer 3 mothership directory.

        IE: here the Z-Wave GPIO card is installed on a RPi2 in the attic. The main HS3 box remotes via SSH to the RPi2 in the attic and starts the Z-Wave plugin on booting of Homeseer3 running this script.

        ssh root@192.168.244.169 "/usr/bin/mono /HomeSeer/HSPI_ZWave.exe server=192.168.244.164 >> /dev/null 2>&1"

        logged in to the slave RPi2 and ran this:

        root@ICS-ZNet:/HomeSeer# mono HSPI_ZWave.exe server=192.168.244.164
        Connecting to server at 192.168.244.164...

        Main HS3 GUI shows the remote connection.

        [ATTACH]61015[/ATTACH]
        Last edited by Pete; May 5, 2017, 06:46 PM.
        - Pete

        Auto mator
        Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
        Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
        HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

        HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
        HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

        X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

        Comment


          #19
          Thank for reply!

          so, I would just enter the command line in a new script or use the startup script and eneter the command line in there?

          Comment


            #20
            I created an event that runs the script and I run the script when Homeseer starts.

            Note this is from the Linux Homeseer mothership to a Linux RPi2 which starts the Z-Wave plugin when Homeseer boots.

            Linux to windows will be different.

            First run the plugin in Windows with the option server=ipofhomeseer.

            See if it connects. Note that the INI file stuff is on your Linux Homeseer box and not on the source windows box.

            Personally I have never SSH'd from a Linux box to a Windows box (just the other way around).

            Googled it and yes you can install ssh server on your windows box and run a windows command like this:

            ssh user@windowsmachine 'mycommand.exe'

            First you have to install cygwin on your windows computer then ssh server. You can create a key with Putty.

            Looking at the Putty page you can use a program there to run ssh server. (Bitvise SSH Server)

            for the key exchange you have to copy the keys from the windows to the Linux box.

            which is the same thing I am doing below linux to linux.


            Note you shouldn't root to do this. In order to utilize root with no password you just have to copy the SSH keys which will be step #1

            1 - this is a copy and paste from here.

            SSH login without password

            You want to use Linux and OpenSSH to automate your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.
            How to do it

            First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:


            Code:
            a@A:~> ssh-keygen -t rsa
            Generating public/private rsa key pair.
            Enter file in which to save the key (/home/a/.ssh/id_rsa): 
            Created directory '/home/a/.ssh'.
            Enter passphrase (empty for no passphrase): 
            Enter same passphrase again: 
            Your identification has been saved in /home/a/.ssh/id_rsa.
            Your public key has been saved in /home/a/.ssh/id_rsa.pub.
            The key fingerprint is:
            3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
            Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):

            Code:
            a@A:~> ssh b@B mkdir -p .ssh
            b@B's password:
            Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:

            Code:
            a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
            b@B's password:
            From now on you can log into B as b from A as a without password:

            Code:
            a@A:~> ssh b@B
            2 - test the above using ssh.

            3 - here is the event JPG

            [ATTACH]61083[/ATTACH]

            4 - here is the script that it is running called startzwave.sh

            Code:
            # !/bin/bash
            # startZwave.sh
            #: Description: Enables the required modules Homeseer ZWave
            
            ssh root@192.168.244.169 "/usr/bin/mono /HomeSeer/HSPI_ZWave.exe server=192.168.244.164 >> /dev/null 2>&1"
            Do a

            chmod +x /HomeSeer/scripts/startzwave.sh

            after you save the above file.

            5 - put this in the bottom of your startup.vb file in your /HomeSeer/scripts/startup.vb file. IE: nano /HomeSeer/scripts/startup.vb

            Code:
            ' Start Z-Wave
            hs.triggerevent("Start Z-Wave")
            
            End Sub
            Last edited by Pete; May 8, 2017, 10:52 PM.
            - Pete

            Auto mator
            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

            Comment

            Working...
            X