Joshua Pressnell

Homebridge Driver for HomeKit Support?

94 posts in this topic

How are folks using this driver?  Is it being used to allow you to use HomeKit and Siri to control C4 devices in your C4 system?  Or are people using it to allow C4 to control devices that are supported in HomeKit/HomeBridge but which aren't supported in C4?  If it is the latter then I am thinking that this could be useful to allow me to control certain types of lights/lighting controllers that aren't supported in C4.  And what about devices, like Hue bulbs, that aren't native C4 devices?  Does it make sense to install the drivers for C4 or for HomeKit or both?  Or does it matter?

Share this post


Link to post
Share on other sites

I won't have the docker version for a while.  There's a lot to do, and getting things setup so that all my appliance code works properly involves a lot of low-level linux IT setup.  My Pi images are solid, though.

The system is intended to expose the Control4 project to HomeKit.  All supported devices in Control4 become devices in HomeKit, and you can use those devices as if they were HomeKit-compatible.  This lets you control C4 lights, dimmers, garage doors, security systems, etc from Home app and with Siri.  

What you put where depends on how you want things setup.  If you install drivers for your Hue bulbs in C4, and those bulbs support the light proxy, then my HomeKit setup will automatically pick them up, and allow you to also control them in HomeKit, by routing HomeKit communications through C4.  I believe Hue bulbs are also directly HomeKit compatible, so you could just add them to Home directly, and add them to C4 and move them to my system's ignore list, so they don't show up twice.

There's lots of options.

Share this post


Link to post
Share on other sites

Just want to bump this thread.

 

Joshua has worked over and above in helping me keep my clients happy and this driver and its appliance is a great product.

 

More features have been added and some more to follow.

 

 

 

 

Happy Automating!!

Share this post


Link to post
Share on other sites
9 hours ago, VINCELdUB said:

Joshua has worked over and above in helping me keep my clients happy and this driver and its appliance is a great product.

 

I wanted to jump in and agree!  And it's not about customers...its about me!  Joshua has helped above and beyond through beta and after.

That said...  Everyone go out and sell this driver!  I've had C4 in my home for almost 10 years.  This driver has brought new life to a system!

Hopefully Joshua will master the challenge of finding a way to use my phone to automate the theater and I would never buy another C4 remote again...(hint hint)

Share this post


Link to post
Share on other sites
39 minutes ago, ekohn00 said:

Hopefully Joshua will master the challenge of finding a way to use my phone to automate the theater and I would never buy another C4 remote again...(hint hint)

You can kind of do that now, it's just not as elegant as a truly native HomeKit solution would be.  The basic idea is that you create a HomeKit room that represents your AV system and then add a bunch of virtual switches to it, using something like the Clipsal Legacy Relay Light driver.  Then you use programming on the C4 side to set the switch states appropriately and react to HomeKit changes.  Because it relies on C4 programming and lots of virtual drivers to represent system states and remote buttons, it's a lot more work to setup and maintain than I'd like, and I don't recommend it to the general public, but it is possible.

I continue to hope that future releases of HomeKit will actually include AV capability, beyond just the "speaker" representation added in iOS 11 (which only allows volume control).

Share this post


Link to post
Share on other sites
4 minutes ago, Joshua Pressnell said:

You can kind of do that now, it's just not as elegant as a truly native HomeKit solution would be.  

I'm almost tempted.....but think volume control would be a real pain.  At least on/off and flipping between tv/appletv should be simple enough.

 

 

Share this post


Link to post
Share on other sites

Any update on support of shades? I have 6 Mechoshades running on my C4 system and I would love to have homekit support. I'd be happy to beta too if it's helpful.

 

Share this post


Link to post
Share on other sites
1 minute ago, creede said:

Any update on support of shades? I have 6 Mechoshades running on my C4 system and I would love to have homekit support. I'd be happy to beta too if it's helpful.

 

I took a brief look at it yesterday.  It looks like the C4 system only supports the "up" and "down" position for shades/blinds, and doesn't handle tilt/rotation at all?  Is that right?  If we're talking about the most basic shade function (traveling up and down), I might be able to get that in relatively shortly.  

Share this post


Link to post
Share on other sites
Just now, Joshua Pressnell said:

I took a brief look at it yesterday.  It looks like the C4 system only supports the "up" and "down" position for shades/blinds, and doesn't handle tilt/rotation at all?  Is that right?  If we're talking about the most basic shade function (traveling up and down), I might be able to get that in relatively shortly.  

That sounds right. I've got roller shades. Physical switches will do set stops (25% etc) but in C4 I just get up down and stop, which is fine by me.

Share this post


Link to post
Share on other sites
1 minute ago, creede said:

That sounds right. I've got roller shades. Physical switches will do set stops (25% etc) but in C4 I just get up down and stop, which is fine by me.

Right.  The problem is that there are too many "options" that exist in the abstract concept of a "blind".  It looks like the Control4 stuff "might" support "target position", for instance, but I can't see any way to control/set it in programming.  In HomeKit, you can set any position from closed to open and in between (represented by 0-100), so I was looking for a way to check target and current position.  It looks like most relay-based blinds only know about "up" and "down" and the C4 driver figures that out based on timing, which seems fraught with potential issues.

Share this post


Link to post
Share on other sites

In C4, blinds that are smart, like QMotion and some Lutron, you can set them to percentages.

but most blind systems are only relay based and have no logic at all, so typically you get up, down and stop.  You can try to create the logic necessary but I wouldn't bother because eventually it does get out of whack.

the only experience I've had with Somfy is all relay based so not sure if they have anything smarter. 

Share this post


Link to post
Share on other sites

Posted (edited)

On 6/23/2017 at 9:16 AM, Joshua Pressnell said:

 using something like the Clipsal Legacy Relay Light driver.  

Anyone have some sample code...I might have missed a step.

I created a test room.

Added the driver.  went to programming, when Clipsal Top pressed -> turn on media room TV., when Bottom pressed -> turn off Tv.

as a test went to C4 remote....nothing is working.  

 

UPDATE:  Strangely the V2 driver works.

Edited by ekohn00
updated

Share this post


Link to post
Share on other sites

Use only the v2 drivers! This is something I have learned recently. No proper reason why. Just experience.

 

 

On another note. Wonder if there is a way to leverage the room volume driver for Alexa integration that populates

 

 

 

 

Happy Automating!!

Share this post


Link to post
Share on other sites
On 7/5/2017 at 9:30 PM, VINCELdUB said:

Use only the v2 drivers! This is something I have learned recently. No proper reason why. Just experience.

 

Looks like version 2 was the trick.  I notice it’s executives on status change...makes things interesting since on and off on the switch could result in off or on.

My next test will be to match the devices’ physical status (on or off) onto the Virtual Swiches’ status.  Any recommendations?  I assume as the status changes on the physical deceive i can set the virtual swtich.

Share this post


Link to post
Share on other sites

I use on and off for it all the time. Hey Siri, turn off family room power. Family room power is switch name and when off, turns family off... then name a switch cable tv. Hey Siri turn on cable tv in family room. When switch called cable tv is on, select cable tv as video source in family room and turn on family room power switch as well.

 

 

 

 

Happy Automating!!

Share this post


Link to post
Share on other sites

This is exactly what i have.

however, i notice the virtual switch can get confused.  For instance.  If I start with all switches off, and do a “hey Siri turn on family room” it turns on the TV and Stereo easy enough.

But then if I use the C4 remote to turn everyhting off, I can’t so hey Siri again as the virtual switch is still shows everything on.  (It never shut off with the room.)

Can I assume you some how tied the room to the clipsal driver?

Share this post


Link to post
Share on other sites

 

Yes at the room level always.

 

 

My last post was done with voice to text in a hurry. My apologies. Ultimately, you want to add an additional action at the room level. In programming on the left side select the room, then press the right arrow on your keyboard a few times to expose the room variables.

 

 

Select power_state

 

 

Turn on the right side select the room again.

 

Then select conditionals and if room is on and if room is off. But both of those questions in the center.

 

 

Now you will nest all of your virtual media light switches and the corresponding state under each of those conditioners.

 

 

Example:

 

 

?if family room off

 

--> set family room power OFF

 

--> set cable tv OFF

 

--> set media player power OFF

 

?if family room on

 

--> set family room power ON

 

 

This way, whenever you turn the room off it will also turn off the cable TV in the media player switches as well.

 

 

This will close the loop.

 

 

 

 

 

Happy Automating!!

 

Share this post


Link to post
Share on other sites

? If family room off
  --> turn off family room power
  --> turn off cable TV
  --> turn off media player
? If family room on
  -->Turn on family room power

 

 

 

 

Happy Automating!!

Share this post


Link to post
Share on other sites

I can't seem to get it to indent. Sorry. Make sure you drag the green arrow onto the blue question mark to indent or "nest" the command.

 

 

 

 

Happy Automating!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
    • 68 Posts
    • 1357 Views
    • 3 Posts
    • 52 Views
    • 3 Posts
    • 82 Views
    • 7 Posts
    • 110 Views
    • 23 Posts
    • 896 Views
    • 56 Posts
    • 1925 Views
    • 8 Posts
    • 579 Views