Turn Display On/Off with Motion Automation

I am trying to turn on/off an OLED display with my existing motion automation. I have setup a switch that works to toggle the display but I cannot figure out how to add the switch to the existing automation. My plan was to simply turn the switch into a binary light but I cannot get that to work. My other option is to somehow toggle the switch in the motion automation.

Here is my ESP yaml snippet:

switch:
  - platform: template
    name: "Temp Display"
    optimistic: true
    turn_on_action:
      - lambda: id(my_display).turn_on();
    turn_off_action:
      - lambda: id(my_display).turn_off();
    

and the simple motion automation:

alias: Bonus Room Motion Activated Lights
description: ""
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    light_target:
      area_id: bonus_room
    motion_entity: binary_sensor.bonus_all_motion_sensors
    no_motion_wait: 6000

That’s not an automation it is a blueprint. A blueprint for changing lights, not switches. Try this instead:

trigger:
  - platform: state
    entity_id: binary_sensor.bonus_all_motion_sensors
    to: 'on'
  - platform: state
    entity_id: binary_sensor.bonus_all_motion_sensors
    to: 'off'
    for:
      minutes: 100
action:
  - service: "homeassitant.turn_{{ trigger.to_state.state }}"
    target:
      area_id: bonus_room
mode: single

The homeassistant.turn_on/off service can change both switches and lights.

I had no idea you could concatenate strings in HA. This is awesome. thank you!