Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: HA Bridge is no longer working or accessible  (Read 7874 times)

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
HA Bridge is no longer working or accessible
« on: August 07, 2020, 09:58:41 PM »

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.
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HA Bridge is no longer working or accessible
« Reply #1 on: August 08, 2020, 08:09:51 AM »

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

sudo systemctl start ha-bridge.service

Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HA Bridge is no longer working or accessible
« Reply #2 on: August 08, 2020, 11:22:35 AM »

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..
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HA Bridge is no longer working or accessible
« Reply #3 on: August 08, 2020, 02:28:57 PM »

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.
Logged

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #4 on: August 08, 2020, 04:39:27 PM »

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?
Logged

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #5 on: August 08, 2020, 05:11:10 PM »

I have confirmed that HomeGenie is working and controlling modules
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HA Bridge is no longer working or accessible
« Reply #6 on: August 09, 2020, 07:39:16 AM »

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.
« Last Edit: August 09, 2020, 07:53:37 AM by Tuicemen »
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #7 on: August 09, 2020, 09:51:58 AM »

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

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: HA Bridge is no longer working or accessible
« Reply #8 on: August 09, 2020, 10:21:18 AM »

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.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #9 on: August 09, 2020, 10:24:24 AM »

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

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #10 on: August 09, 2020, 10:33:01 AM »

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?
Logged

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #11 on: August 09, 2020, 12:07:34 PM »

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"}
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HA Bridge is no longer working or accessible
« Reply #12 on: August 09, 2020, 07:39:53 PM »

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.
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: HA Bridge is no longer working or accessible
« Reply #13 on: August 09, 2020, 07:55:08 PM »

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.
Logged

dkbialik

  • Sr. Member
  • ****
  • Helpful Post Rating: 1
  • Posts: 148
Re: HA Bridge is no longer working or accessible
« Reply #14 on: August 09, 2020, 08:49:19 PM »

HA Bridge version 5.3.0
Logged
Pages: [1] 2
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.