binary_sensor:
- platform: template
sensors:
sensor_name:
device_class: motion
value_template: "{{ is_state('sensor.bathroom', '8') }}"
Thanks! This is pretty much exactly what I was going to do. No, that’s a lie. I need to study templates more. I was going to write a script to accomplish essentially the same thing, but your way is better.