{% capture domain %}{{ page.ha_supporting_domain | default: page.ha_domain }}{% endcapture %} {% assign active_installations = site.data.analytics_data.integrations[domain] | default: 0 %} {% assign percentage = 100.0 | times: active_installations | divided_by: site.data.analytics_data.reports_integrations | round: 1 %}
{%- if page.ha_config_flow and domain -%} {% my config_flow_start badge domain=domain %} {%- elsif page.ha_iot_standard == "zigbee" -%} {%- if page.ha_brand -%} {% my add_zigbee_device badge brand=domain %} {%- elsif domain -%} {% my add_zigbee_device badge domain=domain %} {%- else -%} {% my add_zigbee_device badge %} {%- endif -%} {%- elsif page.ha_iot_standard == "zwave" -%} {%- if page.ha_brand -%} {% my add_zwave_device badge brand=domain %} {%- elsif domain -%} {% my add_zwave_device badge domain=domain %} {%- else -%} {% my add_zwave_device badge %} {%- endif -%} {%- endif -%}
{%- if page.ha_brand -%} The {{ page.title | default: page.name }} brand was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}. {%- else -%} The {{ page.title | default: page.name }} {% if page.ha_integration_type == "virtual" %} virtual integration {% else %} {{ page.ha_integration_type | default: "integration" }} {% endif %} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }} {%- if page.ha_iot_standard or page.ha_integration_type == "entity" -%} . {%- else -%} , and it's used by {% if percentage < 1 %} {{ active_installations }} active installations. {% else %} {{ percentage | remove: ".0" }}% of the active installations. {% endif %} {% endif %} {% endif %}
{%- if page.ha_iot_class %}
{% if page.ha_iot_class == "Assumed State" %}{%- endif -%} {% if page.ha_iot_class == "Cloud Polling" %}{%- endif -%} {% if page.ha_iot_class == "Cloud Push" %}{%- endif -%} {% if page.ha_iot_class == "Local Polling" %}{%- endif -%} {% if page.ha_iot_class == "Local Push" %}{%- endif -%}  Its IoT class is {{ page.ha_iot_class }}.
{%- endif -%} {%- if page.ha_quality_scale %}
{% if page.ha_quality_scale == "bronze" %}🥉 Bronze quality
{%- endif -%} {% if page.ha_quality_scale == "silver" %}🥈 Silver quality
{%- endif -%} {% if page.ha_quality_scale == "gold" %}🥇 Gold quality
{%- endif -%} {% if page.ha_quality_scale == "platinum" %}🏆 Platinum quality
{%- endif -%} {% if page.ha_quality_scale == "internal" %}🏠 Internal integration
{%- endif -%} {% if page.ha_quality_scale == "legacy" %}💾 Legacy integration
{%- endif -%} {% if page.ha_quality_scale == "custom" %}📦 Custom integration
{%- endif -%}
{%- endif -%} {% if page.works_with %} {%- for type in page.works_with -%}
Works via {{ type }} with Home assistant
{%- endfor -%} {%- endif -%} {% if page.ha_domain %}
{% icon "simple-icons:github" %} View source on GitHub
{% icon "mdi:bug" %} View known issues
{%- endif -%}

{% icon "mdi:person-heart" %} Integration owners

{% if page.ha_codeowners %} {% assign ha_project = false %} {% for codeowner in page.ha_codeowners %} {% if codeowner contains "@home-assistant/" %} {% assign ha_project = true %} {% endif %} {% endfor %} {% if ha_project %}
This integration is being maintained by the Home Assistant project.
{% else %}
We are incredibly grateful to the following contributors who currently maintain this integration:
{%- for codeowner in page.ha_codeowners -%} {%- assign clean_codeowner = codeowner | replace: "@", "" -%} {{ codeowner }} {{ codeowner }}
{%- endfor -%}
{% endif %} {% else %}
This integration is community maintained.
If you are a developer and would like to help, feel free to contribute!
{% endif %}