{"id":11829,"date":"2021-01-30T08:02:52","date_gmt":"2021-01-30T15:02:52","guid":{"rendered":"https:\/\/smarthomesolver.com\/reviews\/?p=11829"},"modified":"2022-01-31T09:36:57","modified_gmt":"2022-01-31T16:36:57","slug":"apartment-automations-next-level","status":"publish","type":"post","link":"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/","title":{"rendered":"Apartment Automations &#8211; Next Level"},"content":{"rendered":"\n<p>Thanks for checking out <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/youtu.be\/G_bsShHvmj8\" target=\"_blank\" rel=\"noreferrer noopener\">my video<\/a> and now I&#8217;m going to explain how you can set these automations up yourself. <\/p>\n\n\n\n<p>Most of these will be using Home Assistant, but I&#8217;ve also shown how to do many of these in SmartThings in previous videos and articles. I&#8217;ll try to link to those if applicable. Plus I&#8217;ll explain the logic of the automation so you can recreate it in whatever system you&#8217;re using. <\/p>\n\n\n\n<p>Also, I&#8217;m not a Home Assistant expert, but I&#8217;ll try and keep it as simple as possible. If you are just getting started with Home Assistant, this will hopefully be helpful to you.<\/p>\n\n\n\n<p>This article is in the same order as the video, and I sectioned off the instructions so it&#8217;s easy to jump to the automation that interests you.<\/p>\n\n\n\n<div id=\"toc_container\" class=\"toc_white no_bullets\"><p class=\"toc_title\">Table of Contents<\/p><ul class=\"toc_list\"><li><a href=\"#Next_Level_Automations_How_To\">Next Level Automations: How To<\/a><ul><li><a href=\"#Calendar_Alarm\">Calendar Alarm<\/a><\/li><li><a href=\"#Wake_Up_Automation\">Wake Up Automation<\/a><\/li><li><a href=\"#Barking_Automation\">Barking Automation<\/a><\/li><li><a href=\"#Music_Room_to_Room\">Music Room to Room<\/a><\/li><li><a href=\"#Automated_Lights\">Automated Lights<\/a><\/li><li><a href=\"#Dinner_Automation\">Dinner Automation<\/a><\/li><li><a href=\"#TV_Automations\">TV Automations<\/a><\/li><li><a href=\"#Office_Lights\">Office Lights<\/a><\/li><li><a href=\"#Automated_Doorbell\">Automated Doorbell<\/a><\/li><li><a href=\"#Bedtime_Automations\">Bedtime Automations<\/a><\/li><li><a href=\"#Connecting_Alexa_and_Home_Assistant\">Connecting Alexa and Home Assistant<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h2 class=\"has-text-align-center\"><span id=\"Next_Level_Automations_How_To\">Next Level Automations: How To<\/span><\/h2>\n\n\n\n<p class=\"has-text-align-center\"><em><a rel=\"noreferrer noopener\" href=\"http:\/\/smarthomesolver.com\/about\" target=\"_blank\">Affiliate Disclosure<\/a>: This page has affiliate links, which earn us commission at no cost to you.<\/em>&nbsp;<\/p>\n\n\n\n<h3><span id=\"Calendar_Alarm\">Calendar Alarm<\/span><\/h3>\n\n\n\n<p>This is probably my favorite automation out of the group because it opens the door to so many more things you can do with it. <\/p>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.home-assistant.io\/integrations\/calendar.google\/\" target=\"_blank\" rel=\"noreferrer noopener\">Here is the link<\/a> for instructions to connect your Google Calendar to Home Assistant. <\/p>\n\n\n\n<p>Once you get it implemented, it will create a \/config\/google_calendars.yaml file. <\/p>\n\n\n\n<p>It was a little confusing at first, but basically it creates an on\/off switch for each calendar that you can use in your automations. You can turn off the calendars you aren&#8217;t using and create more on\/off switches for different types of events in one calendar. <\/p>\n\n\n\n<p>I wanted to create a reoccurring event that would be my wake up time. If you want to wake up before a certain event then check out &#8220;offset&#8221; in that link. <\/p>\n\n\n\n<p>I added this to my google_calendars.yaml file under my main calendar I use. This creates another on\/off sensor to Home Assistant.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  - device_id: wakeup\n    name: Wake up calendar\n    track: true\n    search: \"wakeup\"<\/code><\/pre>\n\n\n\n<p>That will look for any calendar event with the word &#8220;wakeup&#8221; and will turn the binary sensor &#8220;on&#8221; during the event. <\/p>\n\n\n\n<p>So the automation will look something like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"531\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-1024x531.jpg\" alt=\"\" class=\"wp-image-11833\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-1024x531.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-300x156.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-1536x797.jpg 1536w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-2048x1063.jpg 2048w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Once this is all set up, it&#8217;s very easy to adjust since it&#8217;s all done from the calendar. <\/p>\n\n\n\n<h3><span id=\"Wake_Up_Automation\">Wake Up Automation<\/span><\/h3>\n\n\n\n<p>The main thing I&#8217;m using for this is the <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/amzn.to\/3r1AN9m\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Withings Sleep Sensor<\/a>. It works with IFTTT and Home Assistant. I did have it connected to SmartThings using IFTTT to toggle a Virtual Switch on and off. <\/p>\n\n\n\n<p>Here is the yaml code for the Home Assistant automation. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Morning Wake Up Music\ndescription: ''\ntrigger:\n  - platform: state\n    entity_id: calendar.wakeup\n    to: 'on'\ncondition:\n  - condition: state\n    entity_id: binary_sensor.withings_in_bed_reeds_bed\n    state: 'on'\naction:\n  - service: media_player.volume_set\n    data:\n      volume_level: '0.10'\n    entity_id: media_player.echo_dot_master_bedroom\n  - service: script.play_music_master_bedroom\n    data: {}\n  - delay: '00:01:00'\n  - service: media_player.volume_set\n    data:\n      volume_level: '0.20'\n    entity_id: media_player.echo_dot_master_bedroom\n  - delay: '00:05:00'\n  - condition: state\n    entity_id: binary_sensor.withings_in_bed_reeds_bed\n    state: 'on'\n  - service: script.alexa_speak_wake_up\n    data: {}\nmode: single<\/code><\/pre>\n\n\n\n<p>If you want to have Alexa connected to Home Assistant, I explain how to get that set up at <a href=\"https:\/\/smarthomesolver.com\/reviews\/?p=11829&amp;preview=true#Connecting_Alexa_and_Home_Assistant\">the bottom of this article<\/a>. <\/p>\n\n\n\n<p>If you want to trigger an Alexa routine from SmartThings, <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/smarthomesolver.com\/reviews\/ideas-for-fixing-home-automation-problems\/#Trigger_an_Alexa_Routine_from_SmartThings\" target=\"_blank\" rel=\"noreferrer noopener\">here is how I&#8217;ve set mine up<\/a>. <\/p>\n\n\n\n<h3><span id=\"Barking_Automation\">Barking Automation<\/span><\/h3>\n\n\n\n<p>This can be done with either SmartThings or Home Assistant if you have an Echo device. <\/p>\n\n\n\n<p>Technically you could create this using just an Alexa Routine, but you wouldn&#8217;t be able to only have it run when everyone is gone, so it&#8217;s probably not recommended to set up that way. <\/p>\n\n\n\n<p>Using Home Assistant, connect Alexa using Alexa Media Player as <a href=\"https:\/\/smarthomesolver.com\/reviews\/ideas-for-fixing-home-automation-problems\/#Trigger_an_Alexa_Routine_from_SmartThings\">mentioned here<\/a>. Then <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/github.com\/custom-components\/alexa_media_player\/wiki#play-sounds\" target=\"_blank\" rel=\"noreferrer noopener\">reference this<\/a> as the potential sound effects you can play through the Echo speaker. <\/p>\n\n\n\n<p>I&#8217;m using <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.home-assistant.io\/integrations\/ping\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ping as my presence sensor<\/a> to know if my wife and I are home. I set a static IP address for my phone and my wife&#8217;s. <\/p>\n\n\n\n<p>Then I added this extra code to my configuration.yaml file. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>device_tracker:\n  - platform: ping\n    interval_seconds: 30\n    consider_home: 1200\n    hosts:\n      reed_iphone_ping: 192.168.X.XXX\n      aly_iphone_ping: 192.168.X.XXX<\/code><\/pre>\n\n\n\n<p>It makes two devices reed_iphone_ping and aly_iphone_ping that will mark away from the house after 20 minutes of being disconnected. That will give it some buffer in case it randomly disconnects. <\/p>\n\n\n\n<p>As mentioned in the video, phones will sometimes disable WiFi late at night temporarily, so keep that in mind when setting up the automation. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Doorbell Motion While Away\ndescription: ''\ntrigger:\n  - type: motion\n    platform: device\n    device_id: 305946373e8311eb9ef8fb058ac97486\n    entity_id: binary_sensor.front_door_motion\n    domain: binary_sensor\ncondition:\n  - condition: state\n    entity_id: device_tracker.reed_iphone_ping\n    state: away\n  - condition: state\n    entity_id: device_tracker.aly_iphone_ping\n    state: away\n  - condition: time\n    after: '08:00:00'\n    before: '22:00:00'\naction:\n  - service: script.alexa_sound_effect_echo_away\n    data: {}\nmode: single\n<\/code><\/pre>\n\n\n\n<p>This automation calls a script in Home Assistant to play the sound effect. Here is the yaml to that script. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Alexa Sound Effect Echo Away\nsequence:\n  - service: media_player.volume_set\n    data:\n      volume_level: '0.60'\n    entity_id: media_player.reed_s_echo\n  - service: media_player.play_media\n    data:\n      media_content_id: amzn_sfx_dog_med_bark_1x_02\n      media_content_type: sound\n    entity_id: media_player.reed_s_echo\nmode: single\n<\/code><\/pre>\n\n\n\n<p>Also here is the same thing in UI form if that&#8217;s more helpful. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"926\" height=\"1024\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/sound_effect-926x1024.jpg\" alt=\"\" class=\"wp-image-11842\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/sound_effect-926x1024.jpg 926w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/sound_effect-271x300.jpg 271w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/sound_effect.jpg 1085w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/figure>\n\n\n\n<h3><span id=\"Music_Room_to_Room\">Music Room to Room<\/span><\/h3>\n\n\n\n<p>Since I listen to Spotify, I am using the <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.home-assistant.io\/integrations\/spotify\" target=\"_blank\" rel=\"noreferrer noopener\">Home Assistant Spotify integration<\/a>. The automation gets triggered by a motion sensor in the room and then checks if Spotify is playing anything. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"484\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/spotify-playing-1024x484.jpg\" alt=\"\" class=\"wp-image-11845\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/spotify-playing-1024x484.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/spotify-playing-300x142.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/spotify-playing.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If Spotify is playing, then it calls a script that changes the speaker.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"591\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/change-music-room-1024x591.jpg\" alt=\"\" class=\"wp-image-11844\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/change-music-room-1024x591.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/change-music-room-300x173.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/change-music-room.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Where &#8220;Blue Dot&#8221; is the name of my Echo Dot. You can get the name of your devices by going to the Developer Tools in Home Assistant and searching for it. <\/p>\n\n\n\n<p>This automation also uses our phones as presence sensors connected to WiFi. Reference the automation above on how I set that up. <\/p>\n\n\n\n<h3><span id=\"Automated_Lights\">Automated Lights<\/span><\/h3>\n\n\n\n<p>Lately my favorite <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/amzn.to\/3coQseE\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">motion sensor is from Hue<\/a>. The batteries last FOREVER! Seriously it can easily last 2 or 3 years on the two AAA batteries inside. <\/p>\n\n\n\n<p>I also like that it has both a light sensor and temperature sensor that Home Assistant has access to. <\/p>\n\n\n\n<p>If you are using SmartThings, <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/smarthomesolver.com\/reviews\/smart-home-challenge-phone-charger-ambient-light\/#Motion_Lights_when_it8217s_Cloudy\" target=\"_blank\" rel=\"noreferrer noopener\">here is a previous article<\/a> where I show an example of how to set this up.<\/p>\n\n\n\n<p>For Home Assistant, this is part of the automation when it&#8217;s not very bright in the room and there&#8217;s motion, the lights turn on. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"821\" height=\"1024\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/automated-lights-ha-821x1024.jpg\" alt=\"\" class=\"wp-image-11847\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/automated-lights-ha-821x1024.jpg 821w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/automated-lights-ha-240x300.jpg 240w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/automated-lights-ha-1231x1536.jpg 1231w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/automated-lights-ha.jpg 962w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<h3><span id=\"Dinner_Automation\">Dinner Automation<\/span><\/h3>\n\n\n\n<p>The NFC tag I am using is <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/amzn.to\/3t6FrVj\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">this one<\/a> you can get on Amazon. At the time of writing this, those were unavailable so I also use <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/amzn.to\/3a9ciQA\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">these NFC tags<\/a> as well. <\/p>\n\n\n\n<p>I made <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/youtu.be\/o9WHrX9cvXA\" target=\"_blank\" rel=\"noreferrer noopener\">a video on NFC tags<\/a> that you can check out. I show how to trigger automations using SmartThings, HomeKit, and Home Assistant. <\/p>\n\n\n\n<p>The way I have it set up is my iPhone uses a Shortcuts automation to call an Event in the Home Assistant app. <\/p>\n\n\n\n<p>That Event triggers an automation in Home Assistant that calls this script to set the volume of the Echo device and play Spotify. <\/p>\n\n\n\n<p>Here is the automation yaml.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Kitchen Charger Tag\ndescription: ''\ntrigger:\n  - platform: event\n    event_data: {}\n    event_type: kitchen_charger_tag\ncondition: &#91;]\naction:\n  - service: script.play_music_spotify_living_room\n    data: {}\nmode: single\n<\/code><\/pre>\n\n\n\n<p>Here is a screen shot of the script UI. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"905\" height=\"1024\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/play-spotify-905x1024.jpg\" alt=\"\" class=\"wp-image-11851\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/play-spotify-905x1024.jpg 905w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/play-spotify-265x300.jpg 265w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/play-spotify.jpg 1061w\" sizes=\"(max-width: 905px) 100vw, 905px\" \/><\/figure>\n\n\n\n<h3><span id=\"TV_Automations\">TV Automations<\/span><\/h3>\n\n\n\n<p>One of the best ways to know if the TV is on or off is by using a smart plug that measures energy usage. I&#8217;m using the <a href=\"https:\/\/amzn.to\/2NQda5p\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener nofollow\">SmartThings WiFi smart plug<\/a> connected with SmartThings. <\/p>\n\n\n\n<p>I also have my SmartThings hub integrated with Home Assistant. If you want to just use SmartThings then check out <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/smarthomesolver.com\/reviews\/smart-home-automation-ideas\/#20_TV_Lights_with_Any_Remote\" target=\"_blank\" rel=\"noreferrer noopener\">number 20 of an article I posted<\/a> showing how to do this in webCoRE. <\/p>\n\n\n\n<p>You could also follow the same logic below and use it with just the native SmartThings automations. Just create a Virtual Switch instead of an input boolean.<\/p>\n\n\n\n<p>You will need to create an input boolean in Home Assistant to keep track of if the TV is on or off. If you don&#8217;t, then the &#8220;TV off automation&#8221; can run over and over again. That&#8217;s because the power consumption of a TV bounces around even while the TV is off. <\/p>\n\n\n\n<p>To create an input boolean in Home Assistant, go to &#8220;Configuration&#8221; and then &#8220;Helpers.&#8221; In the bottom right, click on &#8220;Add Helper&#8221; and create a Toggle helper. This is like a <a href=\"https:\/\/youtu.be\/Ys5vQdr_1WA\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">Virtual Switch<\/a> in SmartThings. <\/p>\n\n\n\n<p>The trigger of the automation will be when the Watts go above a certain threshold for a few seconds. For my TV, 35 Watts was ideal, and over 3 seconds seemed to trigger the least amount of false positives. <\/p>\n\n\n\n<p>Here is a screenshot of the automation&#8217;s trigger.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"801\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/tv-automation-1024x801.jpg\" alt=\"\" class=\"wp-image-11856\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/tv-automation-1024x801.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/tv-automation-300x235.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/tv-automation.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Also this is the yaml for the full automation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: WiFi Plug On\ndescription: ''\ntrigger:\n  - platform: numeric_state\n    entity_id: switch.wifi_smart_plug_2\n    attribute: current_power_w\n    for: '00:00:03'\n    above: '35'\ncondition:\n  - condition: state\n    entity_id: input_boolean.tv_on\n    state: 'off'\naction:\n  - service: scene.turn_on\n    data: {}\n    entity_id: scene.movie_lights\n  - service: input_boolean.turn_on\n    data: {}\n    entity_id: input_boolean.tv_on\nmode: single\n<\/code><\/pre>\n\n\n\n<h3><span id=\"Office_Lights\">Office Lights<\/span><\/h3>\n\n\n\n<p>When managing automations it&#8217;s much easier to create fewer, but more complicated automations, rather than a bunch of simple ones.<\/p>\n\n\n\n<p>For example, I have my office lights change colors depending on the time of day. I could create two automations for different times, but that can get messy real fast. <\/p>\n\n\n\n<p>Instead, create one automation for when motion is detected and have multiple IF ELSE conditions in the action. <\/p>\n\n\n\n<p>To do this in Home Assistant, select &#8220;Choose&#8221; as the action type. The UI is pretty straight forward to select the nested Condition and Action. <\/p>\n\n\n\n<h3><span id=\"Automated_Doorbell\">Automated Doorbell<\/span><\/h3>\n\n\n\n<p>A feature that Amazon has added to their routines recently is the ability to write out custom commands for the action. <\/p>\n\n\n\n<p>Scroll to the bottom and you will see the Custom option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Alexa-routine-custom-601x1024.jpeg\" alt=\"\" class=\"wp-image-11858\" width=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Alexa-routine-custom-601x1024.jpeg 601w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Alexa-routine-custom-176x300.jpeg 176w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Alexa-routine-custom.jpeg 704w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/figure>\n\n\n\n<p>Routines can be called from Home Assistant, and this could take the automation a step further. <\/p>\n\n\n\n<p>For example, if you were watching TV, you could have a routine called to display the live view of the doorbell on the TV instead of the Echo Show. This can easily be done using Alexa Media Player explained at the bottom of this article. <\/p>\n\n\n\n<h3><span id=\"Bedtime_Automations\">Bedtime Automations<\/span><\/h3>\n\n\n\n<p>This automation uses the <a href=\"https:\/\/amzn.to\/3r1AN9m\" target=\"_blank\" rel=\"noreferrer noopener\">Withings Sleep Sensor<\/a> again. As mentioned above, it works well with Home Assistant and IFTTT. So if you are using SmartThings you could use IFTTT to integrate it. <\/p>\n\n\n\n<p>The Withings Sleep Sensor is treated as an on\/off binary sensor. Basically &#8220;on&#8221; is you&#8217;re in bed and &#8220;off&#8221; you are out of bed. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"699\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Withings-out-of-bed-1024x699.jpg\" alt=\"\" class=\"wp-image-11861\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Withings-out-of-bed-1024x699.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Withings-out-of-bed-300x205.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/Withings-out-of-bed.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Use that as a Trigger for the automation for when you are getting in bed or out of bed. It&#8217;s not instantaneous in changing states, so keep that in mind. You may want a motion sensor near the ground to pick you up when you get out of bed. However, if you have pets then the Withings sensor might be a good option instead. <\/p>\n\n\n\n<h3><span id=\"Connecting_Alexa_and_Home_Assistant\">Connecting Alexa and Home Assistant<\/span><\/h3>\n\n\n\n<p>One of the easiest ways to get Alexa integrated with Home Assistant is using Alexa Media Player. <\/p>\n\n\n\n<p><a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/github.com\/custom-components\/alexa_media_player\/wiki\/Configuration\" target=\"_blank\" rel=\"noreferrer noopener\">Here is a link<\/a> to get it installed. <a href=\"https:\/\/hacs.xyz\/docs\/installation\/prerequisites\" target=\"_blank\" aria-label=\"undefined (opens in a new tab)\" rel=\"noreferrer noopener\">HACS<\/a> has had some vulnerabilities lately so be careful with that but the latest updates should have fixed everything. <\/p>\n\n\n\n<p>With Alexa Media Player you can do so much with it. Call Alexa Routines, make Alexa speak phrases, play music, sound effects&#8230;etc. <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/github.com\/custom-components\/alexa_media_player\/wiki\" target=\"_blank\" rel=\"noreferrer noopener\">Here is a page<\/a> of all the things you can do. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Hopefully this is helpful to those who are looking to take their smart home to the next level! <\/p>\n\n\n\n<p>As I mentioned near the end of the video, I&#8217;ll also continue to cover more simple automations in Alexa and Google Routines, HomeKit, and of course SmartThings. Make sure to <a aria-label=\"undefined (opens in a new tab)\" href=\"https:\/\/www.youtube.com\/c\/SmartHomeSolver?sub_confirmation=1\" target=\"_blank\" rel=\"noreferrer noopener\">subscribe here<\/a> so you don&#8217;t miss those.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks for checking out my video and now I&#8217;m going to explain how you can set these automations up yourself. Most of these will be using Home Assistant, but I&#8217;ve also shown how to do many of these in SmartThings <a href=\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\"><\/p>\n<div class=\"read-more\">\n<p>Read more &#8250;<\/p>\n<\/div>\n<p><!-- end of .read-more --><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apartment Automations - Next Level | Smart Home Solver<\/title>\n<link rel=\"canonical\" href=\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apartment Automations - Next Level | Smart Home Solver\" \/>\n<meta property=\"og:description\" content=\"Thanks for checking out my video and now I&#8217;m going to explain how you can set these automations up yourself. Most of these will be using Home Assistant, but I&#8217;ve also shown how to do many of these in SmartThings Read more &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\" \/>\n<meta property=\"og:site_name\" content=\"Smart Home Solver\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-30T15:02:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-31T16:36:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation-1024x531.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"10 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Smart Home Solver\",\"description\":\"Smart Home Solver\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/smarthomesolver.com\/reviews\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/#primaryimage\",\"inLanguage\":\"en\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation.jpg\",\"contentUrl\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2021\/01\/calendar-automation.jpg\",\"width\":1200,\"height\":623},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/#webpage\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\",\"name\":\"Apartment Automations - Next Level | Smart Home Solver\",\"isPartOf\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/#primaryimage\"},\"datePublished\":\"2021-01-30T15:02:52+00:00\",\"dateModified\":\"2022-01-31T16:36:57+00:00\",\"author\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\"},\"breadcrumb\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/apartment-automations-next-level\/\",\"name\":\"Apartment Automations &#8211; Next Level\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\",\"name\":\"Reed Kleinman\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#personlogo\",\"inLanguage\":\"en\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f0b2a85b039ba9da5470ee40dc5ab57a?s=96&r=g\",\"caption\":\"Reed Kleinman\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/11829"}],"collection":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/comments?post=11829"}],"version-history":[{"count":32,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/11829\/revisions"}],"predecessor-version":[{"id":11876,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/11829\/revisions\/11876"}],"wp:attachment":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/media?parent=11829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/categories?post=11829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/tags?post=11829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}