# https://github.com/EBOOZ/TeamsStatus

sensor:
  - platform: template
    sensors:
      teams_status_robert:
        friendly_name: "Microsoft Teams status Robert"
        value_template: >-
          {% if states('sensor.teams_status_robert') == '' -%}
            Offline
          {%- endif %}
        icon_template: >-
          {% if states('sensor.teams_status_robert') == '' -%}
            mdi:microsoft-teams
          {%- endif %}
        unique_id: sensor.teams_status_robert
      teams_activity_robert:
        friendly_name: "Microsoft Teams activity Robert"
        value_template: >-
          {% if states('sensor.teams_activity_robert') == '' -%}
            Offline
          {%- endif %}
        icon_template: >-
          {% if states('sensor.teams_activity_robert') == '' -%}
            mdi:microsoft-teams
          {%- endif %}
        unique_id: sensor.teams_activity_robert

binary_sensor:
  - platform: template
    sensors:
      teams_status_robert:
        friendly_name: "Microsoft Teams status Robert"
        value_template: >-
          {{ is_state('sensor.teams_status_robert', 'Beschikbaar') 
            or is_state('sensor.teams_status_robert', 'Bezet')
            or is_state('sensor.teams_status_robert', 'Afwezig')
            or is_state('sensor.teams_status_robert', 'Zo terug')
            or is_state('sensor.teams_status_robert', 'Niet storen')
            or is_state('sensor.teams_status_robert', 'Offline') }}
        icon_template: >-
          {% if is_state('sensor.teams_status_robert', 'Beschikbaar') %}
            mdi:account-check
          {% elif is_state('sensor.teams_status_robert', 'Bezet') %}
            mdi:account-off
          {% elif is_state('sensor.teams_status_robert', 'Afwezig') %}
            mdi:account-arrow-right
          {% elif is_state('sensor.teams_status_robert', 'Zo terug') %}
            mdi:account-clock
          {% elif is_state('sensor.teams_status_robert', 'Niet storen') %}
            mdi:account-cancel
          {% elif is_state('sensor.teams_status_robert', 'Offline') %}
            mdi:account-remove
          {% else %}
            mdi:account-question
          {% endif %}

Add sensors for Microsoft Teams Presence
Add sensors for Microsoft Teams Presence
