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