From 827c806e19624138afee3c4b85251b10dedd1ed5 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Tue, 28 May 2024 11:22:56 +0200 Subject: [PATCH] Homeassistant integration: update device type section (#32976) * Homeassistant integration: update device type section - Add intro section - Update list of platforms supporting device types - point links to device type section * Streamline device type title --- source/_integrations/homeassistant.markdown | 23 ++++++++++++++------- source/_integrations/update.markdown | 2 +- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/source/_integrations/homeassistant.markdown b/source/_integrations/homeassistant.markdown index fa9882db38a..c15bb6d6c33 100644 --- a/source/_integrations/homeassistant.markdown +++ b/source/_integrations/homeassistant.markdown @@ -191,16 +191,23 @@ initial_state: ### Device class +A device class represents a group of device types. The way a specific device class is shown in the user interface depends on the platform that is using it. For example, binary sensor and cover both support the device class "window". While for the binary sensor the window can only be open or closed, for cover, a window can also be tilted. For a given platform, the device class controls how the device is shown in the user interface. For example: humidifier has two device classes, humidifier and dehumidifier. If the device class is set to `humidifier`, the UI shows **Humidifying**. If it is set to `dehumidifier`, it shows **Drying**. + Device class is currently supported by the following platforms: -- [Binary sensor](/integrations/binary_sensor/) -- [Button](/integrations/button/) -- [Cover](/integrations/cover/) -- [Humidifier](/integrations/humidifier/) -- [Media player](/integrations/media_player/) -- [Number](/integrations/number/) -- [Sensor](/integrations/sensor/) -- [Switch](/integrations/switch/) +- [Binary sensor](/integrations/binary_sensor/#device-class) +- [Button](/integrations/button/#device-class) +- [Cover](/integrations/cover/#device-class) +- [Event](/integrations/event/#device-class) +- [Humidifier](/integrations/humidifier/#device-class) +- [Media player](/integrations/media_player/#device-class) +- [Number](/integrations/number/#device-class) +- [Sensor](/integrations/sensor#device-class) +- [Switch](/integrations/switch/#device-class) +- [Update](/integrations/update/#device-class) +- [Valve](/integrations/valve/#device-class) + +For a list of the supported device classes, refer to the documentation of the platform. ### Manual customization diff --git a/source/_integrations/update.markdown b/source/_integrations/update.markdown index 3a9796d3b5c..cf96c671795 100644 --- a/source/_integrations/update.markdown +++ b/source/_integrations/update.markdown @@ -49,7 +49,7 @@ information on the update state: - `release_summary`: A summary of the release notes for the update available. - `release_url`: A link to the full release announcement for the update available. -## Device classes +## Device class The way these update entities are displayed in the frontend depend on their device classes. The following device classes are supported for switches: