Forked from derekoharrow/toggle_device_after_time.yaml
Created
June 28, 2025 18:27
-
-
Save toabi/4cc684d3bbb2d65297e921f1ee9cd49b to your computer and use it in GitHub Desktop.
Home Assistant Blueprint to toggle a device after a period of time since state was set
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: Toggle device status after a period of time | |
description: "Once a device has been in a defined status for a period of time, toggle it's status" | |
domain: automation | |
input: | |
trigger_device: | |
name: Device | |
description: Which device to monitor and toggle? | |
selector: | |
entity: | |
trigger_state: | |
name: State | |
description: What state begins time period? | |
trigger_time: | |
name: Duration | |
description: What period to wait before toggling state? | |
selector: | |
time: | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
platform: state | |
entity_id: !input trigger_device | |
to: !input trigger_state | |
for: !input trigger_time | |
action: | |
service: homeassistant.toggle | |
data: | |
entity_id: "{{ trigger.entity_id }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment