Document BedJet clock methods (#2098)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Joe 2022-06-02 21:53:28 -04:00 committed by GitHub
parent c34c62430d
commit b79a5f633b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,30 @@ From :ref:`lambdas <config-lambda>`, you can call methods to do some advanced st
- lambda: |- - lambda: |-
id(my_bedjet_fan).upgrade_firmware(); id(my_bedjet_fan).upgrade_firmware();
- ``.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);
Known issues: Known issues:
------------- -------------