X10 Community Forum

💬General Category => Mac/Linux & Open Source and the X10 Home => Raspberry Pi, Arduino & other SBC => Topic started by: petera on August 18, 2018, 03:18:44 PM

Title: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 18, 2018, 03:18:44 PM
I think you've pretty much nailed it. Belt and braces so to speak. Maybe a glass of  >! is called for after a thirsty day typing  #:)
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 18, 2018, 04:39:33 PM
I think you've pretty much nailed it. Belt and braces so to speak. Maybe a glass of  >! is called for after a thirsty day typing  #:)
rofl it was mostly cut and paste from my forum But I will have a glass! >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 18, 2018, 08:14:37 PM
If all of the above seems to much then you can just use the installer I created.
in your terminal window copy the following and hit enter.
Code: [Select]
wget -qO- http://tuicemen.com/downloads/pi/ha-bridge/HA-BridgeInstaller.sh | bash

I took the last link literally and pasted on the other 11 steps. The install went quickly, and I got a nice TUICEMEN screen at the end.


But then.... I clicked on the HG shortcut. But saw no... Bridge Control tab to click. Where would this be found?

Once you have ha-bridge installed and running open your web browser on your Pi to localhost. Once HA-Bridge is displaying click on the Bridge Control tab.
If you wish to change your port scroll down to Web Server Port and edit the 80 to what ever port you wish to use.
If you have a Broadlink RM continue to scroll down until you see Broadlink Support. click the false button so it turn to true.
If you have any other things (hubs or software) supported by the bridge set their info as well then scroll to the top and click save.
When the bridge restarts you'll be at the Devices screen go back to the Bridge control tab (screen) and click Update Security Settings
This will allow you to setup users and password so access to the bridge so it is restricted to only those users you wish access.
I'll post how to add devices in this thread in another post.
 >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 18, 2018, 09:11:32 PM
I've tried the localhost:80 and the localhost:8080 and the 127.0.0.1.... I get an error


Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 05:39:42 AM
I've tried the localhost:80 and the localhost:8080 and the 127.0.0.1.... I get an error

Drop the word localhost and try the actual address of the raspberry Pi followed by :8080

I assume it's installed on port 8080 during the install process.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 08:09:35 AM
 B:( B:( B:( I'm not sure what happened Dave
HA-Bridge installs to port 80 by default it doesn't create a link in HomeGenie.
If something else is running on Port 80 this may be your issue. I ran the single line script on 4 different SD cards without a issue.
However 3 were fresh Debian installs and HA-Bridge was the first to be installed in those three cases, the other case HG was installed but on port 8090. ::) :'

If you wish for it to run on a different port you must change it from inside its web UI.
Since your not getting anything in your browser you may have to many HA-bridge service entries by trying the other methods first. Though that shouldn't be the case as the installer should have just over written them.
Your first screen shot does show the HA-Bridge service was created successfully and HA-Bridge should already be running.
A few things to try.
1: Click the files & folder icon on your desktop task bar and check to see if you have the ha-bridge folder and the ha-bridge.jar file inside it. The path is home/pi/ha-bridge. if there is another folder in the HA-Bridge folder(data) check to see if anything is in it. If so we may be able to edit the port from the terminal window.

3:What port is HomeGennie on?
If it is 80 you have to change it to something else from inside HG.
HA-Bridge does not look for a open port when installing.

4: A reboot may help but if something else is running on port 80 the first to get that port will work and the other fail.
You shouldn't do the single script install after trying the other longer method however that should not screw things up.

5: if all else fails start fresh after backing up you HG configuration.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 08:33:15 AM
B:( B:( B:( I'm not sure what happened Dave
HA-Bridge installs to port 80 by default it doesn't create a link in HomeGenie.
If something else is running on Port 80 this may be your issue. I ran the single line script on 4 different SD cards without a issue.
However 3 were fresh Debian installs and HA-Bridge was the first to be installed in those three cases, the other case HG was installed but on port 8090. ::) :'

If you wish for it to run on a different port you must change it from inside its web UI.
Since your not getting anything in your browser you may have to many HA-bridge service entries by trying the other methods first. Though that shouldn't be the case as the installer should have just over written them.
Your first screen shot does show the HA-Bridge service was created successfully and HA-Bridge should already be running.
A few things to try.
1: Click the files & folder icon on your desktop task bar and check to see if you have the ha-bridge folder and the ha-bridge.jar file inside it. The path is home/pi/ha-bridge. if there is another folder in the HA-Bridge folder(data) check to see if anything is in it. If so we may be able to edit the port from the terminal window.

3:What port is HomeGennie on?
If it is 80 you have to change it to something else from inside HG.
HA-Bridge does not look for a open port when installing.

4: A reboot may help but if something else is running on port 80 the first to get that port will work and the other fail.
You shouldn't do the single script install after trying the other longer method however that should not screw things up.

5: if all else fails start fresh after backing up you HG configuration.

I suggested dropping localhost and inserting the actual local address of his Raspberry Pi in case his system does not support host naming. If HA Bridge has installed on the default port 80 and no other service is using that port just type the local ip address of the Raspberry Pi in the browser bar should bring up HA Bridge.

Something simple to try before going through the whole process again.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 08:35:04 AM
Drop the word localhost and try the actual address of the raspberry Pi followed by :8080

I assume it's installed on port 8080 during the install process.

Why would you assume a process  NOT described in the setup? Or... knowledge of an IP address NOT described in the setup process... or maybe even an SSH setup NOT described in the setup process? 

As a Pi-Linux-Raspbian hobby the play around with and then fix.... can be a big part of the puzzle... and the FUN. A LOT of the people who hang at these forums (myself included) enjoy the fun of finding and fixing the problems. Almost all of the people who visit these forums have a problem with a product, or setup of a product that they need a 'fix' for. It's enjoyable to help find those "fixes". But the vast majority of X10 users don't even realize the forum is here. They install and use their X10 as described in the directions.

I am not looking for a fix. I am looking for a workable set of directions for setting up a Pi that runs Homegenie..... and allows average X10 users to affordably use an Amazon Alexa to control the X10 products they already own and use. The mindset of "fixing" after the setup is inappropriate at this point. It is the product (in this case... the directions) that need fixed.

I'd call it a failure if we need Tuicemen and the other Pi experts must attempt to fix each install... or encourage every X10'er to take up the "new hobby" of Raspbian.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 08:40:24 AM
….. Something simple to try before going through the whole process again.

I've been a member here at the X10 forum for many years. I've seen other members of this forum actually buy X10 products they didn't need to determine what was causing problems and find solutions. Spending time setting of things to replicate a users setup is normal... and only considered being helpful. I'll keep plugging at this... because it's important. 
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 08:48:58 AM
I noticed in your second screen shot you pointed your browser to localhost:8080 (at least that's what is in the address bar)
I think that's why petera assumes Ha-Bridge is on port 8080.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 08:51:42 AM

5: if all else fails start fresh after backing up you HG configuration.

I don't mind doing a fresh install. I am running a modified X10 setup of just a handful of modules... so I have no special need to back-up anything.

Can the directions be altered to show me how and WHEN to do the port change to 8080? If you think that is the problem? Or should look to diagnose the exact problem 1st... and then correct the direction to prevent the same error. As when done.... I plan on trying this a time or two from start to finish to make sure it works well. 
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 08:54:22 AM
I noticed in your second screen shot you pointed your browser to localhost:8080 (at least that's what is in the address bar)
I think that's why petera assumes Ha-Bridge is on port 8080.

Pictures DO say a thousands words! But I also mentioned:   "I've tried the localhost:80 and the localhost:8080 and the 127.0.0.1.... I get an error"



Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 09:02:04 AM
If you do a clean install of Debian,  install HA-Bridge first as soon as your Pi boots that way nothing should be affecting the HA-Bridge service from running.
I'll add the directions to change the port in my OP  but this can only be done once HA-Bridge is open in your browser.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 09:21:54 AM
If you do a clean install of Debian,  install HA-Bridge first as soon as your Pi boots that way nothing should be affecting the HA-Bridge service from running.
I'll add the directions to change the port in my OP  but this can only be done once HA-Bridge is open in your browser.

Ok assuming the install process selects port 80, what I suggested was typing the local ip address of your Raspberry Pi into the browser address bar. As an example say your Raspberry Pi local ip address was 192.168.0.30 instead of typing the word localhost in the address bar you would type

http://192.168.0.30

This assumes the default port 80 is assigned during the install. If for example the install defaulted to port 8081 you would type

http://192.168.0.30:8081

Again some systems find problems with host naming like localhost unless they are set up to do so.

I tried Tuicemen's install script and it's 100% successful on install so your bridge software must be installed.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 01:48:18 PM
I tried Tuicemen's install script and it's 100% successful on install so your bridge software must be installed.

That's great. So explain to me... how that helps me... or any other non-pi user to get his/her X10 talking to Alexa using the setup directions posted here? If I follow the same directions.... do you now think I might get different results?

I could be wrong.... but I think you keep flipping back to fixing the install on my Pi. But that isn't what I am doing here. The number of Pi Experts, or users, or programmers..... is very limited. I am hoping for a setup that X10 users can muddle through on a Saturday morning. And then have Alexa enabled lights and such.... without scraping their entire X10 setup... and switching to something else they can setup.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 03:10:45 PM
I tried Tuicemen's install script and it's 100% successful on install so your bridge software must be installed.

That's great. So explain to me... how that helps me... or any other non-pi user to get his/her X10 talking to Alexa using the setup directions posted here? If I follow the same directions.... do you now think I might get different results?

I could be wrong.... but I think you keep flipping back to fixing the install on my Pi. But that isn't what I am doing here. The number of Pi Experts, or users, or programmers..... is very limited. I am hoping for a setup that X10 users can muddle through on a Saturday morning. And then have Alexa enabled lights and such.... without scraping their entire X10 setup... and switching to something else they can setup.
I think petra is implying we need to see why your Bridge isn't loading.
From a terminal window type
Code: [Select]
sudo systemctl status ha-bridge then hit enter, this should tell us at least if it is running or failed and maybe point to some clues.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 03:56:50 PM
I tried Tuicemen's install script and it's 100% successful on install so your bridge software must be installed.

That's great. So explain to me... how that helps me... or any other non-pi user to get his/her X10 talking to Alexa using the setup directions posted here? If I follow the same directions.... do you now think I might get different results?

I could be wrong.... but I think you keep flipping back to fixing the install on my Pi. But that isn't what I am doing here. The number of Pi Experts, or users, or programmers..... is very limited. I am hoping for a setup that X10 users can muddle through on a Saturday morning. And then have Alexa enabled lights and such.... without scraping their entire X10 setup... and switching to something else they can setup.

Ok. Just so I'm understanding what you're trying to achieve here for both yourself and others with basic Raspberry Pi experience

1) A working version of Home Genie on the Raspberry Pi which you are comfortable configuring X10 devices etc on (I think you have achieved that so far)

2) Installing the HA Bridge software that will allow you to have Home Genie interact with Alexa and allow you to control the X10 devices you have configured in Home Genie using Alexa voice control
(If you've followed Tuicemen's install script exactly as posted you should have that now)

3) Configuring the HABridge so you can point it in the direction of the Home Genie X10 devices
(This should now be possible by typing the ip address of your Raspberry Pi into the address bar of the browser to launch the HA Bridge configuration utility)

I think that's as easy as it can be made at this stage. If you can achieve up to and including stage 3) you're ready to configure your Home Genie X10 devices in HA Bridge so you can have Alexa control over them.

It would be nice to see some other less experienced users try Tuicemen's install instructions to achieve this goal as I think he has made it very achievable for the average user.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 04:27:04 PM
...… I think that's as easy as it can be made at this stage.

Well thank you very much for your help and efforts.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 04:40:12 PM
….. I think petra is implying we need to see why your Bridge isn't loading.

Maybe your right. But I certainly got the impression that some people think of X10 running on a Pi as merely "one-offs" as a "hobby setup". And I'd believe that... if it wasn't for the HomeSeer Hometroller (a pi unit) that been has running my home and using Alexa for months.

From a terminal window type
Code: [Select]
sudo systemctl status ha-bridge then hit enter, this should tell us at least if it is running or failed and maybe point to some clues.

I'd tried that and no bridge was found.


However.... After re-nstalling (again) from NOOBS..... and then running your ha-bridge (single link install) first. Gave me the ha-Bridge screen. By typing in local host. I am going to try to go from here.




Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 04:44:17 PM
 :)% You must have had a conflict some where glad you got it running. >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 04:48:00 PM
...… I think that's as easy as it can be made at this stage.

Well thank you very much for your help and efforts.

I think you may be misunderstanding me here. Each user no matter what their level of experience will fall down at some stage of the process. It's trying to identify where your install is failing will help getting you to the end game. We can worry about other users at a later stage. Let's just focus on your exploits for the moment.

I outlined 3 stages above. Would I be correct in that assessment. That will help immensely if you could clarify this.

Incidentally is there any particular reason why you are using the desktop version of Raspbian Stretch. As you are probably aware it's not required for your HomeGenie/HA Bridge installation and is using up valuable memory and processor resources.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 05:02:49 PM
:)% You must have had a conflict some where glad you got it running. >!

Well... this kinda sucks. The ha-bridge runs great. But following the same great instructions to install Homegenie... gives me nothing. The normal 127.0.0.1 takes me to the bridge screen. So now.... it's the same problem only the 2nd install was HG and it isn't there.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 05:07:26 PM
:)% You must have had a conflict some where glad you got it running. >!

I reckon the HA Bridge software was already there and installed on default port 80 yet it was being requested on port 8080 on the browser address bar as seen from an earlier post. I had an idea it may have been the problem and that's why I suggested manually typing the PI's full numeric address. So many different packages use different ports as default. Home Assistant uses port 8123 and Domoticz uses port 8080

Great to see that part is completed. All that's needed now is to match the WebHooks on the bridge with the HomeGenie X10 devices and on reboot Dave should have a system identical to Homeseer which he clearly is comfortable with.

One again Tuicemen, nice post. Might be worth tidying it up and reposting it. It will serve as a good reference point for other would be users. >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 05:10:08 PM
:)% You must have had a conflict some where glad you got it running. >!

Well... this kinda sucks. The ha-bridge runs great. But following the same great instructions to install Homegenie... gives me nothing. The normal 127.0.0.1 takes me to the bridge screen. So now.... it's the same problem only the 2nd install was HG and it isn't there.
when you install HG and Port 80 is in use it tries to install to port 8080 or 8081 so try http://127.0.0.1:8080
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 05:13:07 PM
:)% You must have had a conflict some where glad you got it running. >!
One again Tuicemen, nice post. Might be worth tidying it up and reposting it. It will serve as a good reference point for other would be users. >!
Thanks! I'll split the discussion once we have Dave's HG setup displaying too.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 05:17:58 PM
Just copy paste this command. It will tell you what ports are in use and what is using which

sudo netstat -tulpn | grep LISTEN
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 19, 2018, 05:21:47 PM
Just copy paste this command. It will tell you what ports are in use and what is using which

sudo netstat -tulpn | grep LISTEN
I was looking for how to do that good tip!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 19, 2018, 05:30:37 PM
Just copy paste this command. It will tell you what ports are in use and what is using which

sudo netstat -tulpn | grep LISTEN
I was looking for how to do that good tip!

netstat is a very powerful and informative command when troubleshooting servers. Particularly good for Apache servers which can overwhelm your system.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 09:30:52 PM
I had a spare memory card,
I reloaded raspbian from noobs already on the memory card.
I followed the directions exactly...…

And once again got exactly the same results.

I have to assume there is some needed bit of information used in the setup.... not included in the instructions. Or my device is faulty.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 19, 2018, 09:40:25 PM
Just copy paste this command. It will tell you what ports are in use and what is using which

Believe me... I understand the idea of "fixing" a setup. I've been a part of that here for a decade or more. But that is not what I am trying to do here. I am looking for a product that works. A product that can be "fixed".... has little on no value.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 20, 2018, 05:33:26 AM
Just copy paste this command. It will tell you what ports are in use and what is using which

Believe me... I understand the idea of "fixing" a setup. I've been a part of that here for a decade or more. But that is not what I am trying to do here. I am looking for a product that works. A product that can be "fixed".... has little on no value.

The thing is the installation as outlined by Tuicemen does work. There's no "fixing" required here.

You are installing the HA Bridge on top of a working version of HomeGenie. In this case we need to know what port HomeGenie is using. If you could tell us this we can work out what port the HA Bridge has been assigned.

When you get to the stage of the working version of HomeGenie and before you install the HA Bridge could you tell us what port HomeGenie has been assigned to.
At this stage you can reassign a port number like port 8086 so when the HA Bridge is installing it will be installed to the default port 80.

I looked at your screen capture that showed the HA Bridge loaded and displayed and ready for configuring. Did you scrap that installation and start again.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 20, 2018, 10:20:00 AM
….. There's no "fixing" required here.

Yet... it doesn't work. Interestingly.... although Tuicemen has been (unsurprisingly) working diligently to resolve this issue. All I've read from you is repeated criticisms of me. I understand.... you have passions for Raspbian/Pi's/HG. But you aren't being helpful.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on August 20, 2018, 10:49:29 AM
….. There's no "fixing" required here.

Yet... it doesn't work. Interestingly.... although Tuicemen has been (unsurprisingly) working diligently to resolve this issue. All I've read from you is repeated criticisms of me. I understand.... you have passions for Raspbian/Pi's/HG. But you aren't being helpful.

I'm sorry you feel I'm criticising you. It certainly wasn't my intention. My aim was to help you and of course others to achieve a working platform for X10 on the Raspberry Pi as a credible alternative to AHP.

A number of users have already achieved this on the Home Assistant platform with the aid of instructions I posted on this forum. That was very promising. I have also posted a number of months back about HomeGenie as has Bkenobi another experienced user and of course Tuicemen in some very great detail. These contributions led TuicemenHtop post a very thorough and Indepth how to and as a result I'm aware of four users that are up and running because of it.

As part of the troubleshooting process over the last couple of posts I did ask you a number of questions to see if difficulties with your installation of HA Bridge could be resolved without starting from the beginning each time. Maybe you missed them, I'm not sure.

Anyway I'll leave you in the capable hands of Tuicemen for now. My future postings will be aimed at the general membership and if you find any use for them, well that's a good thing.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 20, 2018, 10:51:40 AM
@ HA Dave, as posted by petera paste the following into your terminal window and press enter.
Code: [Select]
sudo netstat -tulpn | grep LISTENIt will display what ports are being used and by what. If you installed ha-Bridge then HG both will be on separate ports.
Post a screen shot of the out put so we can determine what Port HG installed to as it installs to a free (unused port) by default which on clean Debian installs is usually 80
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 20, 2018, 11:03:23 AM

I'm sorry you feel I'm criticising you. It certainly wasn't my intention. My aim was to help you and of course others to achieve a working platform for X10 on the Raspberry Pi as a credible alternative to AHP.

Actually... no "feelings" involved here. I was just reading the words. You ought to try it. If you would have read mine... you would have realized the desire you assigned me.... had little to do with what I wanted to accomplished.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 20, 2018, 02:47:36 PM
I split this off the pi newbie HA-Bridge Guide to unclutter the thread.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 24, 2018, 09:32:37 AM
I'm not sure Dave if you missed this or just gave up?
@ HA Dave, as posted by petera paste the following into your terminal window and press enter.
Code: [Select]
sudo netstat -tulpn | grep LISTENIt will display what ports are being used and by what. If you installed ha-Bridge then HG both will be on separate ports.
Post a screen shot of the out put so we can determine what Port HG installed to as it installs to a free (unused port) by default which on clean Debian installs is usually 80

I've been playing with Mochad (the driver/software used by many Linux HA software) and believe this could be used with HA-Bridge to create a simple X10 hub.
I'll play with this idea over the week end.
 >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 24, 2018, 11:56:56 AM
Years ago (iPhone 4) I discovered Melloware (http://forums.x10.com/index.php?topic=16616.msg140342#msg140342) here on these forums. I believe it cost 10 or 20 dollars. For years... I ran the Melloware server software on an old XP netbook-like PC with a CM19A (mouse-like firecracker RF sender), and the Melloware, X10 commander (https://melloware.com/x10commander/) app on my iPhone(s). It gave me full remote control over all codes and devices... with the phone.

Recently... in my setup re-imagining... I took the PC and Melloware off-line.

But with the current considerations of ways to bring X10 on-line with Alexa and Google.... I revisited the Melloware-X10 Commander Web Site. (https://melloware.com/x10commander/)

And sure enough.... now with Amazons Alexa, and the Google device... they now offer (at no additional charge) a bridge that supposedly will allow Alexa to control the X10 setup. (https://forum.melloware.com/viewtopic.php?f=13&t=10950) I haven't tried it yet... but their pose (directions) are very clear.

Why can't X10 partner with these folks (https://melloware.com/partners/)(like so many other have already) and get X10 back on-line with useable software?!?!?!? 


Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 24, 2018, 12:05:10 PM
Not sure how that answers my question :o

Melloware appears to use HA-Bridge.
Google changed how they handle Hue calls so HA-Bridge will nolonger work with Google.
If you want a simple PI x10 Alexa Hub I or anyone can set that up in mins.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: brobin on August 24, 2018, 12:15:27 PM

If you want a simple PI x10 Alexa Hub I or anyone can set that up in mins.

Tuice, That's EXACTLY what I want. No schedules, timers or anything else. Basically, I just want a Pi replacement for Alex10 so I don't have to rely on keeping a PC running 24/7.  Teach me!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 24, 2018, 12:54:50 PM
Tuice, That's EXACTLY what I want. No schedules, timers or anything else. Basically, I just want a Pi replacement for Alex10 so I don't have to rely on keeping a PC running 24/7.  Teach me!

OK here is a rough how to:
if you have a pi up and running with Debian (doesn't matter if it is the full or lite) versions.
with the cm15 or cm19 disconnected from the pi
go to a terminal window simply install ha-bridge (you can use my script or build manualy).
Then install mochad again manualy or using my script.
you then need to cd to the ha-bridge folder and create a small script using nano called X10cmd (actually you can call it whatever)
in it add one line
Code: [Select]
echo "$@" | nc q l localhost 1099then save it and make it executable
plug in the cm15 or cm19 into the pi.
I'll create a simple script to do all this in one step(if demand is there) ::) :'
follow my ha-bridge guide but don't use the HG  on off commands unless you have that installed.
I'll update this for the x10cmd commands however for now the on/off calls for L5 wold look like this:
For ON
Code: [Select]
./x10cmd pl l5 onFor Off
Code: [Select]
./x10cmd pl l5 off
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 24, 2018, 08:34:47 PM
Not sure how that answers my question :o

I'd posted screen shots of what I was getting twice. The problem wasn't in the fixing (as far as I know)… it was in the setup. The directions were just far too general. I have NO desire to be taught coding or Raspbian... or whatever.

The setup for HG was excellent
.... except attention should have been paid (apparently) to ports and IP addresses. A returning to fix.. isn't a solution.
 
Most of the Internet of things (including the HA Hubs) are little more than a Pi or Pi-like device with a simple software install. I know of no reason... why this can't be thought out and compiled into a simple step-by-step, beginning-to-end.... like melloware did. Heck... I'd think X10 could market it... maybe even just sell the memory card image.

But as a product.... not a learning kit, o hobby project.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 25, 2018, 07:42:16 AM
I'd posted screen shots of what I was getting twice.
yes you did but you never posted a screen shot using the debug code I asked.
A single download installer I provided for HA-Bridge can't be any simpler, it is even a simpler install then the HG.
You got both GH and HA-Bridge installed but apparently have a port conflict or HG has loaded to a port your not expecting it to . Using
Code: [Select]
sudo netstat -tulpn | grep LISTEN in the terminal will display a screen like the attached showing ports in use.
I can make a simple KISS script (installer)which will auto install both HG and ha-bridge as well as anything else required. You'd only need to cut and paste one line into your terminal hit enter and sit back.

If I had a Pi 3b I'd even create a disk image with things pre installed and send you sadly I don't have one.  :( And from what I've read images from a 3b+ will not work on older PIs :(
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 25, 2018, 11:00:39 PM
…...A single download installer I provided for HA-Bridge can't be any simpler, it is even a simpler install then the HG.
You got both GH and HA-Bridge installed but apparently have a port conflict or HG has loaded to a port your not expecting it to .

Well thanks again... for the very same lesson in Pi programming. But as I have repeatedly posted.... I have no desire to take up another hobby. Don't take this wrong! I am sure code writing with Pi devices can be an enjoyable and gratifying hobby. But I am (and maybe countless millions of other home automation users)… not really interested. At least not right now.

I was more than happy to provide any info that might help you get the directions to a point where X10 users everywhere could download a Pi solution to X10's non-cloud problem. But a one-off fix.... doesn't help anyone... and it doesn't interest me. If we have 50 code/Pi hobbyist world-wide.... or if we inflate that number to maybe 75..... it will make no difference to X10. I actually believe.... making X10 more of a maker-craft hobby... hurts X10's reputation.

My ultimate desire would be to see a product so dependable and simple..... someone (if not X10) would market it. I don't think either of us did anything wrong. But we weren't heading in the same direct and we had different goals.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 26, 2018, 07:38:03 AM
I'm not trying to teach anyone Pi programing.
Even users of Windows programs run into port conflicts as well not helping a user with a issue is not teaching a user programing.
But a one-off fix.... doesn't help anyone... and it doesn't interest me.
Oh, but one off fixes do help many! they lead to what most want!
A single point and click installer I think is what most users want. Linux PI users frown on this as it teaches nothing.

Your giving up using a PI for now and I respect that!
When\if you decide to look at the PI again I hope you find any help you may need!
 >!

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: brobin on August 26, 2018, 01:23:45 PM

I'll create a simple script to do all this in one step(if demand is there) ::) :'


I would be part of that demand and hope others chime in ...I'd be very grateful!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 26, 2018, 07:20:17 PM
……. A single point and click installer I think is what most users want. Linux PI users frown on this as it teaches nothing.

I know... that was made very clear. Unfortunately I wasn't at a Pi, Linux, or raspbian forum.... I was at an X10 forum. I was hoping for an X10 fix.... not a Pi/Raspbian fix. I believe there are countless thousands of like-minded X10 users looking for a chance/opportunity to use X10 with their Echo and google devices. This week.... just like all previous weeks.... the solutions are all sold by OTHER home automation venders. 
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: HA Dave on August 26, 2018, 07:29:51 PM
I'll create a simple script to do all this in one step(if demand is there) ::) :'

I would be part of that demand and hope others chime in ...I'd be very grateful!

I get the impression that X10 has been convinced that the Home Automation community isn't interested in modern technology... like cloud computing.

I would think.... if our best interests were for X10 (as well as ourselves as X10 users). We'd want X10 to introduce a Pi coded device and downloads with server support complete with an Alexa skill/skills. Just like EVERY OTHER home automation product line on the planet.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on August 27, 2018, 06:50:09 AM

I'll create a simple script to do all this in one step(if demand is there) ::) :'


I would be part of that demand and hope others chime in ...I'd be very grateful!

Yesterday I started to play with this a bit more since I was rebuilding a SD card anyways.
It appears response time is a bit quicker then passing the codes to HG and HA though hardly noticeable.
 >!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: mike on November 02, 2018, 08:48:42 PM


It would be nice to see some other less experienced users try Tuicemen's install instructions to achieve this goal as I think he has made it very achievable for the average user.

I'm mighty green and a newbie.  :)  I today installed on pi zero W   HG & Ha-bridge on my 8gb stretch lite image - using tuicemen's install instructions step by step.  So congrats are in order to you guys for getting this to this point!  You are doing great!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: mike on November 02, 2018, 08:53:00 PM
Only issue I have is small one;  I had made a group called X10 and loaded it with a few of my most used switches and arm/disarm keyfob and test DS10 security door sw.   After changing HG port from 80 to 8080 (to free 80 for Ha-bridge) & restarting HG service, my X10 group is gone.  No big deal to rebuild it or maybe restore from my backup, but just a question.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on November 02, 2018, 09:01:33 PM


It would be nice to see some other less experienced users try Tuicemen's install instructions to achieve this goal as I think he has made it very achievable for the average user.

I'm mighty green and a newbie.  :)  I today installed on pi zero W   HG & Ha-bridge on my 8gb stretch lite image - using tuicemen's install instructions step by step.  So congrats are in order to you guys for getting this to this point!  You are doing great!

That's a welcome positive experience and one I hope is replicated with other prospective users. We will do what we can to make sure this happens.

Now that Mike is up and running hopefully others will follow. As a group we can put our stamp on how we see X10 evolving from here. With the help of JeffVolp, dave w, dhouston and others on the hardware side we could have something to drive X10 created by the members for the members. No more hanging on in the hope that a knight in shining armour will ride into town and rescue X10.

Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on November 02, 2018, 09:05:37 PM
Only issue I have is small one;  I had made a group called X10 and loaded it with a few of my most used switches and arm/disarm keyfob and test DS10 security door sw.   After changing HG port from 80 to 8080 (to free 80 for Ha-bridge) & restarting HG service, my X10 group is gone.  No big deal to rebuild it or maybe restore from my backup, but just a question.

That's an odd one. Was it a HomeGenie backup you took. If so could you restore it and report back on the status of HG after the restore. Always a good idea to do a HG backup if any major changes are made to your configuration.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: mike on November 02, 2018, 09:13:27 PM
yes, I made a HG backup.  made one before adding HAbridge and another after changing HG port to 8080 before restarting its service.  so I have two I can try to restore from just to see...   tomorrow
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: mike on November 03, 2018, 08:30:59 AM
Only issue I have is small one;  I had made a group called X10 and loaded it with a few of my most used switches and arm/disarm keyfob and test DS10 security door sw.   After changing HG port from 80 to 8080 (to free 80 for Ha-bridge) & restarting HG service, my X10 group is gone.  No big deal to rebuild it or maybe restore from my backup, but just a question.

That's an odd one. Was it a HomeGenie backup you took. If so could you restore it and report back on the status of HG after the restore. Always a good idea to do a HG backup if any major changes are made to your configuration.

backup info to share, but I suspect this is not the right place.  Should I start a new general thread about it?  Or new in the beta section?  Or post in the beta HG thread?  Or keep it to myself and not post in any location?
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: petera on November 03, 2018, 11:01:00 AM
Only issue I have is small one;  I had made a group called X10 and loaded it with a few of my most used switches and arm/disarm keyfob and test DS10 security door sw.   After changing HG port from 80 to 8080 (to free 80 for Ha-bridge) & restarting HG service, my X10 group is gone.  No big deal to rebuild it or maybe restore from my backup, but just a question.

That's an odd one. Was it a HomeGenie backup you took. If so could you restore it and report back on the status of HG after the restore. Always a good idea to do a HG backup if any major changes are made to your configuration.

backup info to share, but I suspect this is not the right place.  Should I start a new general thread about it?  Or new in the beta section?  Or post in the beta HG thread?  Or keep it to myself and not post in any location?

Start a new thread in the Beta section. Something along the lines of ........My experience setting up HG. It can be unique to you and act as a reference to others. You can add to it as you progress. Others can follow similar lines until we have a clear picture of HG on X10.

Hopefully with other successes this can be pushed to the mainstream.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: alzy on February 09, 2019, 02:15:38 PM
Looking for x10cmd script. Where can I find it? Any help wolud be appreciated. Thanks!
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: mike on February 09, 2019, 05:19:14 PM
Looking for x10cmd script. Where can I find it? Any help wolud be appreciated. Thanks!

What is "x10cmd script?"
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on February 10, 2019, 11:38:49 AM
Looking for x10cmd script. Where can I find it? Any help wolud be appreciated. Thanks!

What is "x10cmd script?"
The X10cmd is a script to send x10 commands via mochad.
This file is usually something you must make your self, however I have included it in the Alexa Hub image and it can be found in the HA-Bridge folder.
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: alzy on February 10, 2019, 12:28:46 PM
Would this x10cmd have to be modified for HA Bridge to send a x10 dim to a level type command rather than a dim by a fixed amount command?
Title: Re: Comments on Pi newbie HA-Bridge Guide
Post by: Tuicemen on February 10, 2019, 01:31:25 PM
The x10cmd is built as suggested in the Mochad README. for details on how to use it refer to that.
the readme can be found in the mochad folder.
I don't believe you need to add anything extra to it for dimming.
If you have difficult using it for dimming send the full command directly to Mochad as the readme suggests.