Homekit Bridge, Siri, iOS, Apple Watch Et Al...

If you have a feature you'd like to see in Indigo, post it here. Others can refine the idea if they like. Please keep each topic to one feature or a closely related set of features and don't add other unrelated requests to an existing topic. Use the Hardware Support Requests forum below to request support for some bit of hardware - but be sure to check the 3rd Party Plugins Forum first though to make sure there isn't already a plugin for it.
User avatar
P15-D24
Posts: 129
Joined: Sat Jun 25, 2005 10:38 pm
Location: Santa Barbara, CA
Contact:

Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by P15-D24 »

Only time I visit the forums is when I have an issue or trying to do something new. Because Indigo is so stable I rarely have to visit! :-). That said I just finished reading the thread about EOL support for Homekit Bridge (HKB) and the issues facing Indigo Domotics in building/supporting a software interface to Apple's Home app. Seems to me there are three potential paths:
1. Apple will allow software only solution and supported by Indigo. (Very unlikely with the current licensing limitations Apple is imposing)
2. Some vendor comes up with a certified hardware interface. ( Even more unlikely as they will probably never see a profit based on potential market size.)
3. Enhance/build an updated Indigo iOS app/Apple Watch app that uses the Siri interface interfacing directly to Indigo, bypassing Apple's Home app. I don't know how robust the Siri API is for building voice interfaces but assuming it provides a core functionality to send command to control outputs. Using iOS and Apple Watch (and maybe even Apple TV) you would get an interface directly to Indigo, not the Home app. I'm assuming HomePods would not work unless there is some way to interface them to an iOS app via voice control.

Like many other users HKB has provided a fantanstic level of functionality that I dread seeing going away at some point in the future. At least the approach in #3 could bring back much of the same functionality and more importantly allow Indigo (the company) a lot more control and stability in the process. Plus I don't look forward to telling my 87 year old mother in law she has to start getting out bed to turn the lights out instead of using Siri. :D

Thoughts/comments?
Running OS X 14.7 on 2018 Mac Mini, Indigo 2024.1
http://www.p15-d24.com
WagnerOne
Posts: 151
Joined: Fri Jun 12, 2009 1:58 pm
Location: Chicago, IL
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by WagnerOne »

WUT?! Please link the HKB discussion. :cry:
User avatar
P15-D24
Posts: 129
Joined: Sat Jun 25, 2005 10:38 pm
Location: Santa Barbara, CA
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by P15-D24 »

viewtopic.php?f=201&t=22273

Read the full thread.
Running OS X 14.7 on 2018 Mac Mini, Indigo 2024.1
http://www.p15-d24.com
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by jay (support) »

This is the key post from Matt on that topic: viewtopic.php?p=199098#p199098
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
makedrinklas
Posts: 170
Joined: Tue Oct 12, 2004 11:29 am

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by makedrinklas »

Yes. I too have started using HomeKit bridge. It’s is good but not great. (That may be Apples fault). But I’ve watched enough Star Trek to know voice control is the clear next step for home automation. As an early 2000 Indigo user, I am heartbroken we can’t together find a path to further building HomeKit connection to Indigo. It works randomly for now. But our lives will be seriously deprecated (I struggled for a word) without PA’s passion an support for home automation (and the amazement of others) is lost to… I’m not sure what. It’s an incredible life’s-work effort that Matt and Jay have expended. Love you guys you have changed many lives forever. And made many users into genius/magicians to family and friends. Voice control is the future. I will look at the other thread, rant over!
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by jay (support) »

The next Indigo release (coming very soon) will add a couple of options for voice control: Alexa support will be included, and Google Home support will be provided by our resident 3rd party Google dev guru @RogueProeliator. Both of these excellent systems provide robust APIs for integrating into their environments. We know that voice control is the future.

Unfortunately, Apple has yet to provide any way to integrate beyond specific hardware devices, so any 3rd party software bridges/hubs (like Indigo) have to rely on reverse-engineered open source solutions (HomeKit Bridge uses this) that are generally fragile and only work at the whim of Apple (who can break them at any time). This is the unfortunate reality of where Apple is with HomeKit at the moment. There may be light at the end of the tunnel given efforts to develop an open-standards API for device communication, but there has yet to be any tangible results.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by Ramias »

I now run the oznu/homebridge docker container on my NAS (but it can run anywhere) and the Cmd4 plugin for 'integration' with Indigo. Cmd4 requires configuring devices (it supports all homekit device types) in the hombridge config file and points to a script (I did mine in bash but also supports js) that calls into Indigo via curl commands for device polling or on/off. It passes device name as a parameter to the script so most of my Indigo devices all use the same script. For devices with native homebridge plugins I use those. For others, esp. Indigo virtual devices, I use the Cmd4 plugin.

in case it helps anybody, here's my shell script:

Code: Select all

#!/bin/sh

#
# This Cmd4 example demonstrates how you can test if an accessory is on the network using ping.
#
# Your Cmd4 .homebridge/.config.json file would have a state_cmd like:
# state_cmd: ".homebridge/Cmd4Scripts/Examples/ping.sh"
#
#
# Testing from the shell prompt:
#    ./basic_ping.sh Get My_TV On
#    or
#    ./basic_ping.sh Set My_TV On 1



# Exit immediately if a command exits with a non-zero status
set -e

# Define the accessories IP you wish to test
indigo_ip="192.168.0.XX"
indigo_creds="username:password"
# Check if the first parameter to this script was "Get" for getting an accessory's
# specific attribute.

dev=$(echo $2 | sed 's/ /%20/g')

if [ "$1" = "Get" ]; then

   # Normally we would exit immediately if a command fails with a non-zero status.
   # In this case ping can fail and we would rely on the failing exit status to
   # tell Cmd4 that the accessory is not on the network. That would be the prefered
   # thing to do. However for this example we are going to output '0' (false) so
   # that you can see the '0' on the console telling us that the accessory is not
   # on the network.
   set +e

   # $2 would be the name of the accessory
   # $3 would be the accessory's charactersistic 'On'
   # On OSX the string is returned differently than on linux.
   # ping -c 2 -W 1 "${ip}" | sed -E 's/2 packets received/2 received/g' | grep -i '2 received' >> /dev/null
   if [ "$3" = "On" ]; then
      curl --silent -X GET -d isOn -u ${indigo_creds} --digest http://${indigo_ip}:8176/devices/${dev}.txt | grep -q 'isOn : True'
      rc=$?

      # Exit immediately if a command exits with a non-zero status
      set -e

      # Check if we got the message '2 packets recieved' meaning the accessory is
      # on the network by seeing if the return code of the above command passed or
      # failed.
      if [ "$rc" = "0" ]; then
         # The message was recieved so the target is up, sending a '1' (true), like
         # a binary number is, back to Cmd4.
         echo "1"

         # Exit this script positivitely.
         exit 0
      else
         # The message was not recieved so the target must be down, sending a '0' (false), like
         # a binary number is, back to Cmd4.
         echo "0"

         # Exit this script positivitely, even though ping failed.
         exit 0
      fi
   fi
fi

# Check if the first parameter to this script was "Set" for setting an accessory's
# specific attribute.
if [ "$1" = "Set" ]; then

   # $2 would be the name of the accessory.
   # $3 would be the accessory's charactersistic 'On'.
   # $4 would be '1' for 'On' and '0' for 'Off', like a binary number is.
   # $4 would be 'true' for 'On' and 'false' for 'Off' with
   # outputConstants=true in your .homebridge/.config.json file.

   # Cmd4 will pass the IP in the config.json defined by state_cmd_suffix as the fifth
   # parameter to a Set command.

   # Cmd4 will pass the MAC Address in the config.json defined by state_cmd_suffix as the sixth
   # parameter to a Set command.
   if [ "$3" = "On" ]; then
      if [ "$4" = "1" ]; then
         curl --silent -X PUT -d isOn=1 -u ${indigo_creds} --digest http://${indigo_ip}:8176/devices/${dev}
         rc=$?
      else
         curl --silent -X PUT -d isOn=0 -u ${indigo_creds} --digest http://${indigo_ip}:8176/devices/${dev}
         rc=$?
      fi

      if [ "$rc" = "0" ]; then
         exit 0
      else
         exit $rc
      fi
   fi

fi

# The proper arguments to this script were not passed to it so end with a failure exit status.
exit 66
User avatar
Different Computers
Posts: 2730
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by Different Computers »

Cmd4?

I just searched the plugin store for this and came up empty. And I don't think this integration requires a marine grade CD player that is EOL.
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana, Yamaha RX Receiver.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by FlyingDiver »

Different Computers wrote:Cmd4?

I just searched the plugin store for this and came up empty. And I don't think this integration requires a marine grade CD player that is EOL.
He means the Cmd4 plugin for homebridge: https://www.npmjs.com/package/homebridge-cmd4
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Jann
Posts: 120
Joined: Sun Mar 12, 2006 10:20 am
Location: Auburndale, FL
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by Jann »

Okay, maybe I'm lost a bit - and sorry if I am - but didn't Apple enable "software HomeKit integration" as of 11.3 in iOS (and therefore their HomeKit TOSes changed to reflect that?
OR is that software in the device and still requires the hardware on the controller's end?

https://www.imore.com/how-homekits-soft ... tion-works

Again, sorry...not meant to derail, bit this was a while back (4 iOS versions ago)
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by jay (support) »

Apple’s licensing agreement for HomeKit doesn’t allow software bridges. Since indigo is a software solution we can’t directly support HomeKit.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Jann
Posts: 120
Joined: Sun Mar 12, 2006 10:20 am
Location: Auburndale, FL
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by Jann »

jay (support) wrote:Apple’s licensing agreement for HomeKit doesn’t allow software bridges. Since indigo is a software solution we can’t directly support HomeKit.
Gotcha!
This is SO shortsighted ... and the reason I am reluctant to move from Z-Wave to HomeKit!
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by jay (support) »

I'm curious, why would you want to move from Z-Wave to HomeKit?
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Jann
Posts: 120
Joined: Sun Mar 12, 2006 10:20 am
Location: Auburndale, FL
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by Jann »

I don't...but so many of the newer devices I'm seeing are either Zigbee or HK enabled OR have their own proprietary boxes and adapters that make them work with their app - and don't have APIs a plug-in can use. At LEAST with homekit I can make rules, etc...

I love my Z-Wave but for things like my blinds, I tried iBlinds...and they don't fit my header. Clever doesn't work with plastic headers (most of the 2" blinds out there). E-Wand uses Zigbee, etc...
My Ecobee has HK but there's a plugin which I'm thrilled about and works with Indigo flawlessly. Same with my Hue lights - plug-in.
My garage door opener's plugin works with Indigo...but not well. My locks (yale) works with a plugin.

But I am just so tired of all the adapters, boxes, and cabling needed to make the other items I have/want work! EVERYTHING seems to want to be it's own ecosystem. HK solves that mostly...
Mostly cos Apple has some heft behind a technology push. Doesn't seem like ANY company is pushing their Z-Wave integration so I can get things that can control my blinds, etc, with Indigo.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Homekit Bridge, Siri, iOS, Apple Watch Et Al...

Post by jay (support) »

HK is missing a lot of device types and the selection at the moment is much smaller than Z-Wave in general. HK really IMO is no better than the rest, except for its ingrained Siri integration which nobody else can do (from a licensing perspective). Supposedly with Matter there will be a consolidation of smart home technology/protocols which will make things better. We'll see.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Feature Requests”