HA Bridge is no longer working or accessible

Started by dkbialik, August 07, 2020, 09:58:41 PM

Previous topic - Next topic

dkbialik

I have had PiX10Hub working great for the last seven months.  A three day blackout happened and now no response from Alexa for the X10 modules.  Home Genie is up and running, HA-Bridge is not.  What are the SSH commands to start the service?  This was from the Tuiciman image so the directory names did not change.

petera

If the service was created as per the HA Bridge GitHub to start the service  enter this command

sudo systemctl start ha-bridge.service


Tuicemen

The service should restart on a power up of the pi. I've seen the bridge configuration file & or the device.db file get corupt on power blips so you may have to use a backup configuration  if what petera mention fails. You did do a backup of your devices as well as a configuration I hope?
If not you'll need to remove the configuration file then restart HA-Bridge. Once running you'll need to reconfigure your HG info as well as any other customization your device info should be ok unless it got corupt as well..
Please Read Topic:
General Forum Etiquette
Before you post!

petera

Simplest to check the service first to figure out why it’s not starting. Enter these two commands

sudo systemctl start ha-bridge.service


sudo systemctl status ha-bridge.service

If the service doesn’t start the second command will tell you why.

dkbialik

Hello, I ran the status for HA-Bridge as recommended and got a fail.  Please see attached image.  Unfortunately my backup is not working as expected.  I have not touched the config since January.  Please can you assist me in troubleshooting?

dkbialik

I have confirmed that HomeGenie is working and controlling modules

Tuicemen

#6
You'll need to go into your ha-bridge/data folder and rename or delete the habridge.config file then restart the ha-bridge service. This will cause HA-Bridge to make a new configuration file.
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

please forgive my ignorance.  How do I find the HA-Bridge directory?  What is it called?

Tuicemen

Type cd ha-bridge/data to easily see all files and folders on the PiX10Hub type mc that will bring up the file explorer Midnite Comander.
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

Thanks, I did find it.  I am now rebuilding the HA-Bridge

dkbialik

It has been a while since I programmed the HA-Bridge.  Are there any screen shots for configuring X10 switches and modules on HA-Bridge?

dkbialik

I tried programming a module based on the screen shots from http://forums.tuicemen.net/index.php?topic=1359.0 and am getting this error: Request Error, Please look in your habridge log: error {"type":"6","address":"/lights/125","description":"Error on calling url to change device state","method_name":"/lights/125/state"}

petera

Check the syntax for your url call or better still screen shot the url from the HA Bridge screen you are using. The error message is telling you the syntax is wrong.

What version of HA Bridge are you using. Do you have the latest Stable release installed. A picture paints a thousand words.

petera

Btw the output from that status command has tailed off so I can’t see error code status numbers. Are you sure your environment path is correct in the ExecStart section of your habridge.service file.

dkbialik