{"id":12754,"date":"2022-07-30T10:51:49","date_gmt":"2022-07-30T17:51:49","guid":{"rendered":"https:\/\/smarthomesolver.com\/reviews\/?p=12754"},"modified":"2022-07-30T10:51:50","modified_gmt":"2022-07-30T17:51:50","slug":"insane-automations","status":"publish","type":"post","link":"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/","title":{"rendered":"How to Set Up: Insane Automations that may take it too far!"},"content":{"rendered":"\n<p>Thanks for watching my <a href=\"https:\/\/youtu.be\/oDztXgZ38GE\" target=\"_blank\" rel=\"noreferrer noopener\">insane automations video<\/a>! In the video, I showed 10 home automations that *may* take it too far. <\/p>\n\n\n\n<p>Well&#8230; if you&#8217;re reading this article, you must NOT think they take it too far, because this will show you how to set everything up. <\/p>\n\n\n\n<p>In the video, I briefly showed the ideas, but couldn&#8217;t go into the details on how I set everything up. Here, you&#8217;ll find the ideas broken up into sections, so you can easily jump around to whatever home automation you want to learn how to set up. <\/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=\"#Insane_home_automation_ideas\">Insane home automation ideas<\/a><ul><li><a href=\"#What_to_watch\">What to watch<\/a><\/li><li><a href=\"#Robot_vacuum_button\">Robot vacuum button<\/a><\/li><li><a href=\"#Scare_kids_back_to_bed\">Scare kids back to bed<\/a><\/li><li><a href=\"#Smart_tracker\">Smart tracker<\/a><\/li><li><a href=\"#Hidden_NFC_tag\">Hidden NFC tag<\/a><\/li><li><a href=\"#Help_with_groceries\">Help with groceries<\/a><\/li><li><a href=\"#Dynamic_alarm\">Dynamic alarm<\/a><\/li><li><a href=\"#Extra_wake_up_motivation\">Extra wake up motivation!<\/a><\/li><li><a href=\"#NFC_music_tag\">NFC music tag<\/a><\/li><li><a href=\"#Hit_me_baby_one_more_time\">Hit me baby one more time!<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h2 class=\"has-text-align-center\"><span id=\"Insane_home_automation_ideas\">Insane home automation ideas<\/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=\"What_to_watch\">What to watch<\/span><\/h3>\n\n\n\n<p>This automation recognizes that the projector has been on too long, and has the Echo start suggesting shows from a list I&#8217;ve made. This automation seems simple on the surface but it&#8217;s actually one of the most complicated automations I&#8217;ve ever made.<\/p>\n\n\n\n<p>I searched for many different options to store a &#8220;list&#8221; in Home Assistant. Turns out it&#8217;s less common than you might think. I ended up using their <a href=\"https:\/\/www.home-assistant.io\/integrations\/shopping_list\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shopping List integration<\/a> even though it&#8217;s extremely flawed. <\/p>\n\n\n\n<p>There is actually <strong>no way<\/strong> to access the shopping list items in Home Assistant. Wait&#8230; what! Yeah you heard that right. I have to MAKE AN API CALL TO GET ALL THE ITEMS! This is what makes Home Assistant great and terrible at the same time. <\/p>\n\n\n\n<p>Okay here is how to make an API call to get the items. You will need to make a Sensor in your configuration.yaml file or your sensor.yaml file if you have made one of those. This will make an API call every 60 seconds and make those results available via a sensor. The sensor will be called &#8220;sensor.check_list&#8221; as you keep reading. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- platform: rest\n  name: Check List\n  headers:\n    authorization: !secret api_token\n    content-type: 'application\/json'\n  resource: https:\/\/YOURHOMEASSISTANTURL\/api\/shopping_list\n  value_template: \"{{ value_json | selectattr('complete', 'false') | map(attribute='name') | list | join(', ') }}\"\n  method: GET\n  scan_interval: 60<\/code><\/pre>\n\n\n\n<p>The &#8220;!secret api_token&#8221; is just a reference to a variable called api_token in the secrets.yaml file. That should look something like. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>api_token: \"Bearer lasdhfjakljdhfkjadshflkasdhfklajshdfklajhfdsalkjsdhakljdshfalk\" <\/code><\/pre>\n\n\n\n<p>You can generate one of those in your Profile section of Home Assistant. <a href=\"https:\/\/developers.home-assistant.io\/docs\/api\/rest\/\" target=\"_blank\" rel=\"noreferrer noopener\">Check out more info here<\/a> about how to do it. <\/p>\n\n\n\n<p>Okay that is just the first part! Now time to actually make the automation. I told you it was a complicated one. <\/p>\n\n\n\n<p>The trigger for this is when my Denon receiver turns on. It has an amazing reliable integration with Home Assistant so I use it to know if my home theater has been turned on or off. <\/p>\n\n\n\n<p>The condition is that there is actually a list of shows or movies to watch. If not, there is no reason to run this automation. <\/p>\n\n\n\n<p>Then for the action I wait 10 minutes to give myself time to pick something to watch. After 10 minutes there is another action that checks if the XBOX is NOT playing or paused. If it is playing or paused I&#8217;ve started watching something so end the automation. It also checks if the light in the media console is turned off. This is a fail safe because if I&#8217;m playing an XBOX game it will not be in &#8220;playing&#8221; or &#8220;paused&#8221; modes. I usually leave on the accent lights until the show or game has started. <\/p>\n\n\n\n<p>If all those conditions are true, then it will mute the Denon receiver and make a tts message to the Echo Dot in the room. That just reads the message out loud on the speaker. I&#8217;m using a template to pull that list from the sensor. Then it unmutes the speakers. <\/p>\n\n\n\n<p>Here is the automation YAML code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Movie Suggestions\ndescription: ''\ntrigger:\n  - platform: device\n    device_id: f438486407447a4be3ddc349a7707a\n    domain: media_player\n    entity_id: media_player.denon_avr_x4700h\n    type: turned_on\ncondition:\n  - condition: template\n    value_template: '{{ (states(''sensor.check_list'') | length) &gt; 0 }}'\naction:\n  - delay:\n      hours: 0\n      minutes: 10\n      seconds: 0\n      milliseconds: 0\n  - condition: not\n    conditions:\n      - condition: or\n        conditions:\n          - condition: device\n            device_id: 7eb89f5df43d68df7f9c080dab9ddb\n            domain: media_player\n            entity_id: media_player.theater_xbox\n            type: is_playing\n          - condition: device\n            device_id: 7eb89f5df43d68df7f9c080dab9ddb\n            domain: media_player\n            entity_id: media_player.theater_xbox\n            type: is_paused\n      - condition: state\n        entity_id: light.theater_consol_2\n        state: 'off'\n  - service: media_player.volume_mute\n    data:\n      is_volume_muted: true\n    target:\n      entity_id: media_player.denon_avr_x4700h\n  - service: media_player.volume_set\n    data:\n      volume_level: 0.5\n    target:\n      entity_id:\n        - media_player.living_room_dot\n  - service: notify.alexa_media\n    data:\n      message: &gt;-\n        Here are some shows to watch from you list. {{\n        states('sensor.check_list') }}\n      data:\n        type: tts\n      target: media_player.living_room_dot\n  - delay:\n      hours: 0\n      minutes: 0\n      seconds: 5\n      milliseconds: 0\n  - service: media_player.volume_mute\n    data:\n      is_volume_muted: false\n    target:\n      entity_id: media_player.denon_avr_x4700h\nmode: single\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Robot_vacuum_button\">Robot vacuum button<\/span><\/h3>\n\n\n\n<p>This idea uses a smart button to summon my robot vacuum to that specific room. I added the button to my bathroom drawer and when it&#8217;s pressed, the vacuum comes straight there for cleaning.<\/p>\n\n\n\n<p>This is a <strong>much<\/strong> easier automation to make and you can even do it all using Alexa Routines! <\/p>\n\n\n\n<p>First I&#8217;m using a Roborock vacuum and it allows me to divide up the house into separate rooms. I can use Alexa to clean a specific room with the robot vacuum which is pretty sweet. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms-561x1024.jpg\" alt=\"\" class=\"wp-image-12786\" width=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms-561x1024.jpg 561w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms-164x300.jpg 164w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms-841x1536.jpg 841w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms.jpg 657w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/figure><\/div>\n\n\n\n<p>The tricky part is the voice phrase to have Alexa clean a room with the vacuum and the custom Alexa Routine action are slightly different because Roborock can&#8217;t be one word. Here is what worked for me. &#8220;tell robo rock to clean the master bathroom&#8221;. Because I named the room &#8220;master bathroom&#8221; in the Roborock app. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-phrase-1024x959.jpg\" alt=\"\" class=\"wp-image-12788\" width=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-phrase-1024x959.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-phrase-300x281.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-phrase.jpg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>There are buttons like this <a href=\"https:\/\/amzn.to\/3Q82XMk\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Broadlink button<\/a> to trigger an Alexa Routine and you could do it like that and you would be all done. <\/p>\n\n\n\n<p>I&#8217;m actually using an <a href=\"https:\/\/amzn.to\/3BuoXx4\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Aqara Zigbee button<\/a> connected to Home Assistant that calls the Alexa Routine. I&#8217;m using <a href=\"https:\/\/github.com\/custom-components\/alexa_media_player\" target=\"_blank\" rel=\"noreferrer noopener\">Alexa Media Player<\/a> and this is what the automation looks like. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" width=\"1024\" height=\"497\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum-1024x497.jpg\" alt=\"\" class=\"wp-image-12789\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum-1024x497.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum-300x146.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum-1536x745.jpg 1536w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum-2048x994.jpg 2048w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/aqara-button-press-vacuum.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Home Assistant Automation Trigger<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" width=\"1024\" height=\"604\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called-1024x604.jpg\" alt=\"\" class=\"wp-image-12790\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called-1024x604.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called-300x177.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called-1536x906.jpg 1536w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called-2048x1208.jpg 2048w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-routine-called.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Home Assistant Automation Action<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-room-routine-alexa-app-678x1024.jpg\" alt=\"\" class=\"wp-image-12791\" width=\"300\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-room-routine-alexa-app-678x1024.jpg 678w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-room-routine-alexa-app-199x300.jpg 199w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-room-routine-alexa-app-1017x1536.jpg 1017w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/vacuum-room-routine-alexa-app.jpg 795w\" sizes=\"(max-width: 678px) 100vw, 678px\" \/><figcaption>Alexa App<\/figcaption><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Scare_kids_back_to_bed\">Scare kids back to bed<\/span><\/h3>\n\n\n\n<p>This idea is probably a little questionable since my wife gave it the axe it right away. I was thinking when our young kids get out of bed, an Echo Flex speaker in the hallway could gently &#8220;scare&#8221; them back into their room by saying certain phrases. <\/p>\n\n\n\n<p class=\"has-text-align-center\">REMOVED DUE TO SPOUSE VETO<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Smart_tracker\">Smart tracker<\/span><\/h3>\n\n\n\n<p>We always forget when we&#8217;ve given the kids vitamins, so I made a smart tracker. Press the button and it will tell you if they have already had vitamins for the day. If not, then it notes that you&#8217;ve now given them to the kids. Then if it&#8217;s pressed again, it will tell you they already had their vitamins for the day.<\/p>\n\n\n\n<p>The easiest way that I could think of was to create a virtual boolean on\/off switch and turn it on when the vitamin button was pressed. <\/p>\n\n\n\n<p>But first the automation checks to see if the virtual boolean is on or off. If it is off, it will read a message on the Echo Show in the kitchen saying it&#8217;s okay to give them their vitamins. After that, it changes the boolean to on. <\/p>\n\n\n\n<p>Then there is another automation that runs every night which resets the boolean to &#8220;off&#8221; as well as all my other temporary booleans I use for automations. Here is the automation YAML code. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Kid Vitamin Button Pressed\ndescription: ''\ntrigger:\n  - device_id: cf813fdb93b33da251e2937c26e54e\n    domain: zha\n    platform: device\n    type: remote_button_short_press\n    subtype: turn_on\ncondition: &#91;]\naction:\n  - service: media_player.volume_set\n    data:\n      volume_level: 0.6\n    target:\n      entity_id:\n        - media_player.reed_s_2nd_echo_show\n  - choose:\n      - conditions:\n          - condition: state\n            entity_id: input_boolean.kid_vitamins\n            state: 'off'\n        sequence:\n          - service: notify.alexa_media\n            data:\n              message: &gt;-\n                Yes, give the kids their vitamins and I have marked down that\n                they have had them.\n              data:\n                type: tts\n              target: media_player.reed_s_2nd_echo_show\n          - service: input_boolean.turn_on\n            data: {}\n            target:\n              entity_id: input_boolean.kid_vitamins\n    default:\n      - service: notify.alexa_media\n        data:\n          message: STOP! They have already had their vitamins for the day.\n          data:\n            type: tts\n          target: media_player.reed_s_2nd_echo_show\nmode: single<\/code><\/pre>\n\n\n\n<p>Also the bonus automation to remind us that the kids haven&#8217;t had their vitamins yet at dinner time:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Kid Vitamin Reminder\ndescription: ''\ntrigger:\n  - platform: time\n    at: '17:10:00'\ncondition:\n  - condition: state\n    entity_id: input_boolean.kid_vitamins\n    state: 'off'\naction:\n  - service: media_player.volume_set\n    data:\n      volume_level: 0.6\n    target:\n      entity_id:\n        - media_player.reed_s_2nd_echo_show\n  - service: notify.alexa_media\n    data:\n      message: &gt;-\n        This is a friendly reminder that the kids have not had their vitamins\n        today. \n      data:\n        type: tts\n      target: media_player.reed_s_2nd_echo_show\nmode: single\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Hidden_NFC_tag\">Hidden NFC tag<\/span><\/h3>\n\n\n\n<p>To trigger advanced scenes and automations with my light switch, I hid some NFC tags behind the switch plate. Of course I could use a smart switch for this, but this is a more affordable, fun, and sneaky way to automate.<\/p>\n\n\n\n<p><a href=\"https:\/\/amzn.to\/3Q5PLrj\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Here are the NFC stickers<\/a> I used. If you don&#8217;t have plastic light switch covers then this might not work. <\/p>\n\n\n\n<p>Adding NFC tags into Home Assistant is extremely easy. Go to Configuration and then select Tags. Click on the &#8220;ADD TAGS&#8221; button. After giving it a name scan the NFC tag and you are good to go. <\/p>\n\n\n\n<p>Then when creating an Automation you can select Tag as the trigger and select which NFC tag you want to trigger the automation. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" width=\"1024\" height=\"406\" src=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA-1024x406.jpg\" alt=\"\" class=\"wp-image-12796\" srcset=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA-1024x406.jpg 1024w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA-300x119.jpg 300w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA-1536x609.jpg 1536w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA-2048x812.jpg 2048w, https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/NFC-Tag-in-HA.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Help_with_groceries\">Help with groceries<\/span><\/h3>\n\n\n\n<p>If I&#8217;m already home and my wife just arrives home, plus the garage door is open for longer than a minute, I get an alert to help bring in the groceries. This way I can make sure I&#8217;m helping out even if I&#8217;m on the other side of the house and don&#8217;t realize she just got home. <\/p>\n\n\n\n<p>The automation isn&#8217;t long, but has some interesting conditions that might be hard to grasp at first. The Automation trigger is simple: if the garage door has been left open for 2 minutes. <\/p>\n\n\n\n<p>For the conditions, if my wife Aly is gone for more than 5 minutes and I&#8217;ve been home for more than 5 minutes, then it&#8217;s okay to run this automation. <\/p>\n\n\n\n<p>The action is a script I wrote that sends my phone a push notification. That way if I ever switch phones I only have to change the push notification action in one spot and not in all my automations. Major time saver! <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Grocery Help Notification\ndescription: ''\ntrigger:\n  - platform: device\n    device_id: fa283f0c63a7e7874d6072793d5197\n    domain: cover\n    entity_id: cover.garage_door_main\n    type: opened\n    for:\n      hours: 0\n      minutes: 2\n      seconds: 0\ncondition:\n  - condition: not\n    conditions:\n      - condition: state\n        entity_id: device_tracker.alys_iphone_se\n        state: home\n        for:\n          hours: 0\n          minutes: 5\n          seconds: 0\n  - condition: state\n    entity_id: device_tracker.pixel_6a\n    state: home\n    for:\n      hours: 0\n      minutes: 5\n      seconds: 0\naction:\n  - service: script.android_notification_basic\n    data:\n      title: Aly is home with groceries\n      message: Get up and help her!\nmode: single<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Dynamic_alarm\">Dynamic alarm<\/span><\/h3>\n\n\n\n<p>I wanted an automation that shifts my alarm clock depending on how late I stayed up the night before. Now, the pressure sensor under my bed can shift my alarm clock up if I crash early, or move it back if I stay up.  <\/p>\n\n\n\n<p>I&#8217;m using a <a href=\"https:\/\/amzn.to\/3JjHX3g\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Withings sleep sensor<\/a> under my mattress and this thing has been so useful. It can integrate with Home Assistant and also works with IFTTT. <\/p>\n\n\n\n<p>The automation is pretty simple. I turn on a virtual boolean on\/off switch if I get in bed early and stay in bed for over 20 minutes. That way if I sit on my bed it doesn&#8217;t activate early wake up. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Reed Sleep Early On\ndescription: ''\ntrigger:\n  - platform: state\n    entity_id: binary_sensor.withings_in_bed_reed\n    to: 'on'\n    for:\n      hours: 0\n      minutes: 20\n      seconds: 0\ncondition:\n  - condition: time\n    before: '23:00:00'\n    after: '20:00:00'\naction:\n  - service: input_boolean.turn_on\n    data: {}\n    target:\n      entity_id: input_boolean.going_to_sleep_early\nmode: single\n<\/code><\/pre>\n\n\n\n<p>Then I have another automation that will wake me up early if this boolean is turned on. It&#8217;s very similar to the automation that runs at 7:30, but it looks for that condition for that boolean to be on. <\/p>\n\n\n\n<p>Also the normal 7:30 automation alarm is automatically skipped if I am not in bed anymore, so I don&#8217;t ever have to disable it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Morning Shades Up Early\ndescription: ''\ntrigger:\n  - platform: time\n    at: '06:30:00'\ncondition:\n  - condition: state\n    entity_id: input_boolean.morning_wakeup\n    state: 'on'\n  - condition: state\n    entity_id: binary_sensor.withings_in_bed_reed\n    state: 'on'\n  - condition: state\n    entity_id: input_boolean.going_to_sleep_early\n    state: 'on'\naction:\n  - device_id: fffc7ba04a6ed8ce1455f4a9c6aeaa\n    domain: cover\n    entity_id: cover.master_bedroom_left_shade\n    type: set_position\n    position: 100\n  - device_id: 8bfe44290e2fae4ad1a826c7f0cc9d\n    domain: cover\n    entity_id: cover.master_bedroom_right_shade\n    type: set_position\n    position: 100\n  - service: media_player.play_media\n    data:\n      media_content_type: routine\n      media_content_id: morningmusic\n    target:\n      entity_id:\n        - media_player.blue_dot\nmode: single\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Extra_wake_up_motivation\">Extra wake up motivation!<\/span><\/h3>\n\n\n\n<p>If the pressure sensor notices I&#8217;m still in bed and needing some extra motivation to wake up, it will have my Echo announce to my kids that it&#8217;s time to wake up dad. <\/p>\n\n\n\n<p>If you want your Alexa to say random phrases, then this is the little bit of code you can add to your Home Assistant automation to do that. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service: notify.alexa_media\ndata:\n  message: &gt;-\n    {% set insult_list = (\"seriously get out of bed, you are such a\n    disapointment\",\"if I had a dollar for every hour you wasted I would be\n    richer than Jeff Bezos\") %}  \n    {% set insult_list_random = (insult_list | random) %} \n    Thats it, {{ insult_list_random }}\n  data:\n    type: tts\n  target: media_player.kleinman_s_echo_dot<\/code><\/pre>\n\n\n\n<p>It&#8217;s a template that makes a list of strings or phrases. This example only has 2 for simplicity but then it picks a random phrase using this line {% set insult_list_random = (insult_list | random) %}<\/p>\n\n\n\n<p>I&#8217;m going to have too much fun with this functionality! <\/p>\n\n\n\n<p>The rest of the automation is pretty much a combination of the <a href=\"https:\/\/amzn.to\/3JjHX3g\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">pressure sensor from Withings<\/a> and making Alexa speak to get the kids to jump on me if I&#8217;m still in bed. Yes this automation got triggered just this morning and the kids jumped on me. It works! <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"NFC_music_tag\">NFC music tag<\/span><\/h3>\n\n\n\n<p>Whenever I scan this NFC tag, it starts playing music on my Echo and pulls up my custom music dashboard. This makes it way easier to control the music on my phone while it plays on the Echo! <\/p>\n\n\n\n<p>Here is the automation when the NFC tag is scanned. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Studio NFC Echo Scanned\ndescription: ''\ntrigger:\n  - platform: tag\n    tag_id: 537fb3d3-9b1c-456c-b632-855cddd024db\ncondition: &#91;]\naction:\n  - service: script.actionable_android_music_notification\n    data: {}\n  - service: script.spotify_source_studio\n    data: {}\n  - service: media_player.media_play\n    data: {}\n    target:\n      entity_id: media_player.spotify_kleinman_family\nmode: single\n<\/code><\/pre>\n\n\n\n<p>It calls an actionable notification that when pressed will open up the Music view on my Home Assistant dashboard. If anyone knows of a better way to scan an NFC tag and open a specific view of Home Assistant then let me know! <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Actionable Android Music Notification\nsequence:\n  - service: notify.mobile_app_pixel_6a\n    data:\n      title: NFC Tag Scanned\n      message: Open Music Tab?\n      data:\n        clickAction: \/lovelace-dash\/music\n        url: \/lovelace-dash\/music\nmode: single\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3><span id=\"Hit_me_baby_one_more_time\">Hit me baby one more time!<\/span><\/h3>\n\n\n\n<p>Adding a vibration sensor under my media cabinet, I automated it to turn on the theater room whenever it detects vibration. So now a simple hit can turn on a show. I love it! <\/p>\n\n\n\n<p>I&#8217;m using an <a href=\"https:\/\/amzn.to\/3oJYIep\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Aqara vibration sensor<\/a> connected to Home Assistant using <a href=\"https:\/\/amzn.to\/3OL61gr\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">the ZigBee\/Z-Wave stick<\/a>. <\/p>\n\n\n\n<p>The only thing I wanted to make sure didn&#8217;t happen was triggering this automation from the subwoofer during a movie. So this only works if the theater is already off. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Theater Room Start with Hit\ndescription: ''\ntrigger:\n  - type: vibration\n    platform: device\n    device_id: 347389a5390cc16e21824fc229de13fc\n    entity_id: binary_sensor.lumi_lumi_vibration_aq1_ias_zone\n    domain: binary_sensor\ncondition:\n  - condition: device\n    device_id: f438486407447a4be3ddc349a7707ab7\n    domain: media_player\n    entity_id: media_player.denon_avr_x4700h\n    type: is_off\naction:\n  - service: script.alexa_routine_movie_preview\n    data: {}\nmode: single\n<\/code><\/pre>\n\n\n\n<p>The script that gets called turns on the projector, amp, lights, and calls an Alexa Routine to turn on some devices only connected with Alexa. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>alias: Alexa Routine Movie Preview\nsequence:\n  - service: media_player.play_media\n    data:\n      media_content_type: routine\n      media_content_id: premovie\n    target:\n      entity_id: media_player.reed_s_echo\n  - service: switch.turn_on\n    target:\n      entity_id: switch.projector_power\n    data: {}\n  - service: media_player.turn_on\n    data: {}\n    target:\n      entity_id:\n        - media_player.denon_avr_x4700h\n        - media_player.theater_xbox\n  - type: turn_on\n    device_id: b3709ca6411ef9b6a1fcecc7d26a82df\n    entity_id: light.theater_floor_2\n    domain: light\n    brightness_pct: 100\n  - service: light.turn_on\n    target:\n      entity_id: light.lines_25d7\n    data: {}\nmode: single\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Thanks so much for all of your support! If you like these automation ideas, make sure you <a href=\"https:\/\/bit.ly\/3joO1dZ\" target=\"_blank\" rel=\"noreferrer noopener\">subscribe to my YouTube channel<\/a> so you don&#8217;t miss future videos.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks for watching my insane automations video! In the video, I showed 10 home automations that *may* take it too far. Well&#8230; if you&#8217;re reading this article, you must NOT think they take it too far, because this will show <a href=\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\"><\/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>How to Set Up: Insane Automations that may take it too far!<\/title>\n<meta name=\"description\" content=\"Are these insane home automation ideas too over the top? Either way, I&#039;ll show you how to set everything up in Home Assistant!\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up: Insane Automations that may take it too far!\" \/>\n<meta property=\"og:description\" content=\"Are these insane home automation ideas too over the top? Either way, I&#039;ll show you how to set everything up in Home Assistant!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\" \/>\n<meta property=\"og:site_name\" content=\"Smart Home Solver\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-30T17:51:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-30T17:51:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms-561x1024.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"13 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\/insane-automations\/#primaryimage\",\"inLanguage\":\"en\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms.jpg\",\"contentUrl\":\"https:\/\/smarthomesolver.com\/reviews\/wp-content\/uploads\/2022\/07\/robotvacuum-rooms.jpg\",\"width\":657,\"height\":1200},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/#webpage\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\",\"name\":\"How to Set Up: Insane Automations that may take it too far!\",\"isPartOf\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/#primaryimage\"},\"datePublished\":\"2022-07-30T17:51:49+00:00\",\"dateModified\":\"2022-07-30T17:51:50+00:00\",\"author\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/#\/schema\/person\/d7a94f002e37d00d768cdbc8bf0afaa3\"},\"description\":\"Are these insane home automation ideas too over the top? Either way, I'll show you how to set everything up in Home Assistant!\",\"breadcrumb\":{\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/#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\/insane-automations\/\",\"url\":\"https:\/\/smarthomesolver.com\/reviews\/insane-automations\/\",\"name\":\"How to Set Up: Insane Automations that may take it too far!\"}}]},{\"@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\/12754"}],"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=12754"}],"version-history":[{"count":39,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/12754\/revisions"}],"predecessor-version":[{"id":12817,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/posts\/12754\/revisions\/12817"}],"wp:attachment":[{"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/media?parent=12754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/categories?post=12754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarthomesolver.com\/reviews\/wp-json\/wp\/v2\/tags?post=12754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}