-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] timed fade in/out that can be set via HomeKit #130
Comments
That's an interesting idea! In the Hue API, you can specify As far as I know, there's no equivalent concept in HomeKit. I don't expect the Hue bridge exposing this functionality to HomeKit, but that's why I created homebridge-hue in the first place ;-). I could easily create a custom However, @DJay79, please let me know if this would work for you. The usual caveats would apply:
|
wow.. your idea sounds like the complete concept to me. Very interesting and could be a helpful feature also for some people. As always I'm looking forward to the ongoing development of your great work. 👍🏻 |
Have a look at v0.5.4. I think
|
You are crazy @ebaauw and this in an absolutely fantastic way. 👍 |
I've been thinking about ways to address this issue. I haven't found another (free) HomeKit app, which allows typing the value instead of using a slider. Matthias' Home app (paid) allows changing the value one step using + and -, but somehow it tends to freeze when changing custom characteristics. Some ideas:
|
@ebaauw I noticed, that I'm good with the slider in Eve App. But what I forgot, my Raspberry auto-starts every hour for better performance. And as you mentioned the Transition Time is always reset 0.4s. Unfortunately I didn't have the time yet to test everything because I was not at home and already on the jump. |
I tested a HomeKit scene that includes I don't think the order of the characteristics in a scene is guaranteed, but homebridge-hue waits 20ms to collect all state changes to a single light before issuing the command to the bridge. That was long enough for For my wakeup scene (from the Hue bridge), I turn on my bedroom lights at 0% brightness when my alarm goes off. 1 second later, I set the brightness to 100%, with a transitiontime of 10 minutes. You could get the same behaviour in HomeKit, by setting two alarms, one second apart, the first recalling the scene to turn the lights on at 0%, the second scene to turn the lights up to 100% with |
Implemented that in v0.5.5, so you won't need the third alarm and scene to reset
For example, I created a Fade On and Fade Off scene in Eve (note I cannot set Here's the
HomeKit actually issues the HomeKit now shows the lights as Off (as does the Hue bridge), but they're still On. After a while, the Hue bridge updates the light states when polling the lights. Because the transition to Off is still underway, HomeKit now reports the lights as On, with reduced brightness:
At the next polling cycle, the brightness is adjusted:
Until the transition has finished, and the lights are reported as Off:
|
Another fun fact: of you set When you set |
No go. Works for setting it manually, although Eve doesn't show the value while editing (on my old iPhone 5s, which I use for testing). However, Eve won't allow me to include it in a scene. |
This is so amazing just by reading your lines. WOW |
That's OK, I used to be blond (back in the days when I had more fun...) Yes, you would need to expose the lights through homebridge-hue to use |
Well... The wisdom comes, the full blond hair goes. 😬 I can tell you a thing or two about it. Okay.. so have to be brave and do what? How would I remove the hue lights from HomeKit but not the bridge? I'm a bit scared about doing this. I have 14 Lights and sometimes this was the only thing that works wehen the Raspberry with Homebridge was not working. |
You found out my plan to conquer the world through homebridge-hue! Now I need a new plan for world domination ;-(
You don't need to change the Hue bridge configuration. Just remove the Hue bridge from HomeKit (in Home, hold the bridge tile with the same triangle-like symbol as homebridge and scroll down), and the lights are removed from HomeKit as well. The Hue app remains fully functional, as do any other apps making use of the Hue API. |
OMG I did it. YOU did it. 😉 I removed the Hue bridge from HomeKit. All lights are there and the Test Scene I created with a few lights with transition time to 349.0s switched slowly after 5 minutes to blue. Now I can configure my morning wake-up routine all in Eve and with HomeKit. This is so cool and fantastic what you created. 🏆 |
Today homebridge did not respond anymore.
|
ETIMEDOUT and ESOCKETTIMEDOUT typically indicate hickups in the network between homebridge and the Hue bridge, see issue #15. Make sure you connect the Hue bridge and the Raspberry Pi running homebridge (and the AppleTV as HomeKit Hub) by wired Ethernet, not by WiFi or Powerline LAN. |
Okay, thanks @ebaauw But as mentioned, I'll have an eye on this if there is something strange with homebridge-hue now. |
Hello @ebaauw i have a question. I can‘t set a Scene two times behind each other? I must use a reset Scene between? (i use the Raspbee Gateway) |
Are you referring to setting a HomeKit scene in Apple’s Home app? That seems to be limitation of the app. In other HomeKit apps (e.g. Eve) this is possible. |
Yes, with HomeKit. If i activate a Scene with Custom transition Time and turn the light off, the Scene (this transition Time) don’t work anymore. I must bring the light to an other State (other brightness, or other color), Then the Scene is working again. |
I notices that you have the room where the Transition option can be selected, has to be the first in the row of rooms. Meaning my default room where the bridge is place and transition time is set, is on top. In a Scene it is then on first place (eve App) and then the lights are following. Buy doing this, transition time is recognized ad working here. |
I don't think order of characteristics in a HomeKit scene is guaranteed - it's just how the app displays them. After receiving a notification from HomeKit that a characteristic has changed, homebridge-hue delays sending the bridge request for a light or group by 20ms ( By running |
Does this work on Raspbee as well? I set the Transition Time in Eve and I can see this command in homeridge-hue message, but the light still turns on instantly. |
If homebridge-hue show the correct command in the debug log, there’s little I can do here. What type of light? What happens if you issue the same command directly to the deCONZ REST API? |
I try several configurations and find how it works. As you mentioned in previous comments, you need two separate scenes to make Hue-like wake up work: first turn the light on and set the brightness at 0%, and then set the transition time and set brightness to 100%. I think the reason that single scene setup doesn't work is because that if the light is not on before you set the transition time, it may automatically restore your previous setup at power off, which is 100% in my default cases. So, no transition will happen. |
Using Homebridge-Hue is a very cool way to add transition time in HomeKit automations, not to mention voice activation using Siri. Very cool. Interestingly, with the addition of Siri Shortcuts in iOS 12, we can now use Siri to "natively" activate transition times in Hue light scenes created or edited by third party apps such as the Hue Lights app. I go into more detail about it here http://techheroesinc.blogspot.com/2018/11/finally-siri-supports-transition-times.html Unfortunately, HomeKit and the Hue app still do not recognize the transition time attribute, so using scenes with transition times in automations without Homebridge and the Hue plugin is still not possible. |
Thanks for the info. How does Siri tell the Hue bridge to recall the scene? Is that through a (new?) HomeKit characteristic, or does she make a direct API call to the Hue bridge? |
I didn't get, why do we need to turn the lights on at 0% brightness before setting the scene with transition time? Are you automating this using hb automation switches or how? :) |
Am I right that |
From what I understand that's correct however you can expose both ways at
the same time. You can whitelist the lights (in the hue bridge) you want to
use with transitiontime and this way only part will be exposed, then put
those homebridge duplicates into 'automation' room in HomeKit and use them
for automation purposes only.
pon., 30 lis 2020 o 14:33 JCHH <[email protected]> napisał(a):
… Am I right that transitiontime only works (appears as an option in the
Eve app) if the Hue lights are exposed to HomeKit via Homebridge-Hue and
not via the Hue bridge?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#130 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AINHNWKWLZLH4QOBHMZIBXLSSONLRANCNFSM4DQ5DISA>
.
|
cheers! |
Do you guys see a way for a timed fade in/out that can be set via HomeKit? For example the Hue app's native "Wake up/Sleep" routines but manageable via HomeKit scenes or longpresses/3D touches.
At the moment I use the hue light native with the hue bridge connected to HomeKit.
Thanks.
The text was updated successfully, but these errors were encountered: