Presence template giving inverted results

Hi, I’m trying to turn my group.persons presence sensor into a binary sensor (for use with Versatile Thermostat). For some reason, this is giving me the opposite result. When Group.presence is “Home”, it gives me “Away”. Any idea why?

  - platform: template
    sensors:
      presence_binary:
        friendly_name: "Home Presence"
        value_template: "{{ is_state('group.presence', 'home') }}"
        device_class: presence

I have inverted the sensor with the “Invert” helper from the Spook integration but wth. Thanks!

I believe your group actually returns on/off value.
Check it in developer tools → states

I did. It returns home/not_home

Interesting.
Mine doesn’t

It’s set up like this and works as expected. It’s the new binary sensor I’m trying to make that’s inverted.

group:
  persons:
    name: People & Devices
    entities:
      - person.jiri
      - person.adela