From 746266b5f3ebd9c4a7e64a0e9a58291734d0c78b Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 8 Aug 2022 18:14:41 -0400 Subject: [PATCH] Document BedJet hub component (#2109) --- components/climate/bedjet.rst | 70 +++++++++++++++++++++++++---------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/components/climate/bedjet.rst b/components/climate/bedjet.rst index 78b15134a..e7e38abcc 100644 --- a/components/climate/bedjet.rst +++ b/components/climate/bedjet.rst @@ -5,8 +5,8 @@ BedJet :description: Instructions for setting up a BedJet climate device. :image: bedjet.png -The ``bedjet`` climate platform creates a climate device which can be used to control -a BedJet V3 Climate Comfort Sleep System. +The ``bedjet`` component allows you to communicate with a BedJet V3 Climate Comfort +Sleep System. This component supports the following functionality: @@ -16,36 +16,40 @@ This component supports the following functionality: - Start one of the saved memory presets, including "Biorhythm" programs - Show the current status of the BedJet -This platform uses the BLE peripheral on an ESP32, so you also need to enable +This component uses the BLE peripheral on an ESP32, so you also need to enable this component. Please see the :doc:`/components/ble_client` docs for how to discover the MAC address of your BedJet device, or you can find the list of paired MAC addresses in the "DEVICE LIST" section of the BedJet mobile application. +Component/Hub +------------- + +This component is a global hub that maintains the connection to the BedJet device +and delegates status updates to individual platform components. + .. code-block:: yaml - ble_client: - - mac_address: 11:22:33:aa:bb:cc - id: ble_bedjet + esp32_ble_tracker: - climate: - - platform: bedjet - id: my_bedjet_fan - name: "My BedJet Fan" - ble_client_id: ble_bedjet + ble_client: + - mac_address: C4:4F:33:00:00:01 + id: bedjet_ble_id1 + + bedjet: + - id: bedjet_1 + ble_client_id: bedjet_ble_id1 Configuration variables: ------------------------- +************************ - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. -- **name** (**Required**, string): The name of the climate device. - **ble_client_id** (**Required**, :ref:`config-id`): The ID of the BLE Client. - **time_id** (*Optional*, :ref:`config-id`): The ID of a :ref:`Time Component