From 25e968d1eadb4cafaa0de29cfd7805e47ac741ff Mon Sep 17 00:00:00 2001 From: Ton Huisman Date: Tue, 14 Oct 2025 22:18:18 +0200 Subject: [PATCH] [MQTT AutoDiscovery] Update documentation for Device Class --- docs/source/Plugin/DeviceClass_binary.repl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/Plugin/DeviceClass_binary.repl b/docs/source/Plugin/DeviceClass_binary.repl index 7e45b955b..658f5aaef 100644 --- a/docs/source/Plugin/DeviceClass_binary.repl +++ b/docs/source/Plugin/DeviceClass_binary.repl @@ -3,10 +3,10 @@ MQTT Device class (Only available if both MQTT Auto Discovery and Device Class features are included in the build.) -* **MQTT Device class**: Select the Binary Device class that's to be used for this task device. Device classes marked with ``²`` are 'two-way' devices, meaning that the state will be updated when changed, either on the ESPEasy side, or on the MQTT (Home Assistant) side. +* **MQTT Device class**: Select the Binary Device class that's to be used for this task device. Device classes marked with ``²`` are 'two-way' devices, meaning that the state will be updated when changed, either on the ESPEasy side, or on the MQTT (Home Assistant) side. For the MQTT Device classes ``switch`` and ``outlet``, both also marked with ``÷``, the discovery is marked as ``switch`` instead of ``light``. -The default value used is ``power``, also when not set (empty), and can be updated in Home Assistant by resending the MQTT Discovery. +The default value used is ``switch``, also when not set (empty), and can be updated in Home Assistant by resending the MQTT Discovery. -The available options are based on the Summer 2025 version of this `Home Assistant MQTT Binary sensor documentation page `_ +The available options are based on the Summer 2025 version of this `Home Assistant MQTT Binary sensor documentation page `_ and also related to this `Home Assistant MQTT Switch device page `_ (though that doesn't document *any* Auto Discovery information) -The On/Off icon shown in Home Assistant (HA) can be changed for an alternative in the HA configuration, after Auto Discovery has created the device there. +The ``switch`` device class shows an On/Off icon, the default icon shown for other ``light`` or ``binary_sensor`` devices in Home Assistant (HA) can be changed for an alternative in the HA configuration, if desired, after Auto Discovery has created the device there.