{"id":343,"date":"2017-10-26T03:25:16","date_gmt":"2017-10-26T03:25:16","guid":{"rendered":"http:\/\/www.cribbstechnologies.com\/?page_id=343"},"modified":"2017-10-30T20:15:26","modified_gmt":"2017-10-30T20:15:26","slug":"medicine-reminder","status":"publish","type":"page","link":"https:\/\/www.cribbstechnologies.com\/index.php\/home-assistant\/medicine-reminder\/","title":{"rendered":"Medicine Reminder"},"content":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>I went to the doctor a few months ago and he said I&#8217;ve got chronic allergic rhinitis so he prescribed Flonase. I asked how long I should take it and he said &#8220;daily, forever.&#8221; I&#8217;m really horrible at remembering to do stuff so Home Assistant to the rescue! I set up an automation to remind me every half hour from 8AM to 1PM that sends a TTS announcement to remind me to take my Flonase. That&#8217;d be annoying if I already did it so I needed a way to turn it off.<\/p>\n<p>I bought a bunch of Amazon Dash buttons on Prime Day so I figured I&#8217;d put them to use. I&#8217;ve got a Dash button that lives with my medicine and I press it after I&#8217;ve taken my meds. It&#8217;s picked up by Dasher and it sends a request to the Home Assistant RESTful API to turn on an <a href=\"https:\/\/github.com\/cribbstechnologies\/ha_config\/blob\/master\/packages\/dash_buttons\/flonase_reminder.yaml#L1\">input boolean<\/a>.<\/p>\n<p>The automation checks the state of the boolean in a <a href=\"https:\/\/github.com\/cribbstechnologies\/ha_config\/blob\/master\/packages\/dash_buttons\/flonase_reminder.yaml#L18\">condition<\/a>\u00a0and doesn&#8217;t send the TTS announcement if it&#8217;s off.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] I went to the doctor a few months ago and he said I&#8217;ve got chronic allergic rhinitis so he prescribed Flonase. I asked how long I should take it and he said &#8220;daily, forever.&#8221; I&#8217;m really horrible at remembering to do stuff so Home [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":364,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-343","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":1,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/343\/revisions"}],"predecessor-version":[{"id":344,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/343\/revisions\/344"}],"up":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/364"}],"wp:attachment":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/media?parent=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}