Renamed to websocket_api (#8984)

This commit is contained in:
Penny Wood 2019-03-23 03:56:30 +08:00 committed by Fabian Affolter
parent 512d0e63fd
commit d6268c40fe
2 changed files with 35 additions and 29 deletions

View File

@ -1,29 +0,0 @@
---
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
```

View File

@ -0,0 +1,35 @@
---
layout: page
title: "Websocket Connections Sensor"
description: "Instructions on how to count connected clients within Home Assistant."
date: 2019-03-20 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/
- /components/sensor.api_streams/
---
The `websocket_api` 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: websocket_api
```
### {% linkable_title Note %}
This replaces the previous `api_streams` sensor.