ma bureautiomation/shutdown: fix config
This commit is contained in:
parent
c11c3544ab
commit
314a593bd0
@ -34,18 +34,18 @@
|
|||||||
}
|
}
|
||||||
{ alias = "Turn off Fernseher after last in group left";
|
{ alias = "Turn off Fernseher after last in group left";
|
||||||
trigger = [
|
trigger = [
|
||||||
{ # trigger when movement was detected at the time
|
{ # trigger when movement was detected at the time
|
||||||
platform = "state";
|
platform = "state";
|
||||||
entity_id = "group.team";
|
entity_id = "group.team";
|
||||||
from = "home";
|
from = "home";
|
||||||
to = "not_home";
|
to = "not_home";
|
||||||
}
|
}
|
||||||
{ # trigger at 18:00 no matter what
|
{ # trigger at 18:00 no matter what
|
||||||
# to avoid 'everybody left before 18:00:00'
|
# to avoid 'everybody left before 18:00:00'
|
||||||
platform = "time";
|
platform = "time";
|
||||||
at = "18:00:00";
|
at = "18:00:00";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
action = [
|
action = [
|
||||||
{
|
{
|
||||||
service = "homeassistant.turn_off";
|
service = "homeassistant.turn_off";
|
||||||
@ -58,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
service = "notify.telegrambot";
|
service = "notify.telegrambot";
|
||||||
data = {
|
data_template = {
|
||||||
title = "Bureau Shutdown";
|
title = "Bureau Shutdown";
|
||||||
message = "All devices are turned off due to {{ trigger.platform }}";
|
message = "All devices are turned off due to {{ trigger.platform }}";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user