I’m trying to create an automation that should turn on a set of lights when I get home but distinguish the colors of the lights between day and night.
this is a first automation but it seems that the lights do not light up. Could you check and maybe give me some help? Thank you.
- id: '234344489' alias: Arrivo durante la notte trigger: - entity_id: device_tracker.iphone_matteo from: not_home platform: state to: home condition: - after: sunset before: sunrise condition: sun action: - data: brightness: 120 entity_id: light.gateway_light_34ce0088adac rgb_color: - 0 - 0 - 255 service: light.turn_on - data: brightness: 120 entity_id: light.gateway_light_34ce008bf158 rgb_color: - 0 - 0 - 255 service: light.turn_on - data: brightness: 120 entity_id: light.gateway_light_7811dcb2142e rgb_color: - 0 - 0 - 255 service: light.turn_on - data: brightness: 120 entity_id: light.gateway_light_f0b4299a4613 rgb_color: - 0 - 0 - 255 service: light.turn_on - delay: 0:10 - data: entity_id: light.gateway_light_34ce0088adac service: light.turn_off - data: entity_id: light.gateway_light_34ce008bf158 service: light.turn_off - data: entity_id: light.gateway_light_7811dcb2142e service: light.turn_off - data: entity_id: light.gateway_light_f0b4299a4613 service: light.turn_off - id: '234327789' alias: Arrivo durante il giorno trigger: platform: state entity_id: device_tracker.iphone_matteo from: not_home to: home condition: condition: sun after: sunrise before: sunset action: - service: light.turn_on data: entity_id: light.gateway_light_34ce0088adac brightness: 255 rgb_color: - 255 - 255 - 182 - service: light.turn_on data: entity_id: light.gateway_light_34ce008bf158 brightness: 255 rgb_color: - 255 - 255 - 182 - service: light.turn_on data: entity_id: light.gateway_light_7811dcb2142e brightness: 255 rgb_color: - 255 - 255 - 182 - service: light.turn_on data: entity_id: light.gateway_light_f0b4299a4613 brightness: 255 rgb_color: - 255 - 255 - 182 - service: light.turn_on data: entity_id: light.gateway_light_286c07891747 brightness: 255 rgb_color: - 255 - 255 - 182 - delay: 0:10 - service: light.turn_off data: entity_id: light.gateway_light_34ce0088adac - service: light.turn_off data: entity_id: light.gateway_light_34ce008bf158 - service: light.turn_off data: entity_id: light.gateway_light_7811dcb2142e - service: light.turn_off data: entity_id: light.gateway_light_f0b4299a4613 - service: light.turn_off data: entity_id: light.gateway_light_286c07891747