Last active
December 18, 2024 23:33
-
-
Save SirGoodenough/c4ab0e0a759f9a17e12031e8c8c7d4d9 to your computer and use it in GitHub Desktop.
Blueprint Training / Episode E135 Based on YouTube vidro: https://www.youtube.com/live/WZBoRkPCVgE?si=6SjkmepKjWJbqLAt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
automation calling the Blueprint we made on stream: | |
- id: '1734549001776' | |
alias: YT133 test bp | |
description: stuff and things | |
use_blueprint: | |
path: test/YT135_test.yaml | |
input: | |
t_light: light.cabinetlight | |
controlled: switch.vacuum_sealer_switch | |
t_time: 0 | |
Blueprint we made on stream: | |
blueprint: | |
name: YT135 Test Blueprint | |
domain: automation | |
input: | |
required_input: | |
name: Required input 👀 | |
icon: mdi:alert-box | |
collapsed: false | |
description: These inputs are required | |
input: | |
t_light: | |
name: Trigger Light | |
description: Enter the light to trigger on | |
selector: | |
entity: | |
filter: | |
- domain: light | |
multiple: false | |
controlled: | |
name: Controlled Switch | |
description: Enter the switch to control | |
selector: | |
entity: | |
filter: | |
- domain: switch | |
multiple: false | |
optional_input: | |
name: Change if you want to | |
icon: mdi:alert-box | |
collapsed: true | |
description: These inputs are optional | |
input: | |
t_time: | |
name: Dwell Time | |
description: How long in minutes to let the light settle | |
default: 2 | |
selector: | |
number: | |
min: 0 | |
max: 100 | |
triggers: | |
- trigger: state | |
entity_id: | |
- !input t_light | |
to: 'off' | |
for: | |
minutes: !input t_time | |
id: Wax on | |
- trigger: state | |
entity_id: | |
- !input t_light | |
to: 'on' | |
for: | |
minutes: !input t_time | |
id: wax off | |
actions: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- Wax on | |
sequence: | |
- action: switch.turn_on | |
data: {} | |
target: | |
entity_id: !input controlled | |
default: | |
- action: switch.turn_off | |
data: {} | |
target: | |
entity_id: !input controlled | |
mode: single | |
Original Automation we based that Blueprint on: | |
- id: '1733964041898' | |
alias: Party is over rodent | |
description: Turns on the sonic screwdriver when Mom's light is off | |
triggers: | |
- trigger: state | |
entity_id: | |
- light.mom_light | |
to: 'off' | |
for: | |
hours: 0 | |
minutes: 2 | |
seconds: 0 | |
id: Wax on | |
- trigger: state | |
entity_id: | |
- light.mom_light | |
to: 'on' | |
for: | |
hours: 0 | |
minutes: 2 | |
seconds: 0 | |
id: wax off | |
conditions: [] | |
actions: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- Wax on | |
sequence: | |
- action: switch.turn_on | |
data: {} | |
target: | |
entity_id: switch.sonic_screwdriver | |
default: | |
- action: switch.turn_off | |
data: {} | |
target: | |
entity_id: switch.sonic_screwdriver | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment