X10 Community Forum

📱🖥️PiX10Hub ( Always Evolving Open Source) => 🧾Wish list => ✔Implemented => Topic started by: alzy on December 29, 2018, 06:12:02 AM

Title: pix10hub on a cm19a capable Pi
Post by: alzy on December 29, 2018, 06:12:02 AM
For us cm19a users!
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 09, 2019, 09:05:54 AM
 :o
Several users have reported success with this and a CM19 if it weren't capable of being run from a Cm19 it wouldn't have been released as so.
I didn't expect Gene to jump in and add extra support for the CM19 to HG but kodos to him for doing so.

You'll never get the full benefit of the PXH running a CM19 or the older CM11 just like you couldn't from AHP.
Title: Re: pix10hub on a cm19a capable Pi
Post by: bkenobi on January 09, 2019, 12:28:26 PM
What's wrong with using a RPi3 or RPiZW?  Both should be capable of connecting to the CM19A, right?  Is the issue that HG is too much for the ZW?
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 09, 2019, 12:37:27 PM
It doesn't run properly on my R Pi Z W. The apparent conclusion is that I either have a sub par real Rpi Z W or a knockoff and that's why it no work right! i am as yet not convinced that this is the case.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 09, 2019, 12:38:19 PM
the CM19 works fine with the Zero W and HG petera and myself did a good bit of testing with this prior to including it in the PXH.
I believe what may be the issue is two servers + cm19 is to much for the Pi ZeroW though it did work for me for the short time I had HA-Bridge connected to it.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 09, 2019, 12:52:04 PM
I am confused. If the cm19a is stated as working with the Rpi Z W with the hub sw then it should work with all RPiz w's  from the production line that are within production tolerances. If it doesn't then it doesn't work on that hardware.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 09, 2019, 01:05:16 PM
I am confused. If the cm19a is stated as working with the Rpi Z W with the hub sw then it should work with all RPiz w's  from the production line that are within production tolerances. If it doesn't then it doesn't work on that hardware.
Exactly! if they came from the same production line and Quality control was up to par.
I worked on a production line for 30 years and never saw 100% quality day in and out.
Take a regular operator on the line out and replace them with a temp worker, 90% of the time quality suffers.
When Mexico started up building GMC trucks every Friday night they had to go looking for workers on the streets I sure wouldn't want a truck made on a friday night.
Either you have a configuration issue or a bad Pi ZeroW
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 09, 2019, 01:15:49 PM
EXACTLY my point. You don't know that when it works on a Pi Z its one that is the BEST off the line.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 09, 2019, 02:09:49 PM
I am confused. If the cm19a is stated as working with the Rpi Z W with the hub sw then it should work with all RPiz w's  from the production line that are within production tolerances. If it doesn't then it doesn't work on that hardware.

@alzy not wanting to get too involved in the "works on this, doesn't work on this " debate there are a number of considerations to ponder here.

1. Are you sure your CM19 is functioning 100%
2. Is the connection between your CM19 and the OTG usb cable 100%
3. Is the OTG USB cable fully compliant with standards. A lot of cheap repos out there for sale.

I point these things out as bad earthing on any leg of the connection can cause erratic and intermittent behaviour.

It might be worth ruling these factors out before you dig in any further to the software for your problem spending hours trying to resolve this issue.

What I can confirm from my end is that the CM19 is working in HG on all standard Raspberry Pis from Model 2 to Model 3 + and of course the the Pi Zero W.

I know how frustrating these issues can be but it's always useful to have backup hardware to swap in and out during the troubleshooting process.

Remember, it's a case of "it doesn't work for me" rather than "it doesn't work, full stop"
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 09, 2019, 02:19:59 PM
I don't think its an intermittent connection problem cuze the results are 100% the same after many , many tries.
I swapped out the OTG with another from a different maker and get the same error. B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 09, 2019, 02:57:50 PM
I don't think its an intermittent connection problem cuze the results are 100% the same after many , many tries.
I swapped out the OTG with another from a different maker and get the same error. B:(

I've not come across a bad Pi in the last 4 years of purchasing but of course that's not saying you don't have one.

Assuming you have disabled the HA Bridge service using sudo systemctl stop whateveryourbridgefilenameis.service from an SSH session taking the 3rd party server out of the equation and have HG directly address your CM19 there's little else to be done from a distance.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 12, 2019, 02:45:43 PM
I have found the cm19a to not work reliably with the Pi Zero W. I tried 2 different Zero's with zero results. It is not an rf problem.  >*<
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 12, 2019, 04:15:16 PM
I have found the cm19a to not work reliably with the Pi Zero W. I tried 2 different Zero's with zero results. It is not an rf problem.  >*<

I think at this stage it's accepted that HG in general and the CM19 in particular will work better on a Raspberry Pi 3 or better. You still need to rule out any possibility of noise on your power line though.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 12, 2019, 04:26:41 PM
During the testing a few users had issues creating SD image Cards of the PXH.
I'm wondering if this is what is at play here, or the size of ones setup as some reported good results while others have issues.
Alzy did you try a simple lite Raspbian image with just HG installed? ::)
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 12, 2019, 05:21:43 PM
No I didn't but I can look into that!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 12, 2019, 05:53:34 PM
No I didn't but I can look into that!

Makes no sense having a GUI installed on the SD card even if it is disabled. HG is a web based Api server and you should never need to connect to it for its GUI capabilities. All done from the Terminal locally if needed or an SSH remotely.

At this stage now that some are a lot more comfortable in the Linux(Raspbian in this case) environment and plans are afoot to ditch HA Bridge server in favour of HG EchoBridge it might be best to use a few copy/paste commands to install Raspbian on an SD card and the HG server software. This will ensure that users only receive software/firmware relevant to their own Raspberry Pi model on initial installation.

The simple fact is that the Pi Zero W is fine for a simple applications but, dare i use the term, for "power users" the standard Raspberry Pi model is the way forward. Maybe the goal was blindsided by the desire for a compact unit in favour of functionality and operability.

Now that everything will be integrated into HG maybe the need for a customised downloadable image will be less important than was initially anticipated. The copy/paste method really is fairly straightforward.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 11:16:23 AM
I confess to being linux challenged! Can you give a bit more detail on"copy/paste" method to install Reapbian lite and HG on an sd. From there we have great instructions for installing the HGE bridge. I would like to give that a try before giving up on the Pi ZW. I must say that personally I would not be happy with a setup that takes several seconds to turn on a light with a voice command or where Alexa says "device does not respond" and light turns on seconds later.
I guess I am just spoiled by the stellar response time and reliability of my current Alex10 install.

Thanks for any help! :)
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 13, 2019, 12:42:47 PM
I confess to being linux challenged! Can you give a bit more detail on"copy/paste" method to install Reapbian lite and HG on an sd. From there we have great instructions for installing the HGE bridge. I would like to give that a try before giving up on the Pi ZW. I must say that personally I would not be happy with a setup that takes several seconds to turn on a light with a voice command or where Alexa says "device does not respond" and light turns on seconds later.
I guess I am just spoiled by the stellar response time and reliability of my current Alex10 install.

Thanks for any help! :)
download the Raspbian lite image  and write to a SD disk
https://downloads.raspberrypi.org/raspbian_lite_latest
once written to the disk if you plan to access via SSH and Putty you'll need to add a blank ssh file(no extention) and a wpa_supplicant.conf file (attached just rename removing the .txt extention). Edit the wpa_supplicant.conf file then place in your Pi and boot.
once you open putty and log into your pi you can simply copy and paste the below lines one at a time hitting enter after each.
Note: login is user: pi password: raspberry
At the terminal type or paste sudo raspi-config
in the configuration screen expand your file system, set you time zone etc.
 once rebooted and logged back in use the  tutorial here starting at #3
http://forums.x10.com/index.php?topic=30427.msg174845#msg174845
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 01:18:52 PM
Thanks! That helps alot! :)%
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 04:53:34 PM
Hey, the good news is that I was able to follow instructions and install Raspbian Lite and HG. The bad news is device respond times can still be as long as about 8 seconds. I did not install HG Echo Bridge as yet. B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 05:09:22 PM
I disabled all programs and response is much better. Will need to do more testing tho. -:)
The HA bridge service is not running. Is that the way it should be?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 13, 2019, 05:49:00 PM
I disabled all programs and response is much better. Will need to do more testing tho. -:)
The HA bridge service is not running. Is that the way it should be?
Correct HA-Bridge should not be running and will not run unless you enable it.
If you have not set your router to reserve the IP for that PI you should also do that and port forwarding (some routers consider this the same but it isn't) that may speed things up a bit too.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 05:59:17 PM
OK one more stupid question.  i have HGEcho bridge installed. The gui for HG is at 192.168.1.8 and is static. I do not need to enter a port number to access it just the ip. Does that mean its port 80 and that's the port to enter for the HGE Bridge setup? And should I port forward it in router?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 13, 2019, 06:21:01 PM
80 is the port of HG unless you change it as no other server was detected when HG installed.
if you keep it at 80 then the HGEcho bridge port is 80 and the IP is that of your Pi.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 13, 2019, 07:21:01 PM
Alexa found devices but they do not respond and she reports that fact. What now? B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 13, 2019, 08:01:00 PM
Did you clear (forget) the old devices from Alexa prior to doing a discovery?
Let the Pi & HG run over night and do a device clear and rediscover in the morning.
It usualy takes a while for devices to sync in HG for some reason, At least for me they did.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 05:59:46 AM
Alexa found devices but they do not respond and she reports that fact. What now? B:(

If you look at the top right hand side of the screen you should see three circular icons. One is for X10, one for UPnP and one for Discovery. Is the Discovery icon greyed out.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 14, 2019, 07:24:43 AM
Actually you don't need the UPnP to be running it will slow things up on a Pi Zero W
You only want (need) the x10 and EchoBridge Icons showing.
I found my Pi needed a reboot to get Alexa working properly with the echo bridge So if that wasn't done try that. the service restart doesn't seem to get it working properly (at least not for me)
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 10:19:31 AM
For anyone struggling to get the EchoBridge working be mindful of the following

1. If you are an Alexa owner there's every chance you are already using listening ports to control your devices. You'll need to ensure you use a port in HG that no other service is using. Ports 8087 upwards are usually safe to use.

2. Do you have your HG system password protected. If so there's every chance you are getting a 401 unauthorised error code when enabling Discovery in HG. You can check this by running HG in debug mode. If this is the case clear your credentials in HG and re enable EchoBridge in HG.

3. It's not advisable to run the UPnP program in HG while running the EchoBridge so disable the UPnP program in HG

Installation and configuration of the EchoBridge program is poorly documented so a lot of trial and error was applied by users to get it working. Unfortunately these users never posted what worked for them.

Not being an Alexa user I only got a loan of one to try out today. Just to confirm, I used port 8087 in HG, disabled the UPnP program and deleted my HG security credentials (not too pleased about that. Ill have a look at the program to see if that can be changed)

I ran the Alexa discovery and all HG devices were discovered and respond to Alexa voice commands straightaway.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 10:37:44 AM
On the plus side for HG users here. This Alexa control using HG EchoBridge is purely a LAN operation. A nice bright sunny day and not a "cloud" in sight  rofl
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 14, 2019, 11:05:17 AM
3. It's not advisable to run the UPnP program in HG while running the EchoBridge so disable the UPnP program in HG
I ran the Alexa discovery and all HG devices were discovered and respond to Alexa voice commands straightaway.
Just to expand on this.
Gene added UPnP emulation for individual modules if this is enabled Alexa will discover the device but be unable to control it.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 11:18:09 AM
The HGE Bridge is enabled but icon in upper left is greyed out. So what's wrong. I am having no luck. Alexa app discovers devices but Alexa says they do not respond and they don't. I dissabled uPnP! No luck!!
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 14, 2019, 11:27:54 AM
The HGE Bridge is enabled but icon in upper left is greyed out. So what's wrong. I am having no luck. Alexa app discovers devices but Alexa says they do not respond and they don't.
try these if you haven't already.
1: restarted the HG service
2: disabled then re-enabled the echo bridge
3: reboot the pi
4: rediscover devices with Alexa app or web ui not Alexa device via voice
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 11:34:30 AM
The HGE Bridge is enabled but icon in upper left is greyed out. So what's wrong. I am having no luck. Alexa app discovers devices but Alexa says they do not respond and they don't.
try these if you haven't already.
1: restarted the HG service
2: disabled then re-enabled the echo bridge
3: reboot the pi
4: rediscover devices with Alexa app or web ui not Alexa device via voice
I click on restart service in Maintenance. I get the spinning wheel that says please wait and it never goes away!
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 14, 2019, 11:38:25 AM
A HG service restart that way can take some time to complete if you feel it is taking to long refresh the browser.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 11:48:56 AM
The HGE Bridge is enabled but icon in upper left is greyed out. So what's wrong. I am having no luck. Alexa app discovers devices but Alexa says they do not respond and they don't.
try these if you haven't already.
1: restarted the HG service
2: disabled then re-enabled the echo bridge
3: reboot the pi
4: rediscover devices with Alexa app or web ui not Alexa device via voice
I click on restart service in Maintenance. I get the spinning wheel that says please wait and it never goes away!

There's a known problem with Service Restart in HG. Just do the sudo systemctl restart homegenie.service from the SSH screen to properly restart HG.

Have you run all this in debug mode. It saves all the wondering what's going on moment. Just post the debug results and you'll get an answer easier.

It's all in the debug log. It's worth getting to know how to read the log to resolve your problems yourself.

Did you set a user name and password in HG.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 11:52:05 AM
I refreshed the browser, followed your steps and now I can't get to HG in browser! B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 12:07:50 PM
I refreshed the browser, followed your steps and now I can't get to HG in browser! B:(

Sounds like HG has bumped your port 80 number. If you've previously reserved the port 8080 for HA Bridge try port 8081 or 8082 in your browser

If you run HG in debug it will tell you exactly what port it is assigned to.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 12:23:37 PM
Port 8080 works. Bridge icon still greyed out! Still not working. get same results.And yse I updated bridge port to 8080 and its enabled.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 12:36:46 PM
Port 8080 works. Bridge icon still greyed out! Still not working. get same results.

Ok. Go into Maintenance section and HTTP and set the port for 8081. Exit to the main screen and then do the sudo systemctl restart homegenie.service in SSH session again.

Now run HG in debug mode. Enable, Disable and Enable EchoBridge and watch the SSH screen. If you could copy/paste the section of the debug that relates to this action I can see exactly how HG is handling this request. We need to find out exactly what HG is doing and not taking a guess.

Also could you confirm if you have a user name and password set in HG.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 12:39:33 PM
no un/ pw set in hg
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 01:04:47 PM
no un/ pw set in hg

Ok give me the results of what I suggested above.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 01:15:02 PM
I will in a bit when I recover a bit. >!
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 01:23:41 PM
BTW how do i change the HG port?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 01:24:51 PM
BTW how do i change the HG port?

Yes change it on the EchoBridge too.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 01:28:51 PM
I know that but how to I change the The HG port!
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 01:38:49 PM
For anyone struggling to get the EchoBridge working be mindful of the following

1. If you are an Alexa owner there's every chance you are already using listening ports to control your devices. You'll need to ensure you use a port in HG that no other service is using. Ports 8087 upwards are usually safe to use.

2. Do you have your HG system password protected. If so there's every chance you are getting a 401 unauthorised error code when enabling Discovery in HG. You can check this by running HG in debug mode. If this is the case clear your credentials in HG and re enable EchoBridge in HG.

3. It's not advisable to run the UPnP program in HG while running the EchoBridge so disable the UPnP program in HG

Installation and configuration of the EchoBridge program is poorly documented so a lot of trial and error was applied by users to get it working. Unfortunately these users never posted what worked for them.

Not being an Alexa user I only got a loan of one to try out today. Just to confirm, I used port 8087 in HG, disabled the UPnP program and deleted my HG security credentials (not too pleased about that. Ill have a look at the program to see if that can be changed)

I ran the Alexa discovery and all HG devices were discovered and respond to Alexa voice commands straightaway.

Guess you are one of the lucky ones!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 01:44:00 PM
Ok to change the port in HG go to Maintenance and Select the HTTP options. You will see a box that allows you to key in the port number you wish to use. Once you change the port number make sure it stays changed and restart HG as I showed you.

Also don't forget to change the port number in the EchoBridge to match the one you changed in the HTTP settings section.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 01:57:06 PM
Is debug mod same as genarating a log file?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 02:28:45 PM
Is debug mod same as genarating a log file?

Yes stop HG sudo systemctl stop homegenie.service
cd /usr/local/bin/homegenie
sudo mono HomeGenie.exe
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 02:44:44 PM
Attached is log. I have http port = 8082 and HGEB port =8081 and did enable/disable/enable HGEB
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 02:46:04 PM
Oops, here is log. see Attached
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 03:00:29 PM
Attached is log. I have http port = 8082 and HGEB port =8081 and did enable/disable/enable HGEB

No both HG and the EchoBridge need to be on the same port. Use 8081 in both cases for the purpose of this test. Remember when making changes to ports you need to restart HG each time like I showed you.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 03:22:50 PM
I've found quite a few errors in your log file. Most won't relate to your current problem but will need to be addressed at some stage. I've found one error that will prevent HGEB from working properly.

Have you gone solo and installed Raspbian and HG from another source other than the image file that Tuicemen supplied and then restored a copy of your HG configuration. If so could you type mono --version in SSH and paste the results.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:25:19 PM
So I make both ports =8081 in the gui. I do a sudo systemctl restart homegenie.service. After the restart http port is now 8082 not 8081! HGEB port stays =8081. What now? B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:26:50 PM
No i did precisely as T-man said. I am not smart enough at this to go solo!
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:29:07 PM
What do you want me to try now? Why all those errors?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 03:32:49 PM
What do you want me to try now? Why all those errors?

I'll deal with them later.......maybe Tuicemen is showing similar errors in his setup. Maybe he should check his log too.

Type sudo mono --version in SSH and paste results.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 03:35:13 PM
Btw copy/paste operations are no sign of smartness. It's the ultimate "monkey see, monkey do" task. No typing involved so no chance of errors.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:37:09 PM
pi@raspberrypi:~ $ sudo mono --version
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen
pi@raspberrypi:~ $
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:38:47 PM
Right! I See! I Do!
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 14, 2019, 03:39:23 PM
alzy is not running the distributed PiX10Hub he did a cut and paste of HG install I posted in the SBC Pi section.He should be running mono version distributed with Raspbian Stretch if running PiX10Hub mono ver would be 5.4.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 03:42:00 PM
I am running what T said to try. Raspbian Lite + HG no HA bridge.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 03:58:37 PM
I am running what T said to try. Raspbian Lite + HG no HA bridge.

Ok. Your Mono version puts a different slant on things.........

The problem you are experiencing here is you are missing a file or assembly that the EchoBridge requires to complete its execution. It's a missing dll file or assembly which is probably available in Mono 5.4 and not in Mono 4.62. This is probably all Greek to you but that's the reason why EchoBridge is not working on your system

You are using Mono 4.62 and not Mono 5.4 which Tuicemen states he is using I assume. I also assume if his image included Mono 5.4 I suggest you install from his image, disable HA Bridge, restore your HG backup configuration.

Maybe someone could clarify this.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 04:13:58 PM
So I have been  >*<?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 04:19:27 PM
Without being too technical here's your problem

2019-01-14 14:38:34.2468 Debug Enabling Interface HomeAutomation.EchoBridge
2019-01-14 14:38:34.2797 Info Starting HGEchoBrige Version 1.0.21.0
2019-01-14 14:38:34.4115 Debug FF-FF-1D-26-07-0D-02-11-00-00-00-00-00-00-00
2019-01-14 14:38:34.4141 Info Mig: Connecting to Homegenie API [192.168.1.8:8081] to discover valid devices
2019-01-14 14:38:34.4169 Info Log: Connecting to Homegenie API [192.168.1.8:8081] to discover valid devices
2019-01-14 14:38:34.4374 Error System.TypeLoadException: Could not load type 'MIG.Interfaces.HomeAutomation.Api.HgApiHelper' from assembly 'MIG-EchoBridge, Version=1.0.21.0, Culture=neutral, PublicKeyToken=null'.
  at MIG.Interfaces.HomeAutomation.EchoBridge.Connect () [0x0008c] in <e39b2f3c931b42b5ae3b0f08eca3148d>:0
  at MIG.MigService.EnableInterface (System.String domain) [0x0003e] in <01eec8bfa28f444d82b2dc82f7810fbf>:0
  at MIG.MigService.StartService () [0x00093] in <01eec8bfa28f444d82b2dc82f7810fbf>:0
2019-01-14 14:38:34.4595 Info HomeAutomation.HomeGenie  0       HTTP binding failed.    SystemInfo.HttpAddress  +:8081

You can see from the log where EchoBridge is failing. It continues to try connecting with no success.The line in bold refers to the missing assembly.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 04:22:34 PM
That's what I said. I have been >*<!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 04:26:16 PM
That's what I said. I have been >*<!

Was there a reason why you went solo on the install and stopped using the Tuicemen downloadable image.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 04:48:20 PM
I'm off line shortly.Before I go if you want to ensure you have the latest version of Mono installed, before you install HG, copy/paste these lines into your SSH session. The commands below assume you have a fresh install of Raspbian and already configured with a blank SSH file and wpa_supplicant.conf file

sudo apt install apt-transport-https dirmngr

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb https://download.mono-project.com/repo/debian stable-raspbianstretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt update

Once you've completed this, copy/paste the following lines

wget https://github.com/genielabs/HomeGenie/releases/download/v1.2-stable.34/homegenie_1.2-stable.34_all.deb

sudo apt-get update

sudo apt-get install gdebi-core

sudo gdebi homegenie_1.2-stable.34_all.deb

When this is completed you will have the latest version of Mono installed along with the latest version of HG. No need to worry disabling HA Bridge as it won't be installed. This should sort out you EchoBridge problem.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 05:00:10 PM
yes because its performance was unacceptable!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 05:07:07 PM
yes because its performance was unacceptable!

Well those copy/paste instructions I just posted are exactly what I am using with the CM19 and they work well.No other unwanted software will be installed either.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 05:56:39 PM
Thanks! I'll give it a try! Do i start with Raspbian or Raspbian Lite? And if its Raspbian , pleaseeee give me the link so i don't accidentally install wrong version.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 06:18:02 PM
Thanks! I'll give it a try! Do i start with Raspbian or Raspbian Lite? And if its Raspbian , pleaseeee give me the link so i don't accidentally install wrong version.

Raspbian Lite from here https://downloads.raspberrypi.org/raspbian_lite_latest
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 07:31:20 PM
Ok, did all that but can't find the HG gui. B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 14, 2019, 07:52:47 PM
Tried a different browser and got the gui!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 07:55:31 PM
Ok, did all that but can't find the HG gui. B:(

Did you check to see if HG is running. Type sudo systemctl status homegenie.service in the SSH session
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 14, 2019, 07:57:33 PM
Now in a SSH session type mono —version
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 07:57:48 AM
Here it is. BTW Alexa still not able to control devices. I have the same issue as before the rebuild. Will post debug log next.

pi@raspberrypi:~ $ sudo mono --version
Mono JIT compiler version 5.18.0.225 (tarball Wed Jan  2 21:56:28 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug
        Interpreter:   yes
        LLVM:          yes(600)
        Suspend:       preemptive
        GC:            sgen (concurrent by default)
pi@raspberrypi:~ $
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 08:14:30 AM
Debug log attached!
BTW should HTTP Service cache be enabled in HTTP Settings? It isn't. B:(
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 08:35:35 AM
Debug log attached!
BTW should HTTP Service cache be enabled in HTTP Settings? It isn't. B:(
The one thing that stands out to me besides the errors is you still have UPnP enabled. UPnP must be disabled for the echo bridge to work properly 
I have the echo bridge running on three different pi ZeroW boards though not all respond to Alexa commands with the same speed. ::) :'

Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 08:38:19 AM
I forgot that I will disable and retry w/Alexa
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 08:39:07 AM
This is what I am doing to generate log. Is it correct?

sudo systemctl stop homegenie.service
cd /usr/local/bin/homegenie
sudo mono HomeGenie.exe

then in HG I enable/disable/enable/etc. the HGEBridge
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 08:42:48 AM
Disabled UPNP and still not working.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 08:53:38 AM
Is the echo bridge icon at the top greyed out? or bright like the X10 icon?
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 08:57:14 AM
Its always been greyed out. I mentioned that  a couple times this week, but no one seemed concerned. If we fix whats causing that maybe things will work. just my humble opinion.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 09:26:12 AM
The icon being greyed out indicates it isn't working correctly and something in your setup is messing with it. That's why petera had you do the log. I see HG can't find some files which may be the cause of this. Try doing a HG factory reset configuration/maintenance /configuration and data/factory reset Load the echo bridge and set it up and disable UPnP(nothing else) then do a log.  I'm wondering if your HG backup is corrupting things.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 09:38:18 AM
This is what I am doing to generate log. Is it correct?

sudo systemctl stop homegenie.service
cd /usr/local/bin/homegenie
sudo mono HomeGenie.exe

then in HG I enable/disable/enable/etc. the HGEBridge
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 10:14:46 AM
did factory reset. Installed HGEB per your instructions. Seemed to proceed normally, but it does not showup under interfaces. Now what?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 10:44:23 AM
you have to load (install) the echobridge as before. The factory refresh doesn't include any user created programs or interfaces did you reboot your pi?
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 10:47:21 AM
read my post. I did it as before. Uploaded the zip file and installed, but it didn't show up Under interfaces even after a reboot. so again, now what?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 10:48:38 AM
If it doesn't show up it didn't install try reinstalling
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 10:55:30 AM
did factory reset. Installed HGEB per your instructions. Seemed to proceed normally, but it does not showup under interfaces. Now what?

A factory is exactly that. A default installation without any added programs like EchoBridge

Now that you have it set to default could you move slowly through the following instructions

1. With the default install and without restoring your previous HG backup config could set HG to use port 8081

2. Could you disable UPnP

3. Could you go to X10 settings and select CM19, assuming you're using a CM19 and enable X10

4. In the SSH session type sudo systemctl restart homegenie.service

5. Once HG is back running you will access it in the browser by adding 8081 to the HG ip address

6. Now in Settings install the EchoBridge package

7. Once installed go to EchoBridge and in IPAddress use the Pi ip address and port number 8081. Enable the EchoBridge

8. Again restart HG using sudo systemctl restart homegenie.service

9. Once HG is restarted if the EchoBridge icon in the top right screen is bright grey your discovery service is working. If not go back into EchoBridge and Disable/Enable

Please report back once you have completed the above and before you try anything else.

9.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 11:07:43 AM
Here is the log T man asked for. I will now work on petera's last request
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 11:12:27 AM
Here is the log T man asked for. I will now work on petera's last request

Troubleshooting is a little manic at the moment. Take slow steps and report back rather than ploughing through to system breaking point. I'm giving you instructions on exactly what worked for me while closely monitoring the logs. You log capture method is fine.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 11:27:37 AM
I know what the factory reset is and I installed HGEB after the reset.

 I will start again with a factory reset and use petera's steps.

BTW, In all this I have never yet seen the HGEB icon "Bright" :(
Title: Re: pix10hub on a cm19a capable Pi
Post by: bkenobi on January 15, 2019, 11:27:56 AM
This is what I am doing to generate log. Is it correct?

sudo systemctl stop homegenie.service
cd /usr/local/bin/homegenie
sudo mono HomeGenie.exe

I stop the HG service and then when I start it I redirect the output to a file.  What you are doing is fine but you will have to copy/paste the text from the SSH window.  If you are happy with that approach continue.  If you want to have the log saved to a file instead:

Code: [Select]
sudo mono HomeGenie.exe > /home/pi/HG.log
If your using a different user, change "pi" to that login.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 11:46:35 AM


BTW, In all this I have never yet seen the HGEB icon "Bright" :(

And you won't till we get client/server communication setup correctly for EchoBridge. The discovery service is not working until that icon shines brightly.

That's why I'm loathe to suggest anything until I see functioning HG logs, otherwise it's just a crap shoot.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 11:51:42 AM
petera- Monkey saw, monkey did, but no bright icon. BTW I using cm11. B:(


bkenobi- Thanks for the info!
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 12:01:12 PM
alzy you really should be trying this with your CM19, Unless someone else has the ZeroW ,Cm11, HG configured with the echo bridge working.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 12:03:35 PM
What! The Pi Z W by your own admission is not cm19 compatible! >*<
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 12:04:40 PM
Besides ths isn't an x10 IF problem. that's just a red herring!
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 12:07:24 PM
It looks like HG needs some fixing. Maybe T man can discuss this issue with G Man.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 12:17:50 PM
Besides ths isn't an x10 IF problem. that's just a red herring!

Stop right now!!!!!!

Look at the title of your post. That's the test rig I set up here to help you with your problem.

You're now telling me that's not what you are using  B:(

Okay. Just for the record. The CM19 is working fine with the Pi Zero W from my perspective. I cannot speak for others.

If Tuicemen has his EchoBridge working on a Raspberry Pi Zero W and his CM15 using the image he has made available for download I suggest you follow his lead

Really, you are now having a pop at Gene the author of HG. Are you listening to what others are saying. The damn thing is working, it's just not working for you.

Now could you possibly post the logs of the attempt you had with my instructions I just posted if you wish to continue. If not just let me know.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 12:29:15 PM
You didn't ask for logs in the last list of instructions. You wanted to know if the bright lite came on, it didn't.
I will redo with logging.

I will move to the cm19 when the bridge is working. The cm19 seemed to be challenging the processing power of the Pi Z, so how can we ever know if the bridge issue is a HG issue or Pi issue unless we remove it from the equation.

Can we proceed?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 01:04:12 PM
What! The Pi Z W by your own admission is not cm19 compatible! >*<
I never said that! I have a pi zero W here running a cm19 and the echo bridge and it actually runs just as well as the cm15 if not better. I actually have the echo bridge setup on three Pi Zeros and have set it up on 6 Cards.
As petra pointed out the title of the thread it doesn't say "cm11a" you stated you tried the cm11 and it worked better then the cm19.
 Since you never started a thread for echo bridge and cm11 we all assumed you were trying this with the cm19.
Since I don't own one I can't help you !
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 01:12:16 PM
You didn't ask for logs in the last list of instructions. You wanted to know if the bright lite came on, it didn't.
I will redo with logging.

I will move to the cm19 when the bridge is working. The cm19 seemed to be challenging the processing power of the Pi Z, so how can we ever know if the bridge issue is a HG issue or Pi issue unless we remove it from the equation.

Can we proceed?

Ok report back basically meant report back with logs. I stated earlier I can't troubleshoot without them.

Now that we are clear on the CM19 working with the Raspberry Pi ZeroW can we revert the setup to the title of the original post and work from there.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 01:23:17 PM
Ok now back to the cm19. Will redo petera's HGEB setup process with logging.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 01:52:49 PM
Now using cm19 with petera's setup procedure. 2 logs attached. #2 is right after factory reset. #3 is right after item 4 HG service restart. HGEB icon did not turn bright.  thanks!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 02:17:03 PM
Now using cm19 with petera's setup procedure. 2 logs attached. #2 is right after factory reset. #3 is right after item 4 HG service restart. HGEB icon did not turn bright.  thanks!

From your log the client (EchoBridge) is now connecting to the server (Homegenie)

Please confirm the following

1. You have disabled the UPnP service
2. You have disabled all unnecessary programs in the Programs section.
3. The port settings in the HTTP section is 8081
4. The EchoBridge port is 8081
5. After all this you have restarted HG as I showed you previously.
6. You didn't restore your old HG backup configuration

Could you just answer yes or no to the above
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 02:22:53 PM
1. You have disabled the UPnP service -YES
2. You have disabled all unnecessary programs in the Programs section-NO. not in setup process 9 item list
3. The port settings in the HTTP section is 8081-YES
4. The EchoBridge port is 8081-YES
5. After all this you have restarted HG as I showed you previously.-Yes
6. You didn't restore your old HG backup configuration-Correct

What do the logs tell you?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 02:34:18 PM
1. You have disabled the UPnP service -YES
2. You have disabled all unnecessary programs in the Programs section-NO. not in setup process 9 item list
3. The port settings in the HTTP section is 8081-YES
4. The EchoBridge port is 8081-YES
5. After all this you have restarted HG as I showed you previously.-Yes
6. You didn't restore your old HG backup configuration-Correct

What do the logs tell you?

Firstly, disable all the unused programs in the Programsection. Go through each category and you should easily see what you won't be using. If in doubt about a program just ask here.

When that is complete restart HG as I showed you. From this point start logging.

Now go into EchoBridge and disable and enable it again. At that point stop logging and post the log here.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 02:53:59 PM
Log attached recorded after disabling programs.Thanks!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 03:34:52 PM
Log attached recorded after disabling programs.Thanks!

Ok. You have a problem with an assembly called System.Net.Http. Now this probably means nothing to you but it basically the assembly used to make the gateway discovery call between EchoBridge and HG. The EchoBridge MIG needs recompiling to make it work on the setup your have now.

The only way to resolve this is to get you back to Mono 5.4. The quickest way to do this is to download Tuicemens image and follow his instructions for installing the EchoBridge.

Remember once you have Tuicemens image downloaded you need to disable the original HA Bridge server. Once you have Tuicemens image up and running start a new post and we can guide you from there.

@Tuicemen, as I suspected this EchoBridge MIG package will need recompiling on the current version of Mono so one good reason to lock Mono 5.4 to your install.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 03:48:34 PM
I don't believe mono is the issue here as your running the same mono or so you stated. Did you recompile the echo bridge for your setup?
alzy log shows missing files in the HG folders which I have in all my HG pi setups (one isn't a PXH image)
I wonder if an apt-get update/upgrade may help here.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 04:09:07 PM
I don't believe mono is the issue here as your running the same mono or so you stated. Did you recompile the echo bridge for your setup?
alzy log shows missing files in the HG folders which I have in all my HG pi setups (one isn't a PXH image)
I wonder if an apt-get update/upgrade may help here.

I have my own version of HG I compiled from the GitHub. It's heavily modified and wouldn't be suitable for download for the novice user. I've recompiled most of the automation programs and MIG packages as have many of the other seasoned HG users and am using the latest version of Mono. If you don't think Mono is the problem have a closer look at your folders compared to his.

I don't use the gdebi installer so I get to decide what I want included or excluded.

By all means alzy and yourself can manually sift through the folders on his system to find out what files are missing but the Csharp compiler is showing missing assembly files or possibly dll files.

Usually a sign that a program was compiled in an earlier version of Mono and needs recompiling to run under the current updated version.

I suggested using your downloadable image for his setup as you have a working version of EchoBridge operating normally. It would seem to be the quickest and most logical route and possibly simplist one to take at this stage
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 04:39:33 PM
Ok, I didn't realize you had a custom HG build, that would explain a lot.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 04:50:06 PM
Ok, I didn't realize you had a custom HG build, that would explain a lot.

When a user has problems with his or her install I will only assist once logs are provided. While in a lot of cases I could probably guess what the problem is the logs will confirm this and possibly other issues which may not be obvious but could be contributing to this.

I highly recommend this method of troubleshooting with HG as problems can be easily identified and remedied from the logs. Takes all the guesswork out of it.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 04:52:58 PM
So is the consensus that what I should do from here is reformat this sd card, install PXH v1.1 , then disable HA bridge, then install HGEBridge? Please confirm, thanks!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 04:55:30 PM
@Tuicemen might be worth reading up on this link as the error alzy reported from his logs directly relates to one of these HttpClient https://www.nuget.org/packages/System.Net.Http/
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 04:58:54 PM
So is the consensus that what I should do from here is reformat this sd card, install PXH v1.1 , then disable HA bridge, then install HGEBridge? Please confirm, thanks!

Yes that would be the most logical from this end. Maybe Tuicemen may have other thoughts on it. You would then have an identical system to Tuicemen so all you have to do is copy his settings and your EchoBridge is up and running.

Don't forget you logs tell you so much about your system particularly when you experience problems. Use them to good effect when looking for solutions.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 05:51:02 PM
But this is where I started on page 1 of this thread, with that configuration and poor cm19 performance so is the only addition here is that a debug log will be run to uncover the issues?
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 15, 2019, 06:02:11 PM
So is the consensus that what I should do from here is reformat this sd card, install PXH v1.1 , then disable HA bridge, then install HGEBridge? Please confirm, thanks!
Since my setup is basically the PiX10Hub image with no modification to HG or the included Programs I would suggest this route.

If your log still shows missing files when your running the exact same configuration then something else is at play (bad image write or download)
The issue on page one here was poor CM19 performance not your inability to get echo bridge working. Jumping around from one issue to another just confuses things. the log file my show us the cause of your cm19 performance issue and my not but I'm not about to be jumping from one issue to another.
lets focus on the echo bridge and getting that working for you with the cm19 first.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 15, 2019, 06:48:55 PM
ok, got it.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 15, 2019, 07:32:27 PM
When using user created programs like the EchoBridge there's always a chance they are not being maintained regularly. This results in some programs falling out of sync with particular versions of Mono.

Remember this program was created and tested around HomeGenie BE, a fork of the original HG application and as such was certified to run on that platform only. Some have managed to get it running on Genes latest version with a little trial and error.

@Tuicemen you might want to install the HG BE version, test drive your install on it and compare its logs to your current setup's logs paying particular attention to how EchoBridge performs. Bear in mind that HG BE does not include support for the CM19 but it will give you an idea of what version Mono was used for all that testing.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 07:57:24 AM
Attached is the debug log for this process:
1. Reformated SD
2.Installed PXH 1.1 and setup
3.Disabled HA Bridge
4.Started logging
5.Installed HGEBridge
6.Setup with IP & Port
7. Did a few Enables/Disables of bridge
8.Selected X10 interface cm19 & enabled

At the end of the session I did a refresh on the HG screen I was in and I think it crashed. Thanks again for the help.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 08:36:44 AM
Attached is the debug log for this process:
1. Reformated SD
2.Installed PXH 1.1 and setup
3.Disabled HA Bridge
4.Started logging
5.Installed HGEBridge
6.Setup with IP & Port
7. Did a few Enables/Disables of bridge
8.Selected X10 interface cm19 & enabled

At the end of the session I did a refresh on the HG screen I was in and I think it crashed. Thanks again for the help.

The good news is that the Discovery service started. Unfortunately Mono experienced a segmentation fault and shut down to protect the system.

Have you restarted HG now that the CM19 instead of the CM15 has been enabled. I want to get rid of those faults from the log.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 08:39:20 AM
No should I restart and repeat enabling of HGEB?
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 08:50:02 AM
I did a reboot. the Bridge icon is bright. I will add a device and check discovery. i will disable UPNP and programs also.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 09:00:13 AM
I did a reboot. the Bridge icon is bright. I will add a device and check discovery. i will disable UPNP and programs also.

As I thought with the CM15 driver being enabled from boot and the Discovery service and the UPnP service running Mono runtime went into a loop and shutdown.

As you can see the Discovery service is operating using Mono 5.4 so that's a helpful hint for others. Remember to disable any other programs that are not required. You're still showing the dreaded Boiler Switch in the logs but that can manually be removed.

Could you now post your log after reboot so I can see if everything else is working normally and if you need to remove any other redundant operations from HG.

Note to other users. Please don't waste your time and others reporting non working elements of HG unless you post your logs with your problem. It really makes no sense otherwise.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 09:41:12 AM
After many, many forget/discover cycles Alexa shows my devices. It's control of them is erratic in that She says ok but device does not always respond. I notice the same thing when I control the device with HG gui. gui will respond but cm19 does not transmit (no led flash) when I get flash I get device response, no flash, no device response. here is a log of some attempts with Alexa. Does it tell u anything. I have never had reliable response using either of my 2 cm19a which both work very reliable when used with Alex10, that is why I was testing before with the cm11. The attached log of Alex activity may help. Thanks!

The other thing that happened for the second time now is HG crashes w/no access to gui.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 10:38:55 AM
After many, many forget/discover cycles Alexa shows my devices. It's control of them is erratic in that She says ok but device does not always respond. I notice the same thing when I control the device with HG gui. gui will respond but cm19 does not transmit (no led flash) when I get flash I get device response, no flash, no device response. here is a log of some attempts with Alexa. Does it tell u anything. I have never had reliable response using either of my 2 cm19a which both work very reliable when used with Alex10, that is why I was testing before with the cm11. The attached log of Alex activity may help. Thanks!

The other thing that happened for the second time now is HG crashes w/no access to gui.

Could you post those logs again. The download was just garbage.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 10:49:07 AM
Here you go! thanks!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 10:55:13 AM
When I've checked the the logs and responded what I'm going to get you to do next is

1. Disable your CM19 in HG x10 settings
2. Shutdown HG using sudo systemctl stop homegenie in the SSH session
3. sudo apt update
4. sudo apt upgrade
5. Power down your Pi with sudo shutdown now and unplug the power
6. Remove your CM19 controller from the Pi
7. Plug in your CM11 controller to the Pi
8. Plug in your Pi
9. Access the HG from your browser and in X10 settings change your port to CM11

When complete you should now use the Alex discovery and firstly Forget all devices and once again Discover devices.

Post the logs again when you complete this.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 11:04:29 AM
After many, many forget/discover cycles Alexa shows my devices. It's control of them is erratic in that She says ok but device does not always respond. I notice the same thing when I control the device with HG gui. gui will respond but cm19 does not transmit (no led flash) when I get flash I get device response, no flash, no device response. here is a log of some attempts with Alexa. Does it tell u anything. I have never had reliable response using either of my 2 cm19a which both work very reliable when used with Alex10, that is why I was testing before with the cm11. The attached log of Alex activity may help. Thanks!

The other thing that happened for the second time now is HG crashes w/no access to gui.

You've changed the format of the log file or how you are saving it. Could you use the method you used yesterday. It's not readable here.

Could you post those logs again. The download was just garbage.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 11:11:18 AM
OK, I think this file should work. I will wait for your feedback before i do that next test you suggested.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 11:14:08 AM
OK, I think this file should work. I will wait for your feedback before i do that next test you suggested.

It worked because you reverted to plain text. Checking now and will revert
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 11:24:59 AM
I had selected .txt previously but it didn't save it that way so resaved it as .txt. Let me know when to proceed.thanks.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 11:31:07 AM
I am still seeing the double click issue with the cm19 that I have always seen with PXH 1.1. After a period of no activity with the first click on a device to turn it on I get no led flash and it does not respond. On the second click I get led flash and the device responds. I tried 2 Rpi Z Ws and 2 cm19s and get same issue.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 11:37:26 AM
I had selected .txt previously but it didn't save it that way so resaved it as .txt. Let me know when to proceed.thanks.

Ok. Once again your Discovery service is working fine. Response times between client and server are 0.5 sec or less. You are back to your original issue about your CM19's slow response. I still reckon you have an issue between your CM19 and your transceiver. In that case I suggest you swap out your transceiver for another one and alternate your between it and the two CM19s you have. You could have noise on your lines too. Not my area of expertise so I'll leave that to the X10 hardware gurus.

Just to confirm that all software is operating normally as per the logs. No indication of a crash on the logs either you posted. Just be a little careful when you are enabling/disabling services.Leave a few seconds between each operation.

Before proceeding to the instructions I posted, take an image of the card you are using. When that image read completes, proceed as instructed. I imagine that will be in 30 minutes or so.

Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 11:46:55 AM
I do not have an rf problem or a noise prob. My operation with with Alexa using Alexa10 with all the same hardware in all the same locations is rock solid and has been for the 2 years I have been using Alexa. I have a whole house v572 RF tranceiver not one of those little x10 units. The issue is with the PiXH sw/driver/or processing.That is the only time I see the issue and as I say with teh exact same hardware in the exact same location in the exact same "noise" environment.

I wil do your nex test now. Thanks
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 12:07:05 PM
I do not have an rf problem or a noise prob. My operation with with Alexa using Alexa10 with all the same hardware in all the same locations is rock solid and has been for the 2 years I have been using Alexa. I have a whole house v572 RF tranceiver not one of those little x10 units. The issue is with the PiXH sw/driver/or processing.That is the only time I see the issue and as I say with teh exact same hardware in the exact same location in the exact same "noise" environment.

I wil do your nex test now. Thanks

Ok let's put it this way. The PiX10 hub with CM19 doesn't function well for you. That's all we are talking about here. I did suggest if you could stretch your budget to a Raspberry Pi 3b+ you may well experience more satisfactory results but that will only be verified if you choose that route.

Meanwhile report back on the latest round of test when you have them.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 12:41:01 PM
attached are 2 logs. Note that I could not get alexa to discover devices at the end until I went in and disabled/re enabled HGEBridge. Thanks again!
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 12:45:57 PM
I agree the PXH with the cm19 does not function properly for me.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 12:56:33 PM
attached are 2 logs. Note that I could not get alexa to discover devices at the end until I went in and disabled/re enabled HGEBridge. Thanks again!

Hold on.....you're not getting away that easily.

What are response times like on your devices now. Have all your devices been discovered by Alexa
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 01:03:20 PM
With the cm11 they are around 1 sec or less for the one device I have configured. sometimes the device responds before Alexa says OK!  The CM11 does not respond to a dim command though so that's a problem. The cm19a does.

With Alex10 device respond has always been about 1 second with the cm19.

The logs show anything?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:06:17 PM
There's a couple of other issues in your setup that need to be addressed.

What I want you to do now in a SSH session is type the following

sudo nano /etc/modprobe.d/blacklist.conf and press return and copy paste the results here. Press ctrl x to exit the editor.

As far as I know you'll be the first to have the CM11 working on Raspberry Pi Zero W HG using the EchoBridge so I want you to do a write up on how you achieved this as payment for all our hard work  rofl. Seriously something like this will help others.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:09:08 PM
With the cm11 they are around 1 sec or less for the one device I have configured. sometimes the device responds before Alexa says OK!  The CM11 does not respond to a dim command though so that's a problem. The cm19a does.

With Alex10 device respond has always been about 1 second with the cm19.

The logs show anything?

What's the format of your Dim command
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 01:14:56 PM
login as: pi
pi@192.168.1.8's password:
Linux X10Hub 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jan 16 12:25:31 2019 from 192.168.1.152
.......................................................................
HA-Bridge is installed ensure Security is enabled, default port is 80
HomeGenie is installed ensure Security is enabled, default port is 8080
Your X10Hub IP address is: 192.168.1.8
........................................................................

pi@X10Hub:~/X10Hub $ sudo nano /etc/modprobe.d/blacklist.conf
  GNU nano 2.7.4         File: /etc/modprobe.d/blacklist.conf         Modified



















^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line


Be glad to do a write up once cm11 dims by voice command.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:20:40 PM
login as: pi
pi@192.168.1.8's password:
Linux X10Hub 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jan 16 12:25:31 2019 from 192.168.1.152
.......................................................................
HA-Bridge is installed ensure Security is enabled, default port is 80
HomeGenie is installed ensure Security is enabled, default port is 8080
Your X10Hub IP address is: 192.168.1.8
........................................................................

pi@X10Hub:~/X10Hub $ sudo nano /etc/modprobe.d/blacklist.conf
  GNU nano 2.7.4         File: /etc/modprobe.d/blacklist.conf         Modified



















^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^U Uncut Text^T To Spell  ^_ Go To Line


Be glad to do a write up once cm11 dims by voice command.

I assume that file was blank. Is that correct
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 01:22:05 PM
yes
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:32:59 PM
yes

Ok. That's fine

Did you define any X10 devices/modules on your install yourself. Remember Tuicemen does not use Dim Devices so have you set them up properly.

Have you tried dimming them manually in HG

Have you tried the HG MIG HomeAutomation command from your web browser to dim.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:38:08 PM
Assuming that a device called Table Lamp is set as a dimable device have you tried saying

Alexa Table Lamp 50

If so what response did you get
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 01:45:58 PM
I'm off line shortly so hurry up
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 01:51:34 PM
Did you define any X10 devices/modules on your install yourself. Yes 1 device as a dimmer.

Have you tried dimming them manually in HG-yes it works although sometimes with a loooooong delay

Have you tried the HG MIG HomeAutomation command from your web browser to dim.-yes works

I may not have the words correct:
 "Alexa, desk Lamp Control level 50" No work!
"Alexa, desk Lamp Dim level 50" No work!
"Alexa, desk Lamp Dim 50 " No work!
"Alexa, desk Lamp Dim 50 %" No work!
"Alexa, desk Lamp 50" No work!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 02:19:01 PM
Did you define any X10 devices/modules on your install yourself. Yes 1 device as a dimmer.

Have you tried dimming them manually in HG-yes it works although sometimes with a loooooong delay

Have you tried the HG MIG HomeAutomation command from your web browser to dim.-yes works

I may not have the words correct:
 "Alexa, desk Lamp Control level 50" No work!
"Alexa, desk Lamp Dim level 50" No work!
"Alexa, desk Lamp Dim 50 " No work!
"Alexa, desk Lamp Dim 50 %" No work!
"Alexa, desk Lamp 50" No work!

Ok assuming you have that device/module set up as a dimmer correctly the command that works here is Alexa desk lamp 50
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:35:25 PM
Doesn't work for me.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 02:35:52 PM
Now that you have a baseline HG/EB install working with your CM11 make sure you image it before you go messing about with your setup. Also do a HG config backup should you need a restore quickly. And don't forget to share with others how you got there.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 02:37:59 PM
Did you define any X10 devices/modules on your install yourself. Yes 1 device as a dimmer.

Have you tried dimming them manually in HG-yes it works although sometimes with a loooooong delay

Have you tried the HG MIG HomeAutomation command from your web browser to dim.-yes works

I may not have the words correct:
 "Alexa, desk Lamp Control level 50" No work!
"Alexa, desk Lamp Dim level 50" No work!
"Alexa, desk Lamp Dim 50 " No work!
"Alexa, desk Lamp Dim 50 %" No work!
"Alexa, desk Lamp 50" No work!

Ok assuming you have that device/module set up as a dimmer correctly the command that works here is Alexa desk lamp 50

Click on the settings of the X10 modules (the little cog) and let me see the device type settings with a screen cap
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:38:24 PM
Not working til dim works.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 16, 2019, 02:39:06 PM
I may not have the words correct:
 "Alexa, desk Lamp Control level 50" No work!
"Alexa, desk Lamp Dim level 50" No work!
"Alexa, desk Lamp Dim 50 " No work!
"Alexa, desk Lamp Dim 50 %" No work!
"Alexa, desk Lamp 50" No work!
When you say doesn't work does Alexa  not respond? the light not come on? or comes on but full bright?
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:41:23 PM
See Attached.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 02:45:58 PM
Screen cap didn't attach
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:47:48 PM
Its pasted inthe post and I was able to download it from the post
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 16, 2019, 02:48:20 PM
Screen cap didn't attach
displays here  just too big
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:52:45 PM

[/quote]
When you say doesn't work does Alexa  not respond? the light not come on? or comes on but full bright?
[/quote]

Alexa accepts the command but the lamp does not come on except with" Alexa, Desk lamp level 50" it comes on 100%
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 02:54:30 PM
here is the screen cap. again attached.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 03:00:00 PM
This is what works in the browser:
http://192.168.1.8:8080/api/HomeAutomation.X10/B16/Control.Level/50
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 03:04:19 PM
This is what works in the browser:
http://192.168.1.8:8080/api/HomeAutomation.X10/B16/Control.Level/50

Ok. Try creating a new dim device and test that
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 03:18:04 PM
No Joy!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 03:22:55 PM
No Joy!

Ok you've confirmed that the on/off commands work. Correct

Try saying Alexa dim. Does she respond ok
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 03:28:31 PM
Ok you've confirmed that the on/off commands work. Correct_ YES

Try saying Alexa dim. Does she respond ok-NO she responds with her chime and short light ring display
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 03:33:32 PM
Ok you've confirmed that the on/off commands work. Correct_ YES

Try saying Alexa dim. Does she respond ok-NO she responds with her chime and short light ring display

Ok. I suggest that you delete all the devices in Alexa, restart the Pi and start the discovery process again. Sounds like Alexa hasn't picked up your device as a dim able unit
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 03:45:51 PM
tried that. no joy!

Need to leave now. thanks for all your time. I will try more later tonight or tomorrow.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 03:48:36 PM
tried that. no joy!

Need to leave now. thanks for all your time. I will try more later tonight or tomorrow.

Does Alexa all lights on work
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 03:52:13 PM
What you need to do when you finish that is to get rid of the original HA bridge files and components. Assuming the author didn't create an install program you will need to delete the relevant folders and files manually.

Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 16, 2019, 04:03:48 PM
Easy for u to say! :'(
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 16, 2019, 04:59:06 PM
Easy for u to say! :'(

And easy for you to do.

Is your glass always half empty.

Just locate the folder it is stored in, paste it here and I'll show you the commands to use.

I can confirm that alexa table lamp 50 and alexa table lamp 50 percent both dim here.

I did notice from your screen cap that your x10 device was set on 82% dim. Make that 100% in HG then switch it off in HG. Next alexa table lamp on. Then alexa table lamp 50% and see if that works
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 05:41:56 AM
Two comments that may affect the path forward:

1.This is what works in my browser for dimming:

http://192.168.1.8:8080/api/HomeAutomation.X10/B16/Control.Level/50

2.During the installation of PXH image, I believe I selected "No" to the option "Do you want to install the HA-Bridge".
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 06:19:23 AM
Two comments that may affect the path forward:

1.This is what works in my browser for dimming:

http://192.168.1.8:8080/api/HomeAutomation.X10/B16/Control.Level/50

2.During the installation of PXH image, I believe I selected "No" to the option "Do you want to install the HA-Bridge".

In the Programs-Lighting section what programs do you have running there.

I thought I saw on your post #147 that HA Bridge was loaded. Have a look yourself.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 06:55:44 AM
well it is listed in the Programs/Devices and Things list.Could a sworn I said No to loading the program!

So what next?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:02:36 AM
In SSH session type ls and return
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 07:11:03 AM
I get :
Sounds splash.png Tools
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:16:21 AM
I'll give the same warning again---Ensure you have taken an image of your install before making any changes to your system files.

Assuming the HA Bridge author has created an uninstall file and HA Bridge is installed in the home/pi folder type the following command in the SSH session and press enter. Please report back on results.

sudo npm uninstall -g homebridge
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 07:20:47 AM
Made an image yesterday after the HGEB install and setup:

sudo: npm: command not found
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:26:02 AM
Make sure you type that command exactly as I gave it to you and do a screen cap of the results
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 07:34:16 AM
Used copy/paste to enter command:

pi@X10Hub:~/X10Hub $ ls
Sounds  splash.png  Tools
pi@X10Hub:~/X10Hub $ sudo npm uninstall -g homebridge
sudo: npm: command not found
pi@X10Hub:~/X10Hub $
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:40:11 AM
Used copy/paste to enter command:

pi@X10Hub:~/X10Hub $ ls
Sounds  splash.png  Tools
pi@X10Hub:~/X10Hub $ sudo npm uninstall -g homebridge
sudo: npm: command not found
pi@X10Hub:~/X10Hub $

Ok. Type ls and return and screen cap results
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:45:49 AM
Used copy/paste to enter command:

pi@X10Hub:~/X10Hub $ ls
Sounds  splash.png  Tools
pi@X10Hub:~/X10Hub $ sudo npm uninstall -g homebridge
sudo: npm: command not found
pi@X10Hub:~/X10Hub $

Ok nothing in the home/pi folder by the looks of it

Now type cd /usr/local/bin and press enter
Then type ls and press enter

Screen cap results

Ok. Type ls and return and screen cap results
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 07:49:12 AM
pi@X10Hub:~/X10Hub $ cd /usr/local/bin
pi@X10Hub:/usr/local/bin $ ls
homegenie
pi@X10Hub:/usr/local/bin $
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 17, 2019, 07:53:05 AM
First off Ha-bridge inside HG is not the HA-Bridge that is installed in the PiX10Hub it is only a user created program link to it (if it is running).
if you wish to remove this from HG  go to configure/programs/device and things click on the ha-bridge program when it opens click on actions (bottom right) then delete program.
When you first load the PiX10Hub the option to load HA-Bridge loads the HA-Bridge service if if you click no it asks if you wish to uninstall. if you click No, HA-Bridge is still installed just not loaded this has nothing to do with HG.


Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 07:55:53 AM
petera-Please advise!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 07:57:58 AM
First off Ha-bridge inside HG is not the HA-Bridge that is installed in the PiX10Hub it is only a user created program link to it (if it is running).
if you wish to remove this from HG  go to configure/programs/device and things click on the ha-bridge program when it opens click on actions (bottom right) then delete program.
When you first load the PiX10Hub the option to load HA-Bridge loads the HA-Bridge service if if you click no it asks if you wish to uninstall. if you click No, HA-Bridge is still installed just not loaded this has nothing to do with HG.

So what is appearing on the opening screen of the SSH login screen. Is it just your own blurb on the Pi boot script
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 17, 2019, 08:04:11 AM
HA-Bridge is found in home/pi/ha-bridge if it was not uninstalled during initial PiX10Hub boot.
The PXH 1.2 version will not include HA-Bridge as most users will not need this and those that wish it can manually install.
So what is appearing on the opening screen of the SSH login screen. Is it just your own blurb on the Pi boot script
Yes, it simply states the default ports of each possible program.
It should however not state HA-bridge is installed if alzy uninstalled it during initial setup, so that may be a bug in the script.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 08:06:47 AM
petera-Please advise!

Reading your login screen from post #147 it states the following

HA-Bridge is installed ensure Security is enabled, default port is 80
HomeGenie is installed ensure Security is enabled, default port is 8080
Your X10Hub IP address is: 192.168.1.8
........................................................................

Looks like Tuicemen added additional text to the Pi boot script. I have to say it had me a little confused. Always pays to keep the boot script as simple as possible to avoid confusion. I can only go on the information I am supplied with.

Looks like you're good to go alzy. I'll look at that Dim issue further when I get a chance.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 08:10:42 AM
For anyone who wants to get rid of the HA Bridge just find change folder to the folder it is installed in and type

sudo npm uninstall -g homebridge

If the author had done his uninstall script properly this should get rid of all traces of it. It's a nightmare trying to get rid of it manually.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 08:14:05 AM
@alzy you never replied to the question, in the Programs-Lighting section what program's are enabled.
Title: Re: pix10hub on a cm19a capable Pi
Post by: Tuicemen on January 17, 2019, 08:14:49 AM
I also believe I included a script in the X10Hub/Tools folder to delete the bridge called DelBridge. the command to use it is sh DelBridge if executed from the X10Hub/tools folder.

I suspect if HA-Bridge was deleted during initial boot the script will return errors.
For anyone who wants to get rid of the HA Bridge just find change folder to the folder it is installed in and type

sudo npm uninstall -g homebridge

If the author had done his uninstall script properly this should get rid of all traces of it. It's a nightmare trying to get rid of it manually.
sudo npm uninstall -g homebridge
will not uninstall HA-Bridge as it is called HA-Bridge not homebridge
 
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 08:18:55 AM
No programs enabled in Programs/Lights section
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 17, 2019, 08:20:14 AM
petera-Ok I will work on write up for cm11 while I am waiting. Please let me know when you can about fixing the dim issue thanks!

Oh and BTW, an engineer sees that half full glass and says" Its the wrong size glass" LOL.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 17, 2019, 08:51:43 AM
petera-Ok I will work on write up for cm11 while I am waiting. Please let me know when you can about fixing the dim issue thanks!

Oh and BTW, an engineer sees that half full glass and says" Its the wrong size glass" LOL.

Very good

Have a read up on the Hue emulation. That's what Alexa sees your X10 devices as. There's weird and wonderful things you can do by creating Virtual devices in HG but that's for another day.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 10:20:21 AM
In the HG Api click on Groups and click on wherever your Dim device is located. When you have selected that device move over to the right hand side of the screen to the cog wheel and click on it. It will give you a full list of its properties. Screen cap that and post it here.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 10:36:48 AM
See attached!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 10:49:32 AM
No it's in Configure-Groups and select the group where the Dim device is located
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 10:55:58 AM
Here it is.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 11:07:10 AM
Did you click on the cog wheel. You should have a lot more parameters displaying there
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 11:16:08 AM
Cog wheel gives settings. thats what I captured. The list icon gives parameters. This is the Parametr list. There are only 4 items.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 11:26:46 AM
Did you create these yourself. They look nothing like mine. I think this is where your problem might be
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 11:30:01 AM
No they just showed up so I left them. Should I try yours?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 11:34:56 AM
No they just showed up so I left them. Should I try yours?

No you need to create one yourself. This is done in the Widgets section. Bear with me and I'll do a brief how to.

Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 11:36:35 AM
Great! Thanks.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 12:04:11 PM
OK to create a device that will dim do the following

Configure-Widgets-homegenie/generic/dimmer

Now go to across to the right of the screen to the drop down Bind to Module and click the down arrow for choices available. By scrolling down you should see a list of various items you can bind to but in this case let's pick

HomeAutomation.X10.B7

Once that's done go down to the bottom right corner of the screen and click on Actions and select Save. Exit back to the Dashboard

Go into Configure-Groups and you should see your new Dim device created.

Just post back when that is done
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 12:25:13 PM
The bind to dropdown list has only 3 items:
(select module) which if I select throws an error and the other 2 items are the 2 modules I created.

HomeAutomation.X10.B7 is not listed

Also do I want html or javascript?
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 12:33:32 PM
Ok delete the two items you have already created. You do this in the Configure-Groups section. Across from the device on the same line you have the cog wheel and the last option is an X. Click on that X for each device until they are all deleted then repeat the process I posted earlier and post back.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 12:50:41 PM
Ok. It looks like the Generic Dimmer Module template has already been overwritten so let's take this route instead.

Configure-Groups move down to the bottom right of screen and select Actions-Add Module. You should a list of your monitored X10 house codes. Pick B8X10 Module and click on it. Close that pop up and you'll see your new module on the Module List X10 B8

Now click on the cog wheel and enter the following

In enter a name use Main Lamp
Click on Switch and a drop down will appear. Select Dimmer
In Feature /Options leave it as Energy Saving Mode
Finally select Save and you're done

Change the house code on your lamp module to match B8 and test the new module is working. If so you have a dim module set up like me

All you need do now is delete discovered devices in Alexa, restart HG from SSH, rediscover Alexa devices and try dimming it.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 12:53:20 PM
I deleted the 2 modules I created. They still showed up. So I deleted the group they were in. They still showed up. i did a shutdown and rebooted and they still showed up. I changed selection to hg/generic/switch and HomeAutomation.X10.B7 is listed there.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 12:55:11 PM
Trying new directions....
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 01:23:04 PM
ok followed directions. Didn't find Featutres/Options. but set up anyway. Does not dim with Alexa. does with gui.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 01:50:00 PM
Is the bridge sending:

http://<IP:Port>/api/HomeAutomation.X10/B16/Control.Level/50
or
http://<IP:Port>/api/HomeAutomation.X10/B16/Dim/50 or something else?

cuze only the first one works from browser
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 01:50:48 PM
Could you screen cap the Module settings now
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 01:53:54 PM
Is the bridge sending:

http://<IP:Port>/api/HomeAutomation.X10/B16/Control.Level/50
or
http://<IP:Port>/api/HomeAutomation.X10/B16/Dim/50 or something else?

cuze only the first one works from browser

All the bridge is doing is exposing the HG device modules to Alexa as Hue devices. Remember it's Control.Level not Dim that you need here.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 01:56:22 PM
I know. Just making sure we are on the same page.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 01:59:16 PM
Whats the exact voice command that works for you/ Just doing a sanity check

Here r parameters.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 02:03:28 PM
Press the cog wheel on the module and screen cap that

I use Alexa Main Lamp 50.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 02:12:09 PM
Main Lamp 50 turns lamp on 100 % so does any other nimber after MianLamp. here is Sc. shot.
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 02:37:26 PM
You're not showing Feautures/Options below the Dimmer box. I'll have to look a little deeper into this.

For the moment you can now create your own modules so you can start building your HG device setup. I'll post back if I find out whats causing this.
Title: Re: pix10hub on a cm19a capable Pi
Post by: alzy on January 19, 2019, 02:39:11 PM
Can I change this module back to B16?

Thanks for all your time!
Title: Re: pix10hub on a cm19a capable Pi
Post by: petera on January 19, 2019, 03:29:06 PM
Can I change this module back to B16?

Thanks for all your time!

Just create another module B16

I'd prefer to work with a stock install of HG. It's easier to set up from scratch.