Helpers and Automations in Home Assistant: Creating an Alarm Clock Part 2

preview_player
Показать описание
In today's video we'll build upon the last video by creating an alarm clock, we'll set up some helpers to set the time and an on/off status in order to trigger an automation. This automation will open our blinds, turn on a light and play some music using the alexa media player integration we installed last video through an amazon echo. As always, thanks for watching and let me know what you guys would like to see in the future down below.

0:00 Intro/Description
0:59 Creating Helpers
2:02 Helper to Dashboard Tips
3:29 Creating the Automation
7:19 Creating Full Alarm Clock on Dashboard
10:40 Final Product/Testing

Items Used in Video (Helps me spend more time creating videos, thank you!):

------------------
Alexa Media Player Service Call:
------------------

entity_id: your echo dot id
media_content_type: AMAZON_MUSIC
media_content_id: song, artist, genre, playlist here

------------------
Switch Value/Icon Template (YouTube won't allow angle brackets, there's only going to be one next to the "icon_template:" line so just check the blog or look up the icon_template formatting you'll see where to put it)
------------------

- platform: template
switches:
alarmed:
turn_on:
data:
turn_off:
data:
icon_template:
mdi:toggle-switch
{% else %}
mdi:toggle-switch-off
{% endif %}
Рекомендации по теме
Комментарии
Автор

lol great walkthrough and chilled out music and pace too

maphouse
Автор

Great video. Thank you so much. Very new to HA and only been using it about 2 weeks. Had a really hard time finding anything on how to do this and most answers are all use your android to connect and all kinds of things but nothing that was this simple. I had done something in just an automation that would require me to change the time in the actual automation all the time. This is exactly what I Needed. Wish more people would make it simple and clear like you did.

mrcarealot
Автор

"If you're not awake.... I dunno, you probably need a smart shower above your bed." XD Subscribed, sir. Funny shit, clear and helpful too.

gavbag
Автор

really nice tutorial :) used it in combination with the wake-up-light blueprint, works perfect!

JorisTheunissen
Автор

Just what I was looking for! Thanks for making the video!

Cirkaable
Автор

Thanks for the tutorial! I've been looking for how to make a more traditional alarm clock - one that has a snooze button and repeats the chosen alarm sound. But this was a good help to see that I was on the right track for what I've been looking to do!

SB
Автор

Exactly what I need to schedule things based on time! Thank you 😁 subscribed!

martink
Автор

Great explanation. I was going to build something similar and this is really helpful. The two things I am going to add are are clock (so you can use it with an old phone as "real" alarm clock next to your bed) and a wake up light which starts half an hour in advance and gradually turns up the lighting (especially in winter I wake up before it's light). At the same time of triggering my wake up light I will also turn on my heating so everything is nice and comfy when I get out of bed.

Gijz
Автор

Thanks for the great tutorial. Note: you are missing a link to the blog that was mentioned in the video and in the description above

yosemitesam
Автор

Thanks! Ps. that is not military time, that is 24h time that almost everyone else than US uses. Military clock would be 2100 without the dots

Jorma___
Автор

Really nice tutorial. Probably needs an update for recent versions of Home Assistant, should be even easier now to make the card look better.

Couldn't help me noticing.. You didn't like making the video? Lots of 'sighs' in there. Probably just the way you talk i guess?

However, thanks for the tutorial, 9/10!

shandromeerdink
Автор

for anyone watching this video with a newer version of home asistant, try using this code (old one doesn't work):

switch:
- platform: template
switches:
alarmed:
value_template: "{{ is_state('input_boolean.alarmedtoggle', 'on') }}"
turn_on:
service: input_boolean.turn_on
data:
entity_id: input_boolean.alarmedtoggle
turn_off:
service: input_boolean.turn_off
data:
entity_id: input_boolean.alarmedtoggle
icon_template: >-
{% if is_state('input_boolean.alarmedtoggle', 'on') %}
mdi:toggle-switch
{% else %}
mdi:toggle-switch-off
{% endif %}

habbibi