From a22e500eab8d6ff7f952b8283219dc1f1bf378ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Strandberg?= Date: Mon, 16 Dec 2024 04:55:29 +0100 Subject: [PATCH] Add an example automation (#36363) Thank you! --- source/_integrations/myuplink.markdown | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/source/_integrations/myuplink.markdown b/source/_integrations/myuplink.markdown index ba91c81f294..3eee099cf57 100644 --- a/source/_integrations/myuplink.markdown +++ b/source/_integrations/myuplink.markdown @@ -68,7 +68,7 @@ The integration configuration will require the **Client ID** and **Client Secret The integration supports all heat-pump devices that can be connected to the myUplink cloud service. See [Works with myUplink](https://myuplink.com/legal/works-with/en). However, the representation in Home Assistant depends on how and to what extent the manufacturer has implemented the service. -## Use cases / Examples +## Use cases Common use cases include: @@ -77,6 +77,27 @@ Common use cases include: - **Automation**: Adjust the temperature curve offset during holiday mode - **Analytics**: View long-term statistics and graphs for the relevant sensors +## Example + +Automation that will send a notification to a smartphone when the hot water reserve is getting low. Note that actual entity name varies between models of heat pumps. You will have to adapt the yaml code to your own installation. + +```yaml +automation: + alias: Notify on low hot water reserve + triggers: + - trigger: numeric_state + entity_id: + - sensor.your_pump_hot_water_charging_bt6 + below: 42 + actions: + - action: notify.mobile_app_your_device + metadata: {} + data: + message: Hot water reserve is getting low. + title: Water heater + mode: single +``` + ## Data updates The integration will poll the API for data every 60 seconds. This polling interval is designed to work within the rate limits of myUplink APIs while providing timely updates.