change to lights and multimedia home-assistant

This commit is contained in:
2024-02-18 22:39:03 +01:00
parent e6baa25011
commit 57a215fec4
2 changed files with 54 additions and 12 deletions

View File

@@ -129,27 +129,27 @@
];
}
{
conditions = [ "{{ state_attr('sun.sun', 'elevation') < 5 and trigger.entity_id == 'light.kitchen_lights' }}" ];
conditions = [ "{{ state_attr('sun.sun', 'elevation') < 5 and trigger.entity_id == 'light.bedroom_lights' }}" ];
sequence = [
{
service = "light.turn_on";
target = {
entity_id = "light.kitchen_lights";
entity_id = "light.bedroom_lights";
};
data = {
brightness_pct = 30;
brightness_pct = 5;
color_temp = 450;
};
}
];
}
{
conditions = [ "{{ state_attr('sun.sun', 'elevation') < 5 and state_attr(trigger.entity_id, 'is_deconz_group') != None }}" ];
conditions = [ "{{ state_attr('sun.sun', 'elevation') < 5 and trigger.entity_id == 'light.kitchen_lights' }}" ];
sequence = [
{
service = "light.turn_on";
target = {
entity_id = "{{ trigger.entity_id }}";
entity_id = "light.kitchen_lights";
};
data = {
brightness_pct = 30;