- id: '1608396906804' alias: rgb-treppe rauf ein description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_unten from: 'off' to: 'on' condition: - condition: state entity_id: input_boolean.rgb_treppe_runter state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_rauf state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_cooldown state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_aktiv state: 'on' action: - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_rauf mode: single - id: '1608397115385' alias: rgb-treppe rauf aus description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_oben from: 'off' to: 'on' condition: - condition: state entity_id: input_boolean.rgb_treppe_runter state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_rauf state: 'on' action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_rauf - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_cooldown mode: single - id: '1608397208847' alias: rgb-treppe runter aus description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_unten from: 'off' to: 'on' condition: - condition: state entity_id: input_boolean.rgb_treppe_runter state: 'on' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_rauf state: 'off' action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_runter - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_cooldown mode: single - id: '1608397266014' alias: rgb-treppe runter ein description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_oben from: 'off' to: 'on' condition: - condition: state entity_id: input_boolean.rgb_treppe_runter state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_rauf state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_cooldown state: 'off' - condition: and conditions: - condition: state entity_id: input_boolean.rgb_treppe_aktiv state: 'on' action: - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_runter mode: single - id: '1608397446747' alias: rgb-treppe rauf automatisch aus description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_rauf from: 'off' to: 'on' for: '60' condition: [] action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_rauf - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_cooldown mode: single - id: '1608397474250' alias: rgb-treppe runter automatisch aus description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_runter from: 'off' to: 'on' for: '60' condition: [] action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_runter - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_cooldown mode: single - id: '1608397599773' alias: rgb-treppe rauf LED einschalten description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_rauf from: 'off' to: 'on' condition: [] action: - service: light.turn_on data: rgb_color: - 255 - 50 - 0 entity_id: light.rgb_led_treppe_oben mode: single - id: '1608397654093' alias: rgb-treppe rauf LED ausschalten description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_rauf from: 'on' to: 'off' for: 00:00:15 condition: [] action: - service: light.turn_off entity_id: light.rgb_led_treppe_oben data: {} mode: single - id: '1608397685743' alias: rgb-treppe runter LED ausschalten description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_runter from: 'on' to: 'off' for: 00:00:15 condition: [] action: - service: light.turn_off entity_id: light.rgb_led_treppe_oben data: {} mode: single - id: '1608397731712' alias: rgb-treppe runter LED einschalten description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_runter from: 'off' to: 'on' condition: [] action: - service: light.turn_on data: rgb_color: - 0 - 255 - 100 entity_id: light.rgb_led_treppe_oben mode: single - id: '1608398286163' alias: rgb-treppe statusled pir oben description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_oben condition: [] action: - service_template: '{% if trigger.to_state.state == "on" %} switch.turn_on {% elif trigger.to_state.state == "off" %} switch.turn_off {% endif %} ' data_template: entity_id: switch.rgb_treppe_pir_oben_status_led mode: single - id: '1608398332158' alias: rgb-treppe statusled pir unten description: '' trigger: - platform: state entity_id: binary_sensor.rgb_treppe_bewegungsmelder_unten condition: [] action: - service_template: '{% if trigger.to_state.state == "on" %} switch.turn_on {% elif trigger.to_state.state == "off" %} switch.turn_off {% endif %} ' data_template: entity_id: switch.rgb_treppe_pir_unten_status_led mode: single - id: '1608416573352' alias: rgb-treppe cooldown - auto off description: '' trigger: - platform: state entity_id: input_boolean.rgb_treppe_cooldown from: 'off' to: 'on' for: '20' condition: [] action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_cooldown mode: single - id: '1608417756432' alias: rgb-treppe aktiv durch helligkeitssensor description: '' trigger: - platform: numeric_state entity_id: sensor.rgb_treppe_helligkeitssensor below: '0.6' for: '30' condition: [] action: - service: input_boolean.turn_on data: {} entity_id: input_boolean.rgb_treppe_aktiv mode: single - id: '1608417780739' alias: rgb-treppe inaktiv durch helligkeitssensor description: '' trigger: - platform: numeric_state entity_id: sensor.rgb_treppe_helligkeitssensor for: '30' above: '0.7' condition: [] action: - service: input_boolean.turn_off data: {} entity_id: input_boolean.rgb_treppe_aktiv mode: single