diff --git a/README.rst b/README.rst index 8f8f2b6..b2de917 100644 --- a/README.rst +++ b/README.rst @@ -499,9 +499,39 @@ Configuration variables: - **haier_id** (**Required**, `ID `_): The id of Haier climate component - **self_cleaning** (*Optional*): A button that starts Haier climate self cleaning. - All options from `Text Sensor `_. + All options from `Button `_. - **steri_cleaning** (*Optional*): A button that starts Haier climate 56°C Steri-Clean. - All options from `Text Sensor `_. + All options from `Button `_. + +.. Generated from esphome-docs/switch/haier.rst + +Haier Climate Switches +====================== + +Additional switches to support additional features for Haier AC. + +.. code-block:: yaml + + # Example configuration entry + switch: + - platform: haier + beeper: + name: Haier beeper + health_mode: + name: Haier health mode + display: + name: Haier display + +Configuration variables: +------------------------ + +- **haier_id** (**Required**, `ID `_): The id of Haier climate component +- **beeper** (*Optional*): (supported only by hOn) A switch that enables or disables Haier climate sound feedback. + All options from `Switch `_. +- **health_mode** (*Optional*): A switch that enables or disables Haier climate health mode ( (`UV light sterilization `__). + All options from `Switch `_. +- **display** (*Optional*): A switch that enables or disables Haier climate led display. + All options from `Switch `_. .. Generated from esp32_backup.rst diff --git a/docs/esphome-docs/climate/haier.rst b/docs/esphome-docs/climate/haier.rst index 5f740d6..1945b5c 100644 --- a/docs/esphome-docs/climate/haier.rst +++ b/docs/esphome-docs/climate/haier.rst @@ -344,6 +344,7 @@ See Also - :doc:`Haier Climate Binary Sensors ` - :doc:`Haier Climate Text Sensors ` - :doc:`Haier Climate Buttons ` +- :doc:`Haier Climate Switches ` - :doc:`/components/climate/index` - :apiref:`haier/climate/haier.h` - :ghedit:`Edit` diff --git a/docs/esphome-docs/switch/haier.rst b/docs/esphome-docs/switch/haier.rst new file mode 100644 index 0000000..ad9e247 --- /dev/null +++ b/docs/esphome-docs/switch/haier.rst @@ -0,0 +1,37 @@ +Haier Climate Switches +====================== + +.. seo:: + :description: Instructions for setting up additional switches for Haier climate devices. + :image: haier.svg + +Additional switches to support additional features for Haier AC. + +.. code-block:: yaml + + # Example configuration entry + switch: + - platform: haier + beeper: + name: Haier beeper + health_mode: + name: Haier health mode + display: + name: Haier display + +Configuration variables: +------------------------ + +- **haier_id** (**Required**, :ref:`config-id`): The id of Haier climate component +- **beeper** (*Optional*): (supported only by hOn) A switch that enables or disables Haier climate sound feedback. + All options from :ref:`Switch `. +- **health_mode** (*Optional*): A switch that enables or disables Haier climate health mode (`UV light sterilization `__). + All options from :ref:`Switch `. +- **display** (*Optional*): A switch that enables or disables Haier climate led display. + All options from :ref:`Switch `. + +See Also +-------- + +- :doc:`Haier Climate ` +- :ghedit:`Edit` diff --git a/docs/script/make_doc.py b/docs/script/make_doc.py index f2e9378..2d9fd84 100644 --- a/docs/script/make_doc.py +++ b/docs/script/make_doc.py @@ -8,6 +8,7 @@ "/".join(["esphome-docs", "binary_sensor", "haier.rst"]), "/".join(["esphome-docs", "text_sensor", "haier.rst"]), "/".join(["esphome-docs", "button", "haier.rst"]), + "/".join(["esphome-docs", "switch", "haier.rst"]), "esp32_backup.rst", "additional_information.rst", ] @@ -26,7 +27,8 @@ def process_esphome_refs(line, l_num): (":ref:`Sensor `", "`Sensor `_"), (":ref:`Binary Sensor `", "`Binary Sensor `_"), (":ref:`Text Sensor `", "`Text Sensor `_"), - (":ref:`Button `", "`Text Sensor `_"), + (":ref:`Button `", "`Button `_"), + (":ref:`Switch `", "`Switch `_"), ] res = line