alias: test description: "" trigger: - platform: state entity_id: - sensor.wrover_master_switch_1 to: single id: kontakt - type: no_motion platform: device device_id: 39c9c14c16a1fb49aae5e04867932e1d entity_id: binary_sensor.xiaomi_motion_sensor_occupancy domain: binary_sensor id: sensor condition: [] action: - choose: - conditions: - condition: trigger id: kontakt sequence: - service: light.turn_on data: {} target: entity_id: light.hue_white_4 - conditions: - condition: trigger id: sensor sequence: - service: light.turn_off data: {} target: entity_id: light.hue_white_4 mode: single