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

Add example automations to devolo Home Network #36101

Open
wants to merge 2 commits into
base: current
Choose a base branch
from
Open
Changes from all 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
90 changes: 90 additions & 0 deletions source/_integrations/devolo_home_network.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,96 @@ This integration only supports using the API the devolo Home Network App uses. T

The devolo Gigabridge is the only device that comes with a default password. However, it seems that in factory default the password works for the device website but not for the API. If you give the device a new password via the website, it is applied to both and the integration starts working. Even using the same password again works.

## Example automations

### Restart PLC device on loss of pairing

PLC networks are sometimes flaky. To restore a network's state it's sometimes a good idea to reboot the PLC device attached to the router, if the number of PLC devices is lower as expected. If you apply this automation, keep in mind, that devices might be expectedly on standby. In this example, the expected number of devices is 3.

{% raw %}

```yaml
alias: PLC Feeder Restart
description: "Restart device connected to the router if number of PLC devices is unexpected low"
triggers:
- trigger: numeric_state
entity_id:
- sensor.YOUR_DEVICE_connected_plc_devices # Replace with your device's sensor
for:
hours: 0
minutes: 10
seconds: 0
below: 3
conditions: []
actions:
- device_id: DEVICE_ID # Replace with your device's ID
domain: button
entity_id: ENTITY_ID # Replace with your restart button's entity ID
type: press
mode: single
```

{% endraw %}

### Notify on data rate drop

Noise on the electric wire can significant disturb PLC data rates. A notification close to a drop can help identify the action that lead to the drop. The following example takes 25% as threshold.

{% raw %}

```yaml
alias: PLC Data rate
description: PLC Data rate dropped more than 25%
triggers:
- entity_id:
- sensor.YOUR_DEVICE_plc_downlink_phy_rate_TARGET # Replace with your device's sensors
- sensor.YOUR_DEVICE_plc_uplink_phy_rate_TARGET
trigger: state
conditions:
- condition: template
value_template: >-
# Checks if new value is less than 75% of previous value
{{ not(0.75 < (trigger.to_state.state|float /
trigger.from_state.state|float)) }}
actions:
- action: notify.mobile_app_pixel_4a
metadata: {}
data:
message: >-
PLC data rate of {{ trigger.to_state.name }} dropped to {{
trigger.to_state.state }}
{{trigger.to_state.attributes.unit_of_measurement}}
title: PLC data rate dropped
mode: single
```

{% endraw %}

### Enable guest wifi on time basis

You might want to expose your guest wifi only during the day but turn it off at night.

{% raw %}

```yaml
alias: Toggle Guest Wifi
description: Turn Guest Wifi on and off
triggers:
- trigger: time
at: "08:00:00"
- trigger: time
at: "17:00:00"
conditions: []
actions:
- type: toggle
device_id: DEVICE_ID # Replace with your device's ID
entity_id: ENTITY_ID # Replace with your guest WiFi switch's entity ID
domain: switch
mode: single
```

{% endraw %}

## Removing the integration

This integration follows standard integration removal. No extra steps are required.
Expand Down