X10 Community Forum

📱🖥️PiX10Hub => 💬General Discussion => Topic started by: Tuicemen on January 23, 2019, 07:58:20 AM

Title: Are you using HA-Bridge?
Post by: Tuicemen on January 23, 2019, 07:58:20 AM
With the popularity of the HG Echo Bridge interface and the reliable performance of it is HA-Bridge still needed in the PiX10Hub image?
I've started to create a new image which I've  removed the HA-Bridge from however I still use it even though I also use the Echo Bridge.
So I'm having second thoughts about removing it as there maybe others that use both or prefer it.
Title: Re: Are you using HA-Bridge?
Post by: dhouston on January 23, 2019, 12:15:51 PM
Will HG Echo Bridge control this?
https://www.cnbc.com/2019/01/08/kohlers-7000-numi-2point0-toilet-with-amazon-alexa-built-in.html (https://www.cnbc.com/2019/01/08/kohlers-7000-numi-2point0-toilet-with-amazon-alexa-built-in.html)
Title: Re: Are you using HA-Bridge?
Post by: Tuicemen on January 23, 2019, 12:27:27 PM
 rofl Currently no! It only allows Alexa control of devices configured in HG. So it won't control the bath tub or Alexa Shower either at present. ;)
Title: Re: Are you using HA-Bridge?
Post by: petera on January 23, 2019, 02:40:26 PM
No. Personally I don't see the point adding the overhead to the OS. Whatever you are using the HA Bridge for you could post an enhancement request on the GitHub for support for it.

IMO its best to integrate all these 3rd party solutions into the main body of the HG application. Cleaner solution all round. One less thing to worry about on the OS too.
Title: Re: Are you using HA-Bridge?
Post by: alzy on January 25, 2019, 12:20:49 PM
I also like the integrated solution as long as the HGEB has the dim fix that should hopefully be in the next HGEB release.
Title: Re: Are you using HA-Bridge?
Post by: petera on January 25, 2019, 05:44:02 PM
I also like the integrated solution as long as the HGEB has the dim fix that should hopefully be in the next HGEB release.

That is completely in the gift of the GitHub maintainer and all the pleading on the planet will make no difference. Alternatively you can edit the source code, compile it and create your own MIG interface. You can clearly see from the source code where you need to add the variable for this function. Now that would be a good exercise to embark on.
Title: Re: Are you using HA-Bridge?
Post by: alzy on January 25, 2019, 06:12:24 PM
yeah, I'll get right on it! >!
Title: Re: Are you using HA-Bridge?
Post by: petera on January 25, 2019, 07:12:50 PM
Not as difficult as you think. All the hard work has been done. Here’s the variable for the on/off function. Just create one for Control.Level

var device = new Device
            {
                name = module.Name,
                offUrl = $"http://{hgEndpoint}/api/{module.Domain}/{module.Address}/Control.Off",
                onUrl = $"http://{hgEndpoint}/api/{module.Domain}/{module.Address}/Control.On",
                deviceType = "switch"
            };

What do you reckon.

Don’t push too hard or they may forget you. rofl
Title: Re: Are you using HA-Bridge?
Post by: alzy on January 25, 2019, 07:29:18 PM
Piece a cake! >!
Title: Re: Are you using HA-Bridge?
Post by: petera on January 25, 2019, 07:39:01 PM
Piece a cake! >!

Exactly now exercise a little patience and it will happen. Just register on the maintainers GitHub and you will be notified of an update when it happens.
Title: Re: Are you using HA-Bridge?
Post by: alzy on January 25, 2019, 08:38:02 PM
I registered last week.
Title: Re: Are you using HA-Bridge?
Post by: petera on January 25, 2019, 08:54:30 PM
I registered last week.

Ok. Good things come to those who wait  >*<