Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

freeman1899

macrumors member
Original poster
Apr 7, 2015
53
15
Hi,

is there a way to trigger an automation based on a device connecting or losing the connection.

For example If light A gets turned on by using the light switch (physically → connecting it to power) I want light B to set its brightness to 100%
and if light A gets disconnected from the power grid and is therefore not reachable by HomeKit anymore I want light B to be set at 0% brightness.

A solution involving homebridge would also be great.
 
I also have this question. Been trying to figure out a reliable way for HomeKit to trigger or set some uniquely testable condition when a device is not responding.

My goal was to show a red light if the garage lights had been left on, and no red light if the garage lights were off. If the garage lights are off, all the power to all the garage lights are off.

Is it possible that one of the many available “home” apps has an answer?
 
Last edited:
I'm not familiar with Homebridge however with HomeKit this is possible through a trigger, group, or automation activated by a scene. Depending on specifically what you are trying to accomplish. It easier to work from a power on state though.

So for example if you are trying to group light B which might be a smart bulb with light A which might be a chandelier (not smart) then I would replace light A switch with a smart switch/dimmer (Leviton makes hub less if you only want one). From there you can group the smart switch/dimmer of light A to B or you can make a simple on and off automation (when switch for light A is on light B do this, when switch for light A is off light B do that).

When it comes to Home Automation specifics tend to help because other people could have done what you are trying to accomplish but they would need to know exactly what you are trying to do.
 
  • Like
Reactions: freeman1899

Thank you for your answer. A smart switch would definitely be a valid option for my problem. But maybe there is a solution without buying new gadgets? To explain it even better I will try to be more specific.

Light A and B are both Philips Hue Lights.
Light B is always connected to the power grid.
Light A is turned on and off using a traditional light switch.

Now I want Light B to turn on and off when I hit that light switch from A.
 
Light A and B are both Philips Hue Lights.
Light B is always connected to the power grid.
Light A is turned on and off using a traditional light switch.

Now I want Light B to turn on and off when I hit that light switch from A.

It is possible within the Home app.
-> Automation
-> An accessory is controlled
-> Select light A, turn on, next
-> Select light B, choose the brightness and color you want
That should do it
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.