Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thermopro: add set_datetime button for TP358/TP393 #36987

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions source/_integrations/thermopro.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,33 @@ Integrates [ThermoPro](https://buythermopro.com/) devices into Home Assistant.
The ThermoPro integration will automatically discover devices once the [Bluetooth](/integrations/bluetooth) integration is enabled and functional.

{% include integrations/config_flow.md %}

## Buttons

These {% term actions %} allow one to set the time on supported devices(TP358, TP393) via Home Assistant.

### Button `Set Date&Time`

Sets the date & time on target devices to the system time in 24 hour notation.
The device is capable of showing 12 hour notation(AM/PM) but setting this is currently not implemented.

For example, the following action in an automation and set the datetime of the thermometer each day.

{% raw %}

```yaml
mode: single
triggers:
- trigger: time
at: "03:03:03"
conditions: []
actions:
- variables:
entity_id: button.tp_358_xxxx_your_device_set_date_time
- action: button.press
target:
entity_id: "{{ entity_id }}"
data: {}
```

{% endraw %}