mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-11 20:02:12 +01:00
Document BedJet Fan component (#2239)
This commit is contained in:
parent
3907214daf
commit
300a511bde
@ -68,8 +68,33 @@ From :ref:`lambdas <config-lambda>`, you can call methods to do some advanced st
|
|||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(bedjet_1).upgrade_firmware();
|
id(bedjet_1).upgrade_firmware();
|
||||||
|
|
||||||
``bedjet`` Climate Platform
|
- ``.send_local_time``: If `time_id` is set, attempt to sync the clock now.
|
||||||
---------------------------
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: template
|
||||||
|
name: "Sync Clock"
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
id(my_bedjet_fan).send_local_time();
|
||||||
|
|
||||||
|
- ``.set_clock``: Set the BedJet clock to a specified time; works with or without a `time_id`.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: template
|
||||||
|
name: "Set Clock to 10:10pm"
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- lambda: |-
|
||||||
|
id(my_bedjet_fan).set_clock(22, 10);
|
||||||
|
|
||||||
|
|
||||||
|
``bedjet`` Climate
|
||||||
|
------------------
|
||||||
|
|
||||||
The `climate` platform exposes the BedJet's climate-related functionality, including
|
The `climate` platform exposes the BedJet's climate-related functionality, including
|
||||||
setting the mode and target temperature.
|
setting the mode and target temperature.
|
||||||
@ -94,29 +119,30 @@ Configuration variables:
|
|||||||
- Whichever is not selected will be made available as a custom preset.
|
- Whichever is not selected will be made available as a custom preset.
|
||||||
- All other options from :ref:`Climate <config-climate>`.
|
- All other options from :ref:`Climate <config-climate>`.
|
||||||
|
|
||||||
- ``.send_local_time``: If `time_id` is set, attempt to sync the clock now.
|
``bedjet`` Fan
|
||||||
|
--------------
|
||||||
|
|
||||||
|
The `fan` platform exposes the BedJet's fan-related functionality, including
|
||||||
|
on/off and speed control.
|
||||||
|
|
||||||
|
When the BedJet is already on, turning the Fan component off will set the BedJet unit's mode to
|
||||||
|
``OFF``. If it was not already on, it will be turned on to mode ``FAN_ONLY``.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
button:
|
fan:
|
||||||
- platform: template
|
- platform: bedjet
|
||||||
name: "Sync Clock"
|
id: my_bedjet_fan_entity
|
||||||
on_press:
|
name: "My BedJet Fan"
|
||||||
then:
|
bedjet_id: bedjet_1
|
||||||
- lambda: |-
|
|
||||||
id(my_bedjet_fan).send_local_time();
|
|
||||||
|
|
||||||
- ``.set_clock``: Set the BedJet clock to a specified time; works with or without a `time_id`.
|
Configuration variables:
|
||||||
|
************************
|
||||||
|
|
||||||
.. code-block:: yaml
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||||
|
- **name** (**Required**, string): The name of the fan device.
|
||||||
button:
|
- **bedjet_id** (**Required**, :ref:`config-id`): The ID of the Bedjet component.
|
||||||
- platform: template
|
- Other options from :ref:`Fan <config-fan>`.
|
||||||
name: "Set Clock to 10:10pm"
|
|
||||||
on_press:
|
|
||||||
then:
|
|
||||||
- lambda: |-
|
|
||||||
id(my_bedjet_fan).set_clock(22, 10);
|
|
||||||
|
|
||||||
Known issues:
|
Known issues:
|
||||||
-------------
|
-------------
|
||||||
|
Loading…
Reference in New Issue
Block a user