-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_limiter.yaml
46 lines (45 loc) · 1.11 KB
/
device_limiter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
blueprint:
name: Limit device time
description: Turns a device off after some time elapsed
author: Dany Khalife
domain: automation
input:
device:
description: The device to monitor when turned on, and turn off later.
selector:
entity:
domain: switch
time:
description: The duration to wait for before turning the device off.
selector:
duration:
default:
hours: 1
minutes: 0
seconds: 0
notify:
description: The notification service to use for notifications.
selector:
device:
integration: mobile_app
message:
description: The message to include in the notification
selector:
text:
default: Device has been turned off
mode: restart
trigger:
- platform: state
from: "off"
to: "on"
entity_id: !input device
for: !input time
condition: []
action:
- service: switch.turn_off
target:
entity_id: !input device
- device_id: !input notify
domain: mobile_app
type: notify
message: !input message