Device tracker group

Hi.
I’m trying to beef up my presence detection by creating a device tracker group. In it I have an MQTT binary sensor set as the presence class and an Owntracks device.
Individually these devices show as either home or away but the group shows either on or off. According to the documentation, if I understand it correctly, a group like this show be home or away.

Have I done something wrong or am I misunderstanding?

Code snippets:

binary_sensor.yaml

- platform: mqtt
  name: "Keys"
  state_topic: "ibeacon/a0b13730-3a9a-11e3-aa6e-0800200c9a66"
  qos: 0
  payload_on: "1"
  payload_off: "0"
  device_class: presence

group.yaml

tracker:
  name: Ross
  entities:
  - binary_sensor.keys
  - device_tracker.phone

A user generated group has states of on or off depending on the states of the entities within the group.
A template sensor can be created to interpret those values to something else

   sensor:
     - platform: template
       sensors:
         group_tracker:
           value_template: >-
             {% if states.group.tracker.state == 'off' %}
               away
             {% elif states.states.group.tracker.state == 'on' %}
               home
             {% else %}
               n/a
             {% endif %}
4 Likes