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
| script: | |
| color_loop_light: | |
| alias: Color loop light | |
| description: "" | |
| fields: | |
| colors: | |
| name: Colors | |
| description: A list of color names to set the lights to or loop through | |
| required: true | |
| sequence: |
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
| # This was just a weird idea to randomize a list of values. | |
| # Maybe it could be used for chores or activity planning? | |
| alias: Random Option to calendar | |
| sequence: | |
| - variables: | |
| option: |- | |
| {% set options = state_attr('input_select.colors_warm', 'options')%} | |
| {% set ns = namespace(x = options) %} | |
| {% for i in range(ns.x|length- 1, 0, -1) %} |
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
| alias: Nested logical conditions | |
| sequence: | |
| - choose: | |
| - alias: This works | |
| conditions: | |
| - condition: not | |
| conditions: | |
| - condition: template | |
| value_template: false | |
| sequence: |
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
| alias: Calendar Events to Shopping List items | |
| sequence: | |
| - service: calendar.get_events | |
| data: | |
| duration: | |
| hours: 24 | |
| minutes: 0 | |
| seconds: 0 | |
| target: | |
| entity_id: calendar.home_assistant_events |
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
| alias: Calendar to ToDo | |
| sequence: | |
| - service: calendar.get_events | |
| metadata: {} | |
| data: | |
| start_date_time: "{{ today_at() + timedelta(days=1) }}" | |
| duration: | |
| hours: 36 | |
| target: | |
| entity_id: calendar.trash_night |
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
| alias: Google Calendar Notification Relay | |
| description: "" | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - sensor.b130dl_last_notification | |
| condition: | |
| - condition: state | |
| entity_id: sensor.b130dl_last_notification | |
| attribute: package |
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
| alias: zTest Context Templates | |
| description: "" | |
| trigger: | |
| - platform: state | |
| entity_id: | |
| - switch.kitchen_lightswitch | |
| to: "on" | |
| variables: | |
| id: "{{trigger.to_state.context.id}}" | |
| parent: "{{ trigger.to_state.context.parent_id }}" |
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
| #----------------------- PRE-REQUISITES ------------------------- | |
| # You will need to install the following custom cards to use the include card configuration: | |
| # - Text-input-row Card (https://github.com/gadgetchnnel/lovelace-text-input-row) | |
| # - Custom Button Card (https://github.com/custom-cards/button-card) | |
| # - Custom Stack-In-Card (https://github.com/custom-cards/stack-in-card) | |
| # | |
| # You will need to create the following helpers: | |
| # - input_datetime.scheduled_action | |
| # - input_text.scheduled_action_message | |
| # |