This home automation is BETTER than anything out there!
ฝัง
- เผยแพร่เมื่อ 20 มิ.ย. 2024
- I made my lights change when my TV is playing a show or paused, and I improved it to make it work even better!
Here are the Home Assistant Blueprints you can import. I'd appreciate any feedback so let me know what you think!
my.home-assistant.io/redirect...
my.home-assistant.io/redirect...
If you haven't seen the main channel video including this automation then go check it out! • I added 10 NEW Home Au...
Article I wrote explaining how to set this up and the other automations in that video. smarthomesolver.com/reviews/1...
(affiliate links)
Lutron Caseta Dimmer: amzn.to/3Uryqyy
Hue lightstrip: amzn.to/4boZFQw
Hue filament bulb warm and cool: amzn.to/3OvFS86
WiZ light strips: amzn.to/3ujiNP3
FOLLOW ME
Subscribe to Reed's Smart Home: bit.ly/3EulO02
Subscribe to Smart Home Solver: bit.ly/3joO1dZ
Twitter: / smarthomesolver
Instagram: / smarthomesolver
TikTok: / smarthomesolver
0:00 Intro
0:11 3 ways it has to be perfect
0:59 Lighting scenes
1:55 Setting up the automation
3:16 Only certain apps
3:35 Lock lights on or off
4:10 Use the Blueprint
Here are the Home Assistant Blueprints you can import. I'd appreciate any feedback, so let me know what you think!
my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgist.github.com%2Fsmarthomesolver%2Fecb69b3a382a79d959583f3dd23ca060
my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgist.github.com%2Fsmarthomesolver%2F4c594ddbc8623d2554785d52e4673bd0
Hey, the second blueprint doesn't work.
@@alonsobrito3926 make sure the automation i(in my case) entity is set to "on". i briefely had the same issue and created two scenes to use. one was for off and the other was for on - or whatever your desired level of light is.
For the "paused" Blueprint, You may want to update the "The scene for your lights" secton to reflect the "paused" action. I do beileve this section was just a carry over from the "off" blueprint.
This is awesome, will this work with fire tv?
It's fantastic, but I think you should have more options, for example being able to turn off some lights while others turn on when you play and press, for example when you start the movie the ambilight turns on and the ambient light turns off, and when you pause it turns off. I turned off the ambilight and turned on the ambient light, and a question about how I could add Disney to that blueprint, thank you very much.
I've done something similar - one thing I ended up doing was looking at the length of the media that's playing (available in the Apple TV integration in Home Assistant). Then I use this to work out if its a movie (e.g. >1 hour) or something shorter. I then only turn off all the lights if its a movie. When watching something shorter often you dont want all the lights to turn off as its more casual.
U don’t watch marathons of TV Shows like they’re a movie 😂
@@rashdub2057 huh
This is a really fun automation to play with. When I had an automation like this running, I even tied in ambient light and weather conditions so that the lights would not change if it was already bright in the room and the weather was clear or sunny, but if the weather was cloudy or rainy, the automation would go ahead and raise the brightness of the lights.
But here's a similar automation I was even happier with:
You're not going to see the connection at first, but stay with me. We used to have a few large dogs, and all of the automatic feeders at the time seemed to be for cats and micro-dogs. So, I attached a zigbee contact sensor to the dogs' food container. I then setup a boolean helper and an automation that would check several times per day to see if the dog had been fed according to schedule. If the dogs had been fed [dog food container was opened with the last x amount of time] then the dogs_fed boolean would turn on. If the dogs were not fed, then two things would happen: 1. a push notification would go out to everyone in the house reminding them to feed the dogs, and 2. As long as the dogs_fed boolean was off, then if someone tried to watch something on any of the Apple TV's in the house, Home Assistant would pause the Apple TV and play an audio message on the HomePod in that room reminding the person to feed the dogs. This would repeat until the dogs were fed, and then the person could proceed to watch TV. It worked like charm. Dogs always got fed when they were supposed to. I highly recommend this kind of automation.
Saw this on your main channel this morning and skimmed your blog post about it. Came back here to find this here. So thankful for the blueprint. Virtual switch override is a nice touch and really shows a well rounded solution and implementation. Thanks for making it easy with the blueprints.
Love the blueprint concept! I finally got a Home Assistant Green last week, can't wait to actually get to use some of your automation ideas now 😊
Thank you for the blueprints looking forward to playing with them and trying them out.
LOVE this deep dive video on a single thing! Would love to see more like this!
Love this little addition.
Awesome! Thanks for the blueprints.
Reed! Thanks for the blueprints! As much as I'd like to set stuff like this up on my own each time, time is often NOT on my side.
Props for all of it!! I may try since I have the Lutron lights and Apple TV, thanks!
I’m a huge fan of Apple home content creators sharing their programming. Thanks!
Hi Reed, great video and thanks for the blueprint 😊
Appreciate the blueprints matey thanks for sharing..
The virtual switch as a condition is so clever! I can’t wait to implement that into other automations
You saved me so much time with the HASS blueprint! Thank you so much!
Awesome. Already imported. Will surprise the wife and kids with this tonight
Great automations! Here's to hoping this is what finally sells my wife on this whole smart home hobby. 🤞
You’ve gotten way too smart for me! This is impressive
Thanks Reed…Blueprints are much appreciated…Please keep doing these times of vids…I need help with automations…😅
Great work! Thanks for sharing. It works great. A couple of suggestions for next version:
- if you could choose “from sundown to sunset” instead of time it would adapt all year around.
- add a feature where you could turn off other automations while this is playing. My light automation is based on presence and overrides this if I move.
Great topic! I did something similar in my media room, and it's still a family fave.
A bit more complex in my situation, requiring Home Assistant integrations with my Nvidia Shield, kodi and PLEX, and a simple Node-RED automation, but other than that it's very similar. I created a companion automation that actually turns key lights up to bright, and switches inputs on my AVR when having family Zoom calls. All triggered through my remote talking to Home Assistant. And I'm sure that there are other cool variations of this too.
Thanks Reed.
Thanks for the blueprint! I have something very similar but I didn't even think about separating automations per application, so I'll give your blueprint a try :D Only thing I missed in the video was if this only runs when it is dark outside, but I believe this might be easy to add :)
Nice, Reed! Love the idea. I could see this also being possibly extensible for Fire TV. Would like to see a single blueprint with both automations (for play / pause TV) if possible.
Thanks again 🙏🏻
Love your videos and they have been super informative. I’ve been wanting to transition from Google to an Apple home. Videos like this give me ideas and helps with the spouse approval.
Great stuff. Thanks
Nice one! I’ve got an automation suggestion for you, if you have contact sensors on your bathroom doors, have an RGB bulb in each room then red when the door is closed and revert back to what it was doing when the door opens. If you have two floors, only light up bulbs on that floor with the occupied bathroom though. I also have my bathroom lights come on when the door is closed and go off when opened. Really basic but SUPER useful imo
Thanks. Wish this was for Homebridge.. guess I have to invest in HA now too
Thanks!
This is really cool. My problem is several-fold:
1. My apartment building is about a hundred years old and I'm pushing it to run anything more than a couple of WS2812B strips. The one ceiling light in the living room is one single LED fixture with a pull string. No switches anywhere.
Next, we don't only watch apps, we have a Blu-ray player with a ton of movies and the Blu-ray isn't smart, so none of that works there.
The next problem is that my TV is an older dumb flat screen with a Roku hooked up. I have a string of lights around the back so, when I turn on the TV and the lights come on, the rest of the LEDs go dim. Kind of handy, if I do say so myself.
One of my favorite automations. I have been using an automation very similar to this for a while with my Apple TV. A suggestion - in addition to app ID, it may be helpful to configure a condition for media duration, this way you can limit lights changing for things like auto playing trailers on Netflix.
great suggestion. When browsing Netflix shows, when they do the auto play preview, the Apple TV state changes to "playing". I got around this by setting a condition "media_content_type = video" as when browsing the menus, this is set to "music". This prevents the lights from dimming each time a preview auto plays. I also like your suggestion, I might add that too.
That's a very cool automation. Seeing things like this I think how cool this is but sometimes I wonder at what point it's kind of excessive. I mean ok things like this give people ideas. I sometimes see stuff like this and think maybe I should switch version smartthings to home assistant but I don't exactly feel like putting in the work for the initial setup to have my system working just as it currently does. It's also things like this that make my setup look very rudimentary by comparison. But keep it up!
Mind. Blown.
Love all these viseos
Excellent blueprint Reed, worked straight away for me, so easy to set up - one quick question i don't see and Apple TV option for playback detection?
Love your content Reed!!
I’m very new to home assistant and need some guidance. Have you done any HA guides for newbies??
This is litterly why I started Home Assistant. This is just so pro, thank you so much. Only took a while to find the Bundle ID's of Dutch apps. but I managed to get it. No idea if I can post a helpful link in the comments, lease let me know!
OMG THANK YOU!!!
Great video. Where did u bought the tv stand. Link please 😊
Love it
This is awesome, thank you! I’ll try it out. I was thinking about creating scenes in HA where specific apps are opened in Apple TV. Do you have a link that helps setting that up or even better, don’t you wanna create a video about it?:D Like watch Netflix, TH-cam or NBA…
Hey, great automations and awesome that you gave us a blueprint! Just to add on top of it, you do not need to create a new input boolean to disable the automation, as you can toggle the automation itself, same as you'd do with a boolean.
True you could easily disable the automation completely. I just prefer to have an Input Boolean do it because I can add that quickly to my dashboard for my living room and see if it's on or off. Also I have an automation run in the middle of the night that resets all my input booleans that temporarily turn things off like this. That way the lights are only temporarily locked for that day. But yes I could re-enable the automation and all of that but I just prefer the Input Boolean switch.
@@reedssmarthome you can also have a button on your dashboard to enable/disable the automation, same as you'd have the boolean tied to that same button. And you can also reset the automation statuses with your reset automation, even though the fine tuning of choosing what to reset could be messier than using the helpers :)
Pls add some more stuff for the AppleTV Automations.. thank you!
How cool is this!? I'd love to start using HA, only issue is I have no idea how to use it. All the beginners guides I've watched seem to me to actually think the person watching knows how to use HA. I've yet to find a guide that says 'right, here is how to turn on a light with a motion sensor. Now turn on the same light when light levels change. Now only set it up at these days and times' etc.
Hi Reed. How do you find the app names for stuff that’s not already in the blueprint? Thanks for all the great content!
Cool. I have the Hoobs box (Homebridge), how do you do this with Homebridge?
Otherwise this can be done with shortcuts.
I have 2 Siri shortcuts where I say,” Siri, pause movie or continue movie“. This has one action: Apple TV: pause (or play) ; but here you can add home control actions for the lights.
Disadvantage: no actions by pressing the remote only by pressing the shortcuts or via voice.
Absolutely love this! Works great on AppleTV. Thank you so much for the Blueprint. Any chance you can add Pause option to the Blueprint? I.e. When paused, choose a light scene
Thanks! Sorry the link to the second blueprint for the pause was broken. I updated the link to fix it and here it is my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgist.github.com%2Fsmarthomesolver%2F4c594ddbc8623d2554785d52e4673bd0
@@reedssmarthome Thank you, much appreciated
Great Blueprint! I wish it worked for Roku devices.
Thanks! Looking at the Roku integration I think it should work. www.home-assistant.io/integrations/roku/
Awesome. Have been thinking about this myself.
Do you happen to know if it is possible to recognize whether Plex is playing a movie or something else, like a tv show, or music? I only want the extra dimmed lights when watching a movie, but not when listening to music for example.
Good tutorial Sir. Can you please explain how to controll the Roborock vacum to clean a spesific room using a switch?
Thanks! I followed these instructions www.home-assistant.io/integrations/roborock/#how-can-i-clean-a-specific-room and it works great.
Bedankt
Hey Reed! Great idea and im glad you put this how to out there! So i recall playing with this several months ago and from what i recall the issue i ran into was when i had say netflix or max open in apple tv and im browsing for a show to watch, those previews that play when you are selected on a show for a few seconds seemed to trigger the play pause which would then raise and lower my lights as i was scrolling through searching for something to watch. Have you also ran into this or did you disable the previews? The idea being i would only want the lights to raise when I press pause, not when a show was done playing or im in the middle of searching for something to watch as different previews play and stop.
first link to import the blueprint works the second i am getting invalid parameters given
Hey sorry about the second link. I must have not copied and pasted it correctly. It should work now.
I updated the article to have instructions on how to make it skip autoplay on Netflix for the "play" automation. You just add to the condition
- condition: state
entity_id: CHANGE_ME_YOURMEDIAPLAYER
attribute: media_content_type
state: video
This is great, but how do you get it to work with something in your Apple library or if you’re watching Apple TV+ or Disney+?
Love this and using the blue prints. How do you find the app ids of other Apple TV apps? I need Disney, and Crave in Canada.
Go to the Developer Tools section in the bottom left. It's the little hammer icon. Go to the tab "States" enter in the entity of your Apple TV and then when you start playing something from Disney, just hit the little refresh button and you will see it.
There's a lot of great info in those States. I recently added to the article on how to have the lights not change if something like Netflix autoplays a video from looking at the States. Basically if it didn't have "media_content_type: video" then it was just autoplaying.
@@reedssmarthome amazing, thank you!
@@reedssmarthome Brilliant, thank you. I was looking for the same thing. Anyone from the UK looking for AppleTV Sky Go ID - on the AppleTV, it only shows the state as IDLE when playing Sky Go content. Appears Sky haven't built their app properly to show a media state
Nice one Reed. I have been using this automation for a while but the problem I have with mine is when you are scrolling through the Netflix menu. scrolling through the menu changes the state constantly so the light keeps going on and off. I’ll have to check your blueprint to see how you dealt with this issue.
I don’t have that in the blueprint but I have a solution for it in the article. Just add one condition when it’s the Netflix app and the media_content_type is video. Scroll to the very bottom smarthomesolver.com/reviews/10-new-automations-for-2024-how-to-setup/
Thanks so much for this. What is the state to return the lights back to normal if you exit out of media without pausing. I tried stopped, stop, and idle on line 100 of your automation.
Can you do a video on how you set up when your phone connects to wifi using home assistant? Are you using a unifi router for this, or will any router work?
I have this setup and it works really well, but if my wife is in the kitchen with the lights on - and I start playing something - it turns her lights off. I have an aqara FP2 presence sensor in the kitchen, but I don't know how to integrate this to 'delay' turning the lights off until no presence is detected in the kitchen. Any ideas? Super cool of you to share the blueprint - many thanks!
I did this a while ago on my HA with my Apple TV. one of my favourite automations. I put media duration as a condition in mine so if I'm playing a short trailer while trying to figure out what to watch it won't dim the lights. I also am fighting with the prime video app, which likes to change state to play while browsing the app. Prime video also uses their own player, so can't get duration from it :(
If you have a firetv and an echo you can also do this very easily. However it must be by voice commands by Alexa. Ex Alexa pause tv or Alexa play tv ..ect
I am very impressed with all your settings. My question is: How do you keep track of all the integrations and settings. That means if something goes wrong, where do you start looking?
Thanks and that's a good question. I try and name all of my automations something that I can quickly search and know what's happening from reading the automation title.
So if an issue was happening with the TV and the lights. I would go to the automation section and search "tv" and then see what automation just ran and is not working. Or if the automation didn't run when it was supposed to, I click on "Traces" and see what condition stopped it from running.
If the automation seems fine, it could be the integration. So I reload the integration for whatever seems like it isn't working and if that doesn't fix it. Reboot Home Assistant and if that doesn't fix it, then update Home Assistant. It's rare for me to get to that point.
I am having trouble with this setup. When scrolling to find a specific time in the movie, the brightness of the lights keeps fluctuating between high and low. This happens because the Apple TV switches between playing and paused states. Have you found a solution to this issue? I do not want to use a timer because I love the responsiveness. Thank you for all your work!
Hi Reed, how did you accomplish the lights turning back on when an episode of a tv show finishes? You mentioned it at the very end of your main video. I have an automation that will turn up the lights very slowly like in a movie theater. But I'm struggling to find an easy way to trigger that (other than using a button) during the credits of a tv show episode or movie. Do you have any ideas on how to accomplish this? Is that something an Apple TV can do when integrated into Home Assistant? Thanks!
For me it was just happening automatically and the state would just be "Paused" when the TV show finished. But you could use
media_duration" and "media_position" and calculate how much is left and turn on the lights when the credits are rolling that way for a movie.
Reed said Boolean!
Is there a way to do that guest mode idea (Boolean switch) for all your automations? I have guests all the time and forget that my automations are running a round the house 😅
See I’ve had this a while, but I had to make my lights only brighten once the Apple TV had been paused for 5/10 seconds, since everytime I was fast forwarding/rewinding a video, home assistant would see it as ‘paused’ so when jumping 10 seconds at a time, the lights would go into seizure mode! Did you run into this issue and/or find a way round it? Would love to have it as instant as yours are
Can you show us how it works in the menu? Afaik Apple TV will have the playing state when the trailers start playing in the menu. Which is all the time with on/off.
I am getting in to home assistant you have help me to know what it can do
For home assistant, can you do this if you are running everything through an Xbox? Can it tell the difference if you are playing a game or netflix, or youtube?
How do you control the input boolean with your voice ?
Is it possible if I have a HomeKit enabled tv? Or does it have to be an Apple TV ?
I haven't tested that but if you can pull it into Home Assistant and view it as a media_player then it should work.
Do you happen to have 4 way dimmer switches and if yes how did you made them smart? I tried kasa and it didn't work 😢
How do you use the Apple Remote to stop the automation?
Can this same idea be done with nvidia shield 2019 and Hubitat?
you can use wiz with homekit?
Hey Reed, could you please share how did you find app IDs..? Having a trouble finding one for Hulu app on Apple TV :(
i like your automation but what about using homey pro ?
Trying to set up this automation in the Google home app. Media plays/ pauses isn't available as a trigger option - only Chromecast on/ off. Chromecast is a 3rd generation I believe and I'm in the UK. Any ideas?
can we do this with a firestick and alexa some how?
Can this be done using hubitat instead of home assistant?
Thank you so much will this work with NVidia shield?
I've been trying and haven't been able to find a way to make it work. We have to use either the Android Debug Bridge or the Android TV remote integration for Shield. The debug bridge contains the 'state' data to make this blueprint work, but it reports changes incredibly slow (can go towards 10s+). The TV remote addon sadly doesn't report the playing state. If you want this just for Plex then it can work with the plex integration.
Where can I get the app ids?
Good afternoon great, going to try this out. I'm just curious how I can find the app ID of other apps on the Apple TV. can anyone tell me.
Homebridge OR home assistant. So how do you do this with Homebridge? I don’t use home assistant.
How could I add other services like Disney. thank you
Any idea how to run app with apple TV integration? can't make it working at all :(
How do you find out what the App ID is? I'm trying to find the one for F1 TV.
Seems like a neat automation to use, but sadly I'm unable to get it to trigger. I've tested just doing an automation when the Apple TV is playing anything and I can do that. Yet when I try to set it up with either of these Blueprints, it will not work.
I simply use my Apple TV remote and say “turn on movie mode” and it just turns my scene on. The lights change to the levels we like.
Has anyone tested if the blueprints (or this whole thing done manually without the blueprint) will work with Nvidia shield? Or is this only for Apple TV and Google Chromecast?
how would I do this in HomeBridge?
Getting some lights to come on when you get up off your seat would be next-level so you don't have to pause it like in an emergency.
@@wojtek-33 thank you 🤗
@reedssmarthome Big request! When you are breaking your how information; could I ask you to please also think about us Homey Pro users. It would be great if you also played with this ecosystem and gave us pointers on a "flow" we could set up to translate this automation on that ecosystem. Too much to ask? Thanks in advance!
Question fot Reed or someone that has experience doing this
Am i able to do the same thing with a roku
I haven't tested the Roku myself but it looks like from the Home Assistant integration for Roku this should work the same!
how can i find disney app id on apple tv?
An Nvidia Shield reports Prime, Max, TH-cam show pause/playing as it should, but not Netflix as it reports "Playing" as soon as the app is running.
What about home bridge?
What about with Alexa and fire tv
I've done that my self, the only problem is with netflix it just go to a playing state when you run the app and even if you pause it still have a playing state
On the Chromecast it does that for some odd reason. This isn't the case though if you use your Chromecast with Home Assistant. For some reason the Chromecast state works just fine with Netflix in Home Assistant 🤷♂️