2023-06-13 23:07:02 +02:00
|
|
|
{
|
|
|
|
alias = "Bathroom Light Dim";
|
|
|
|
description = "";
|
|
|
|
id = "c28cad3b-8435-48b4-9ced-bd5befaf11df";
|
|
|
|
|
|
|
|
trigger = [
|
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
entity_id = ["sensor.0x540f57fffe3c601d_action"];
|
2023-06-13 23:07:02 +02:00
|
|
|
id = "brightness_down";
|
|
|
|
platform = "state";
|
|
|
|
to = "brightness_move_down";
|
|
|
|
}
|
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
entity_id = ["sensor.0x540f57fffe3c601d_action"];
|
2023-06-13 23:07:02 +02:00
|
|
|
platform = "state";
|
|
|
|
to = "brightness_stop";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
condition = [];
|
2023-06-13 23:07:02 +02:00
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
action = [
|
|
|
|
{
|
|
|
|
"else" = [{stop = "";}];
|
|
|
|
"if" = [
|
|
|
|
{
|
|
|
|
condition = "trigger";
|
|
|
|
id = "brightness_down";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
"then" = [
|
|
|
|
{
|
|
|
|
repeat = {
|
|
|
|
sequence = [
|
|
|
|
{
|
|
|
|
data = {brightness_step_pct = -10;};
|
|
|
|
service = "light.turn_on";
|
|
|
|
target = {entity_id = "light.bathroom_lights";};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
delay = {
|
|
|
|
hours = 0;
|
|
|
|
milliseconds = 200;
|
|
|
|
minutes = 0;
|
|
|
|
seconds = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
while = [
|
|
|
|
{
|
|
|
|
condition = "not";
|
|
|
|
conditions = [];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-13 23:07:02 +02:00
|
|
|
|
|
|
|
mode = "restart";
|
|
|
|
}
|