Modern Dashboard Lite Part 3 - berkansezer77/home-assistant GitHub Wiki
Okay this part mainly consists buttons that do different things. All of my automations I used here are listed in this page. Plus you can find how to explanations. Enjoy.
First boolean list used here.
- Sleep Automation - input_boolean.notify_home3:
Shutdowns my house when I go to sleep at night.
- Movie Time - input_boolean.notify_home
When a show or a movie starts, my livingroom dims lights and makes the scene ready for the action.
- TRV Open - input_boolean.trv_close_open
I turn my home heating system on and off
- Alarm - input_boolean.notify_home4
Controls my Alarm System
- Music Follow - input_boolean.notify_home7
Where ever I go in the house, music follows me.
- Face Recognition - input_boolean.frigateface_recognize
This activates face recognition system and unlocks my door.
- Traffic Mode - input_boolean.trafik_ev_is
My travel time to work and back home. It scans the duration and warns me from telegram and through media players.
- Guest Mode - input_boolean.notify_home1
Turns on Guest Mode and deactivates some automations.
- Air Condition for Summer - input_boolean.bedroom_climate_sleep_mode
My favorite. It keeps the room temperature at a certain level in summers.
- Vacation Mode - input_boolean.vacation
House is entering into vacation mode when I am away from town.
- Alexa Media Players volume down - input_button.alexa_media_player_volume_5
Lowers the volume for all Alexa Media Players at once.
- Alexa Media Players volume down - input_button.alexa_media_player_volume_2
Lowers the volume for all Alexa Media Players at once.
- Shutdown Button - input_button.zone_leave_home
A complete shutdown button upon leaving the house.
Every button has different functions and belongs to automations running in the background.
Sleep - input_boolean.notify_home3
Puts the into slepp mode.
alias: "Boolean - Sleep Mode "
description: ""
trigger:
- platform: state
entity_id: input_boolean.notify_home3
to: "on"
- platform: state
entity_id: input_boolean.notify_home3
to: "off"
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.notify_home3
state: "on"
sequence:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.all_lights_off
data: {}
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.ha_alarm
data:
code: "1234"
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: script.turn_on
data: {}
target:
entity_id: script.office_monitor_open
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: scene.turn_on
data: {}
target:
entity_id:
- scene.tv_kapat
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: scene.turn_on
data: {}
target:
entity_id: scene.anfi_kapat
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.trv_close_open
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.notify_home1
- service: scene.turn_on
target:
entity_id: scene.sleep_mode
metadata: {}
- conditions:
- condition: state
entity_id: input_boolean.notify_home3
state: "off"
sequence:
- service: alarm_control_panel.alarm_disarm
data:
code: "1234"
target:
entity_id: alarm_control_panel.ha_alarm
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.trv_close_open
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.notify_home1
default: []
mode: single
2 - Movie Time - input_boolean.notify_home
When something on Android TV starts playing on certain streaming services, the living room lights will change to movie time.
A simple automation example for "Netflix on Android TV"
alias: Fire TV - Netflix Movie Time
description: ""
trigger:
- platform: state
entity_id:
- media_player.fire_tv_192_168_1_86
to: playing
id: "1"
- platform: state
entity_id:
- media_player.fire_tv_192_168_1_86
to: paused
id: "2"
condition:
- condition: state
state: "on"
entity_id: input_boolean.notify_home
- condition: state
entity_id: media_player.fire_tv_192_168_1_86
attribute: app_id
state: com.netflix.ninja
action:
- choose:
- conditions:
- condition: trigger
id: "1"
sequence:
- scene: scene.movie_time
- conditions:
- condition: trigger
id: "2"
sequence:
- scene: scene.ambiance
default: []
mode: single
When playing it will activate scene "Movie Time". when paused it will change the lights to ambiance mode by activating "Scene Ambiance". Just create your scenes and use in this automation.
3) TRV Open - input_boolean.trv_close_open
Changes my TRV controls between 5 - 45.
alias: TRV - All Close (Automation)
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.trv_close_open
to: "off"
id: close
- platform: state
entity_id:
- input_boolean.trv_close_open
to: "on"
id: open
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: close
sequence:
- service: climate.set_temperature
data:
temperature: 5
target:
entity_id:
- climate.salin_bilfen_thermostat
- climate.salon_arka_sol_termostat
- climate.sokak_termostat
- climate.salon_arka_sag_termostat
- climate.ofis_termostat
- climate.soyunma_odasi_termostat
- climate.yatak_odasi_termostat
default: []
- choose:
- conditions:
- condition: trigger
id: open
sequence:
- service: climate.set_temperature
data:
temperature: 45
target:
entity_id:
- climate.salin_bilfen_thermostat
- climate.salon_arka_sol_termostat
- climate.sokak_termostat
- climate.salon_arka_sag_termostat
- climate.ofis_termostat
- climate.soyunma_odasi_termostat
- climate.yatak_odasi_termostat
default: []
mode: single
I control my heating with this chip. You can also automate it to turn off upon leaving your house.
4) Alarm - input_boolean.notify_home4
No need for keypads or anything else. I turn on and off my alarm using this button.
alias: "Boolean - Alarm "
description: ""
trigger:
- platform: state
entity_id: input_boolean.notify_home4
to: "on"
- platform: state
entity_id: input_boolean.notify_home4
to: "off"
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.notify_home4
state: "on"
sequence:
- service: alarm_control_panel.alarm_arm_away
data:
code: "1234"
target:
entity_id: alarm_control_panel.ha_alarm
- conditions:
- condition: state
entity_id: input_boolean.notify_home4
state: "off"
sequence:
- service: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.ha_alarm
data:
code: "1234"
default: []
mode: single
5) Music Follow - input_boolean.notify_home7
My music follows me around the houuse. I use a simple automation for that.
Let me tell you the layout first.
I have 5 media players around the house. They are located in 5 seperate rooms. These rooms ara called:
- Salon
- Mutfak
- Office
- Bedroom
- Banyo
My main goal is for the music playing on Spotify to follow me around the house without my intervention. To achieve this I used Spotcast and Spotify integration on Home Assistant. Both has to be installed on your setup.
If everything is ready we first create an automation to transfer music to the room we entered. I used motion sensors based on my house in my setup.
Now an example of my office setup.
alias: Music Follow - Office
description: ""
trigger:
- type: motion
platform: device
device_id: 782eec9f69f73b04bf2171e5ba44b7c9
entity_id: binary_sensor.hue_motion_sensor_3_motion_3
domain: binary_sensor
condition: []
action:
- if:
- condition: template
value_template: "{{ not is_state('media_player.everywhere', 'playing') }}"
- condition: state
entity_id: media_player.spotify_berkan_sezer
state: playing
then:
- service: spotcast.start
data:
force_playback: true
device_name: Office Dot
- service: automation.turn_on
data: {}
target:
entity_id:
- automation.music_follow_salon
- automation.music_follow_mutfak
- automation.music_follow_bedroom
- automation.music_follow_banyo
- service: automation.turn_off
data:
stop_actions: false
target:
entity_id: automation.music_follow_office
mode: single
A very simple automation. Trigger is motion sensor in my office. When motion is detected the automation will look for 2 conditions.
- Is the SPotify media player is playing ? ( this is because I don't want the music to be on all time when I entered the room. It should only function when I am listening music on Spotify.
- Is the media player everywhere is currently playing ? Media Player everywhere is a player where I created on Alexa app. It plays the song on all over the house Alexa players if activated. I put this condition because I don't want the music to play in only one room at a time while playing the whole house.
For example I have an automation for arrival to home between 12:00pm and 20:00pm. When I arrive media_player.everywhere is playing music on whole house to welcome me. But if the condition I mentioned above were not there, the music playing in the whole house would switch to a single room as soon as I entered a room after entering the house.
So when two conditions are met now Spotcats will start the music on "Office Dot" which is my media player in the area office. Thirdly the automation will turn on the music follow automation for other rooms and as a final step it will turn off the automation itself.
So a little explanation here.
I have 5 separate automations for 5 separate rooms. As in the office automation in the example, when I enter this room, the automations in the other rooms are activated and the office automation is turned off. There is a very important reason for this. If the office automation does not turn itself off after turning on the music, this time it tries to turn on the music again when it detects motion in the room, and this creates a split second pause on the media player. So after the Office automation is turned off, whenever we enter some other room it will activate again and will be waiting motion for transfering the music.
Since I may not want this music tracking system to work some times, I connected it to a button to turn it off. Of course, I do this with an automation method. "input_boolean.notify_home7" is used for this purpose and the automation is.
alias: Boolean - Music Follow
description: ""
trigger:
- platform: state
entity_id: input_boolean.notify_home7
to: "on"
- platform: state
entity_id: input_boolean.notify_home7
to: "off"
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.notify_home7
state: "on"
sequence:
- service: automation.turn_on
target:
entity_id:
- automation.music_follow_banyo
- automation.music_follow_bedroom
- automation.music_follow_mutfak
- automation.music_follow_office
- automation.music_follow_salon
data: {}
- conditions:
- condition: state
entity_id: input_boolean.notify_home7
state: "off"
sequence:
- service: automation.turn_off
target:
entity_id:
- automation.music_follow_banyo
- automation.music_follow_bedroom
- automation.music_follow_mutfak
- automation.music_follow_office
- automation.music_follow_salon
data:
stop_actions: true
default: []
mode: single
6) Face Recognition.
This is a very complex subject. I am using face recognition on my house. It helps me to unlock my door key while entering the house. I am running the system on a seperate machine with docker and seperate version of Home Assistant. The connection is done with "Remote Home Assistant" integration. I will make a detailed explanation of this later.
7) Traffic Mode
Okay this template is simple but I will explain deeply.
First everything is connected to a boolean named "input_boolean.trafik_ev_is". There are three automations and one template sensor running in the background. All of them are pretty easy.
- Template sensor :
This sensor writes the name of the last motion detected sensor. First group your motion sensors from the helpers section in Home Assistant. I have grouped mine under the name "binary_sensor.hue_motion_sensors".
so after adding this group you should see your new sensor "binary_sensor.hue_motion_sensors".
now write down your code into your sensor.yaml
- platform: template
sensors:
recent_motion1:
friendly_name: 'Recent Motion'
value_template: >-
{% set x = expand('binary_sensor.hue_motion_sensors')
| selectattr('state', 'eq', 'on')
| sort(reverse=true, attribute='last_changed')
| list %}
{% if (x | count > 0) and (((as_timestamp(now()) - as_timestamp(x[0].last_changed)) | int) < 1) %}
{% if (area_name(x[0].entity_id) != None) %}
{{ area_name(x[0].entity_id) }}
{% else %}
{{ x[0].name }}
{% endif %}
{% else %}
{{ states('sensor.recent_motion1') }}
{% endif %}
After that refresh "Template Entites" from developers tools > Yaml sectıon
Now you should have a new sensor called "sensor.recent_motion1" this wll show you the name of the last motion detected sensor
Okay we are all set now lets go to our traffic sensor.
First of all you need to have a "Travel Time" integration installed. I have "Google Maps Travel Time" installed. Alternatively you can use "Waze" or "Here Maps" integrations.
First we neeed to create our first automation to make the announcement of the current travel time to our commute.
alias: Trafik - First Time Boolean on Announce
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.trafik_ev_is
to: "on"
condition: []
action:
- service: notify.alexa_media
data:
target: >-
{% if is_state('sensor.recent_motion1', 'Soyunma Odası Sensor Motion')
%}
media_player.bedroom_echo
{% elif is_state('sensor.recent_motion1', 'Ofis Sensör Motion') %}
media_player.office_dot
{% elif is_state('sensor.recent_motion1', 'Salon Sensör motion') %}
media_player.berkan_s_echo_dot
{% elif is_state('sensor.recent_motion1', 'Mutfak Hareket Sensörü
motion') %}
media_player.berkan_s_2nd_echo_dot
{% elif is_state('sensor.recent_motion1', 'Yatak Odası Sensor Motion')
%}
media_player.bedroom_echo
{% elif is_state('sensor.recent_motion1', 'Banyo Sensor Motion') %}
media_player.bathroom_dot
{% elif is_state('sensor.recent_motion1', 'Antre Hue Hareket Sensörü')
%}
media_player.berkan_s_echo_dot
{% else %}
media_player.berkan_s_echo_dot
{% endif %}
message: >-
Currently taffic to work looks
{% if states("sensor.google_ev_is") | float >= 45 %}Terrible
{% elif states("sensor.google_ev_is") | float < 45 and states("sensor.google_ev_is") | float >= 35 %}slow
{% elif states("sensor.google_ev_is") | float < 35 and states("sensor.google_ev_is") | float >= 1 %}pretty good.
{% else %}
No idea
{% endif %}
It takes {{ states.sensor.google_ev_is.attributes.duration_in_traffic }}
to get there.
data:
type: announce
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: notify.colakgenel
data:
title: Merhaba
message: ""
data:
photo:
- file: www/png/md-lite/traffic.jpg
caption: >-
İşe olan uzaklığın tam olarak
{{states.sensor.google_ev_is.attributes.duration_in_traffic }}.
Trafik {% if states("sensor.google_ev_is") | float >= 45
%}Felaket {% elif states("sensor.google_ev_is") | float < 45 and
states("sensor.google_ev_is") | float >= 35 %}yavaş {% elif
states("sensor.google_ev_is") | float < 35 and
states("sensor.google_ev_is") | float >= 1 %}akıcı. {% else %}
No idea
{% endif %}
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: automation.turn_off
data:
stop_actions: false
target:
entity_id: automation.atrafik_ev_first_time_boolean_on_announce
mode: single
Okay so this is simple. When the boolean is turned on
Then it makes announcement on my media players(I am using Alexa integration)
But there is a catch here. As a target device we use the template sensor we created. sensor.recent_motion1 uses the last room where motion detected. So let's say as an example if the last room where motion detected was "Office" then the announcement will be made throught the media player located at the office.
Let's say you are in a room where there is no media player. Don't worry you can then locate the announcement to the nearest room. For example in my dressing room I have no media players present, so I choose my bedroom media player next door to make the announcement. This way I can easily hear the announcement.
Message is a template. Very easy. If the sensor of the travel time value is under 45 Alexa will read it as "Terrible" if it is over 35 it will be considered as Slow.
Second service here will inform me about the traffic time from instagram as well. You need to have Telegram Home Assistant integration to be installed as well.
So we now heard and read the announcement of our Traffic Time. Now it is time for Home Assistant to constantly check the traffice until the button is turned off. We need a second automation for that.
alias: Trafik - Ev - İş Duyuru
description: ""
trigger:
- platform: template
value_template: "{{ 1 < states('sensor.google_ev_is')|float(0) < 35 }}"
id: "35"
- platform: template
value_template: "{{ 35 < states('sensor.google_ev_is')|float(0) < 46 }}"
id: "45"
condition:
- condition: state
entity_id: input_boolean.trafik_ev_is
state: "on"
action:
- choose:
- conditions:
- condition: trigger
id: "35"
sequence:
- service: notify.alexa_media
data:
target: media_player.everywhere
message: >-
Currently taffic to work looks
{% if states("sensor.google_ev_is") | float >= 45 %}Terrible
{% elif states("sensor.google_ev_is") | float < 45 and states("sensor.google_ev_is") | float >= 35 %}slow
{% elif states("sensor.google_ev_is") | float < 35 and states("sensor.google_ev_is") | float >= 1 %}pretty good.
{% else %}
No idea
{% endif %}
It takes {{
states.sensor.google_ev_is.attributes.duration_in_traffic }} to
get there.
data:
type: announce
- service: notify.telegrambot
data:
title: Merhaba
message: ""
data:
photo:
- file: www/png/traffic.png
caption: >-
İşe olan uzaklığın tam olarak {{
states.sensor.google_ev_is.attributes.duration_in_traffic
}}. {% if
states.sensor.google_ev_is.attributes.duration_in_traffic|float
< 35 -%}
Trafik açık gözüküyor
{% elif
states.sensor.google_ev_is.attributes.duration_in_traffic|float
> 45 -%}
Trafik Yoğun. Çıkmak için biraz daha bekleyebilirsin.
{%- endif %}
- conditions:
- condition: trigger
id: "45"
sequence:
- service: notify.alexa_media
data:
target: media_player.everywhere
message: >-
Currently taffic to work looks
{% if states("sensor.google_ev_is") | float >= 45 %}Terrible
{% elif states("sensor.google_ev_is") | float < 45 and states("sensor.google_ev_is") | float >= 35 %}slow
{% elif states("sensor.google_ev_is") | float < 35 and states("sensor.google_ev_is") | float >= 1 %}pretty good.
{% else %}
No idea
{% endif %}
It takes {{
states.sensor.google_ev_is.attributes.duration_in_traffic }} to
get there.
data:
type: announce
- service: notify.colakgenel
data:
title: Merhaba
message: ""
data:
photo:
- file: www/png/md-lite/traffic.jpg
caption: >-
İşe olan uzaklığın tam olarak
{{states.sensor.google_ev_is.attributes.duration_in_traffic
}}. Trafik {% if states("sensor.google_ev_is") | float
>= 45 %}Felaket {% elif states("sensor.google_ev_is") |
float < 45 and states("sensor.google_ev_is") | float >= 35
%}yavaş {% elif states("sensor.google_ev_is") | float < 35
and states("sensor.google_ev_is") | float >= 1 %}akıcı.
{% else %}
No idea
{% endif %}
default: []
mode: single
This automation constantly checks the traffic at the background and informs you under two conditions which is when traffic travel time is below 35 and 45. And again it notifies through a telegram message as well.
So as a final step we need to tie the booleand into the automations.
alias: Boolean - Traffic
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.trafik_ev_is
id: first
to: "on"
condition: []
action:
- service: automation.turn_on
data: {}
target:
entity_id: automation.atrafik_ev_first_time_boolean_on_announce
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: automation.trigger
data: {}
target:
entity_id: automation.atrafik_ev_first_time_boolean_on_announce
mode: single
So when the boolean in on, this automation will activate the first shared automation. It will announce the traffice time according to the room you are in. The second automation will also listen to the traffic and will onlu make announcement when traffic is less then 45 or 35. When the boolean is off nothing will be scanned or send as voice or text message.
8) Guest Mode :
My house normally has a system shaped according to the living space of a single person. Many automations I use works in this direction. But of course, sometimes when guests come to the house or in other words, when there is more than one person, things get a little bit more complicated. For this reason, I use the Guest mode and by connecting it to a button, I make it active when a guest arrives.
I use Guest mode in a very complex way. It is involved in many automations. To give an example it disables light automation.
So what is a light automation ? I have created an automiton group for controlling my lights automatically. For example when I enter a room that room motion sensor detects my presence and turns on the lights in that room. At the same time it also turns off the lights in other rooms because I can not be in two places at the same time. So this logic works very well for single person. But when there are more then 1 people this automation won't work. You will need presence sensors to create much more complex automations for light controls. Son in theory this guest mode generally turns off my light automations. It is also connected to Alexa so I can command it with my voice.
It is also being used in my zone automations as well. When Guest mode is turned on and when I leave home, the house will not execute "goodbye mode" which turns off my lights, arms my alarm and turns of every single device. So with guest mode, goodbye mode is cancelled as well.
9) Air Condition Mode for Summer
This button actvates an automation for my bedroom air condition. Simply it controls the air condition during night sleep.
alias: "Otomatik - Klima Yatak Odası "
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.hue_motion_temp_yatak_odasi
id: düşük
below: "26.1"
- platform: numeric_state
entity_id: sensor.hue_motion_temp_yatak_odasi
id: yüksek
above: "26.9"
condition:
- condition: state
entity_id: input_boolean.bedroom_climate_sleep_mode
state: "on"
action:
- choose:
- conditions:
- condition: trigger
id: düşük
sequence:
- service: climate.turn_off
data: {}
target:
entity_id: climate.146235046506144_climate
- conditions:
- condition: trigger
id: yüksek
sequence:
- service: climate.turn_on
data: {}
target:
entity_id: climate.146235046506144_climate
default: []
mode: single
The aim is very simple, keep the room temperature on a single desired line. Like in the example when 26.1 is reached the air condition turns on and when it is 26.9 it turns off. One important factor here is that you should close your bedroom door when this automation works.
Last summer I remember on morning I decided to check the air conditioners work time during my night sleep. When I checked out the logs, on a 8 hour sleep I saw that the air condition was active onlu for 2 hours. I had a very quality sleep when I woked at that day. So I decided to use this button. Remember, you can tweak numbers.
10) Vacation Mode
Going on vacation is exciting, isn't it? But of course, it wouldn't be bad if we took some small precautions while we were not at home. That's exactly what this button does.
I use 2 seperate automations for vacation mode.
alias: Vacation Mode - Lights On
description: ""
trigger:
- platform: time
at: "23:00:00"
condition:
- condition: state
entity_id: input_boolean.vacation
state: "on"
action:
- service: light.turn_on
data:
brightness_pct: 74
color_temp: 379
target:
entity_id:
- light.venedik_tablo
- light.lambader
- light.salon_abajur_2
- light.extended_color_light_1_3
mode: single
This is a simple one. When vacation button turned on it turns on some specific lights at specific time(23:00pm) everyday. This creates an image as if someone is staying in the house.
So you may ask how do you turn off the lights ? I have another automation for the house which closes all lights at sunrise. So lights will be on until the morning.
- Second automation is simply turns off some other running automations which I won't need while away from the house. These are such as Telegram notifications, weather updates, match schedules, commute travel times and many other. So the second automation turns off these automations while I am away and ofcourse the vacation button is on. When the button turned of all the closed autoamtion will be back running again.
11 ) Alexa Media Players volume down - input_button.alexa_media_player_volume_5
This button simply puts changes my media players volume to 5. It applies to all media players at the same time.
- input_button.alexa_media_player_volume_5
So this button simply activates a script when turned on.
and the script is :
alias: Alexa Media Player - Sound Level 5
sequence:
- service: media_player.volume_set
target:
entity_id: media_player.everywhere
data:
volume_level: 0.4
mode: single
icon: mdi:surround-sound
12 ) Alexa Media Players volume down - input_button.zone_leave_home
This automation works just as well as the previous one. The only difference is that it makes the sound power 2 instead of 5.
13 ) A button completely closing the whole house. input_button.zone_leave_home
There are two automations that I use to completely shut down my house. There are very minor differences between them. My first automation turns on the alarm at night, leaving some lights on until sunrise, and turns off all other appliances and lights in the house. But my other shutdown automation turns off everything smart in the house. I use first one before I go to sleep at night and the second is for upon leaving the house. When this button is pressed a script is being called. And here is my house closing script
alias: Leave Home Close Everything
sequence:
- service: scene.turn_on
target:
entity_id: scene.all_lights_off
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.switches_off
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.anfi_kapat
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.tv_kapat
metadata: {}
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.trv_close_open
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: alarm_control_panel.alarm_arm_away
data:
code: "1234"
target:
entity_id: alarm_control_panel.ha_alarm
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.media_stop
data: {}
target:
entity_id: media_player.spotify_berkan_sezer
mode: single