{config, ... }:
{
  # all configured persons become part of group "team"
  services.home-assistant.config.group.team = {
    name = "team";
    entities = map (x: "person.${x.name}" ) config.services.home-assistant.config.person;
  };
  services.home-assistant.config.person =
  [
    { name = "Thorsten";
      id = 1;
      device_trackers = [
        "device_tracker.thorsten_phone"
        #"device_tracker.thorsten_arbeitphone"
      ];
    }
    { name = "Felix";
      id = 2;
      device_trackers = [
        "device_tracker.felix_phone"
        "device_tracker.felix_laptop"
      ];
    }
    { name = "Ecki";
      id = 3;
      device_trackers = [
        "device_tracker.ecki_phone"
        "device_tracker.ecki_tablet"
      ];
    }
    { name = "Daniel";
      id = 4;
      device_trackers = [
        "device_tracker.daniel_phone"
      ];
    }
    { name = "Thierry";
      id = 5;
      device_trackers = [
        "device_tracker.thierry_phone"
      ];
    }
    { name = "Frank";
      id = 6;
      device_trackers = [
        "device_tracker.frank_phone"
      ];
    }
    #{ name = "Carsten";
    #  id = 7;
    #  device_trackers = [
    #    "device_tracker.carsten_phone"
    #  ];
    #}
    { name = "Emeka";
      id = 8;
      device_trackers = [
        "device_tracker.emeka_phone"
      ];
    }
    { name = "Sabine";
      id = 9;
      device_trackers = [
        "device_tracker.sabine_phone"
      ];
    }
    #{ name = "Tobias";
    #  id = 10;
    #  device_trackers = [
    #    "device_tracker.tobias_phone"
    #  ];
    #}
    #{ name = "Tancrede";
    #  id = 11;
    #  device_trackers = [
    #    "device_tracker.tancrede_phone"
    #    "device_tracker.tancrede_laptop"
    #  ];
    #}
    { name = "Chris";
      id = 12;
      device_trackers = [
        "device_tracker.chris_phone"
      ];
    }
  ];
}