home-assistant.io/source/_components/sensor.websocket_api.markdown
Franck Nijhof 1833c32a2c Cleans up front matter (#9835)
* Sets front matter defaults

* Removes default front matter from section templates/pages

* Removes default front matter from addon pages

* Removes default front matter from integration pages

* Removes default front matter from posts

* Removes default front matter from docs pages

* Removes default front matter from other pages

* Fixes blog category pages
2019-07-11 14:35:08 -07:00

693 B

title description logo ha_category ha_release ha_iot_class ha_qa_scale redirect_from
Websocket Connections Sensor Instructions on how to count connected clients within Home Assistant. home-assistant.png
Utility
0.33 Local Push internal
/components/sensor.api_stream/
/components/sensor.api_streams/

The websocket_api sensor platform shows how many clients are connected to the stream API.

Configuration

To add the connected clients to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: websocket_api

Note

This replaces the previous api_streams sensor.