Created
December 6, 2024 18:01
-
-
Save niklaszerozero/4c533116b565b1583b9f8b9668536f83 to your computer and use it in GitHub Desktop.
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
blueprint: | |
name: Simple Schedule | |
author: Niklas Vlach | |
description: " | |
Simply operate entities on a schedule entity. | |
**Version**: 0.0.1 | |
" | |
source_url: https://gist.github.com/NiklasZeroZero/4c533116b565b1583b9f8b9668536f83 | |
domain: automation | |
input: | |
schedule_entity: | |
name: Schedule Entity | |
description: The schedule on which the entities should operate | |
default: "" | |
selector: | |
entity: | |
filter: | |
- domain: schedule | |
multiple: false | |
target_entities: | |
name: Devices | |
description: The entities that should be toggled based on the schedule | |
default: "" | |
selector: | |
entity: | |
filter: | |
- domain: automation | |
- domain: camera | |
- domain: climate | |
- domain: input_boolean | |
- domain: light | |
- domain: media_player | |
- domain: remote | |
- domain: scene | |
- domain: script | |
- domain: siren | |
- domain: switch | |
multiple: true | |
mode: single | |
max_exceeded: silent | |
triggers: | |
- entity_id: !input schedule_entity | |
trigger: state | |
to: "on" | |
id: turn_on | |
- entity_id: !input schedule_entity | |
trigger: state | |
to: "off" | |
id: turn_off | |
actions: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- turn_on | |
sequence: | |
- action: homeassistant.turn_on | |
metadata: {} | |
data: {} | |
target: | |
entity_id: !input target_entities | |
- conditions: | |
- condition: trigger | |
id: | |
- turn_off | |
sequence: | |
- action: homeassistant.turn_off | |
metadata: {} | |
data: {} | |
target: | |
entity_id: !input target_entities |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment