mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-02 01:07:36 +00:00
30 lines
702 B
Markdown
30 lines
702 B
Markdown
---
|
|
layout: page
|
|
title: "API Streams Sensor"
|
|
description: "Instructions on how to count clients using the API streams within Home Assistant."
|
|
date: 2016-11-19 10:00
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
logo: home-assistant.png
|
|
ha_category: Utility
|
|
ha_release: 0.33
|
|
ha_iot_class: "Local Push"
|
|
ha_qa_scale: internal
|
|
redirect_from: /components/sensor.api_stream/
|
|
---
|
|
|
|
The `api_streams` sensor platform shows how many clients are connected to the stream API.
|
|
|
|
## {% linkable_title Configuration %}
|
|
|
|
To add the connected clients to your installation, add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
sensor:
|
|
- platform: api_streams
|
|
```
|
|
|