mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-30 18:11:45 +00:00
Compare commits
2 Commits
896541e551
...
4faae0cf2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4faae0cf2c | ||
|
|
bbcc77673d |
@@ -24,17 +24,6 @@
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.front_full_brightness
|
||||
|
||||
- choose:
|
||||
- conditions: >
|
||||
{{ states.group.entry_points.state == 'on' or
|
||||
states.group.garage_doors.state != 'closed' }}
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.Red_living_Room
|
||||
default:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.tv_time
|
||||
|
||||
- service: >
|
||||
{% set hour=states("sensor.time").split(':')[0] | int %}
|
||||
{% if hour >= 5 and hour <= 9 and states.group.bed.state == 'on'%}
|
||||
@@ -50,14 +39,3 @@
|
||||
- wait_template: "{{ is_state('group.entry_points', 'off') }}"
|
||||
- wait_template: "{{ is_state('group.garage_doors', 'closed') }}"
|
||||
- service: script.monthly_color_scene
|
||||
|
||||
- choose:
|
||||
- conditions: >
|
||||
{{ states.group.entry_points.state == 'on' or
|
||||
states.group.garage_doors.state != 'closed' }}
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.Red_living_Room
|
||||
default:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.tv_time
|
||||
|
||||
@@ -77,3 +77,35 @@
|
||||
data:
|
||||
kelvin: 2700
|
||||
brightness: 200
|
||||
|
||||
- alias: 'Living Room Red on Entry/Garage Open'
|
||||
id: living_room_red_on_entry_open
|
||||
mode: restart
|
||||
variables:
|
||||
was_off: "{{ is_state('light.living_room_lights', 'off') }}"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: group.entry_points
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: group.garage_doors
|
||||
from: 'closed'
|
||||
to: 'open'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
target:
|
||||
entity_id: scene.red_living_room
|
||||
- wait_for_trigger:
|
||||
- platform: state
|
||||
entity_id: group.entry_points
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: group.garage_doors
|
||||
to: 'closed'
|
||||
timeout: "01:00:00"
|
||||
- choose:
|
||||
- conditions: "{{ was_off }}"
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.living_room_lights
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
######################################################################
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# TV Time at sunset or 8pm. Whichever is later.
|
||||
# config/automation/tv_time_on_and_off.yaml
|
||||
# TV Time: soften house lights when living room media starts after 8pm/sunset.
|
||||
# https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
######################################################################
|
||||
|
||||
- alias: TV Time
|
||||
id: 6e59d312-661f-40da-bb08-416f2e86b566
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.TV_time
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
- platform: state
|
||||
entity_id: sun.sun
|
||||
to: 'below_horizon'
|
||||
from: 'above_horizon'
|
||||
- platform: state
|
||||
entity_id: media_player.living_room_ultra
|
||||
to: 'playing'
|
||||
- platform: time
|
||||
at: '20:00:00'
|
||||
|
||||
condition:
|
||||
condition: and
|
||||
conditions:
|
||||
@@ -40,8 +29,6 @@
|
||||
state: 'playing'
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.tv_time
|
||||
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
|
||||
@@ -6,10 +6,6 @@ meal_time:
|
||||
name: Meal Time
|
||||
initial: off
|
||||
|
||||
tv_time:
|
||||
name: TV Time
|
||||
initial: off
|
||||
|
||||
work:
|
||||
name: Work
|
||||
initial: off
|
||||
|
||||
@@ -352,10 +352,6 @@ automation:
|
||||
entity_id: group.family
|
||||
to: not_home
|
||||
for: 00:05:00
|
||||
- platform: state
|
||||
entity_id: input_boolean.tv_time
|
||||
to: 'on'
|
||||
from: 'off'
|
||||
|
||||
condition:
|
||||
condition: or
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
- name: TV Time
|
||||
entities:
|
||||
light.m1_front_left:
|
||||
state: off
|
||||
state: on
|
||||
rgb_color: &gold [255,223,0]
|
||||
brightness: 100
|
||||
light.m1_front_right:
|
||||
state: off
|
||||
state: on
|
||||
rgb_color: *gold
|
||||
brightness: 100
|
||||
light.main_slider:
|
||||
state: off
|
||||
light.m1_back_right:
|
||||
state: on
|
||||
rgb_color: &gold [255,223,0]
|
||||
rgb_color: *gold
|
||||
brightness: 50
|
||||
light.m1_back_left:
|
||||
state: on
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<svg width="68.5" height="20" viewBox="0 0 685 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2025.11.3">
|
||||
<title>2025.11.3</title>
|
||||
<linearGradient id="nxtrO" x2="0" y2="100%">
|
||||
<linearGradient id="ofSVs" x2="0" y2="100%">
|
||||
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
|
||||
<stop offset="1" stop-opacity=".1"/>
|
||||
</linearGradient>
|
||||
<mask id="iKMAl"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
||||
<g mask="url(#iKMAl)">
|
||||
<mask id="VJRcB"><rect width="685" height="200" rx="30" fill="#FFF"/></mask>
|
||||
<g mask="url(#VJRcB)">
|
||||
<rect width="685" height="200" fill="#08C" x="0"/>
|
||||
<rect width="685" height="200" fill="url(#nxtrO)"/>
|
||||
<rect width="685" height="200" fill="url(#ofSVs)"/>
|
||||
</g>
|
||||
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
|
||||
<text x="65" y="148" textLength="570" fill="#000" opacity="0.25">2025.11.3</text>
|
||||
|
||||
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 815 B |
Reference in New Issue
Block a user