ma ham/moodlight: turn on cubes in blink mode
This commit is contained in:
parent
9478b71252
commit
dc7dca887a
@ -5,14 +5,19 @@ let
|
|||||||
arbeitszimmer = "light.box_led_status";
|
arbeitszimmer = "light.box_led_status";
|
||||||
final_off = "01:00";
|
final_off = "01:00";
|
||||||
|
|
||||||
turn_on = entity_id: at:
|
turn_on = entity_id: at: extra:
|
||||||
{ alias = "Turn on ${entity_id} at ${at}";
|
{ alias = "Turn on ${entity_id} at ${at}";
|
||||||
trigger = [
|
trigger = [
|
||||||
{ platform = "time"; inherit at; }
|
{ platform = "time"; inherit at; }
|
||||||
];
|
];
|
||||||
action =
|
action =
|
||||||
[
|
[
|
||||||
{ service = "light.turn_on"; inherit entity_id; }
|
({ service = "light.turn_on";
|
||||||
|
data = {
|
||||||
|
inherit entity_id;
|
||||||
|
|
||||||
|
} // extra;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
@ -21,8 +26,8 @@ in
|
|||||||
{
|
{
|
||||||
automation =
|
automation =
|
||||||
[
|
[
|
||||||
(turn_on wohnzimmer "17:30")
|
# (turn_on wohnzimmer "17:30")
|
||||||
(turn_on arbeitszimmer "9:00")
|
(turn_on arbeitszimmer "9:00" { effect = "Slow Random Twinkle";})
|
||||||
|
|
||||||
{ alias = "Always turn off the lights at ${final_off}";
|
{ alias = "Always turn off the lights at ${final_off}";
|
||||||
trigger = [
|
trigger = [
|
||||||
|
Loading…
Reference in New Issue
Block a user