Templating an input_boolean (from off/on to not home/home)

Make a template binary sensor using device class presence. On = home, off = not_home. Use a value template that grabs the state of the input boolean.

input_boolean:
  home_not_home_toggle:
    name: Am I home
    initial: off
binary_sensor:
  - platform: template
    sensors:
      am_i_home:
        friendly_name: Manual Home Binary Sensor
        value_template: "{{ states('input_boolean.home_not_home_toggle') }}"
        device_class: presence

You’ll end up with binary_sensor.am_i_home. Then you can use that for automations. checking the states as home/not_home.