2020-09-16 20:21:53 +00:00
|
|
|
#
|
|
|
|
|
2020-02-20 13:00:17 +00:00
|
|
|
let
|
|
|
|
glados = import ../lib;
|
2020-09-16 20:21:53 +00:00
|
|
|
tempsensor = "sensor.dark_sky_temperature";
|
|
|
|
all_covers = [
|
|
|
|
"cover.crafting_rollo"
|
|
|
|
"cover.elab_rollo"
|
|
|
|
"cover.or2_rollo"
|
|
|
|
"cover.retroraum_rollo"
|
|
|
|
];
|
2020-02-20 13:00:17 +00:00
|
|
|
in
|
|
|
|
{
|
2020-12-01 22:20:31 +00:00
|
|
|
services.home-assistant.config =
|
|
|
|
{
|
|
|
|
automation =
|
|
|
|
[
|
|
|
|
{ alias = "Rollos fahren Runter";
|
|
|
|
trigger = [
|
2020-09-16 20:21:53 +00:00
|
|
|
{
|
2020-12-01 22:20:31 +00:00
|
|
|
platform = "numeric_state";
|
|
|
|
entity_id = tempsensor;
|
|
|
|
above = 25;
|
|
|
|
for = "00:30:00";
|
2020-09-16 20:21:53 +00:00
|
|
|
}
|
|
|
|
];
|
2020-12-01 22:20:31 +00:00
|
|
|
condition =
|
|
|
|
[
|
|
|
|
{
|
|
|
|
condition = "state";
|
|
|
|
entity_id = "sun.sun";
|
|
|
|
state = "above_horizon";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
action =
|
|
|
|
[
|
|
|
|
{ service = "cover.close_cover";
|
|
|
|
entity_id = all_covers;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{ alias = "Rollos fahren Hoch";
|
|
|
|
trigger = [
|
|
|
|
{
|
|
|
|
platform = "sun";
|
|
|
|
event = "sunset";
|
2020-09-16 20:21:53 +00:00
|
|
|
}
|
|
|
|
];
|
2020-12-01 22:20:31 +00:00
|
|
|
condition = [ ];
|
|
|
|
action =
|
|
|
|
[
|
|
|
|
{ service = "cover.open_cover";
|
|
|
|
entity_id = all_covers;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2020-02-20 13:00:17 +00:00
|
|
|
}
|