Fritz deprecate services for button entities (#20725)

This commit is contained in:
Simone Chemelli 2021-12-22 22:19:12 +01:00 committed by GitHub
parent d7b990fb82
commit 24c4bca7f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ ha_codeowners:
ha_iot_class: Local Polling
ha_platforms:
- binary_sensor
- button
- device_tracker
- sensor
- switch
@ -27,6 +28,7 @@ There is support for the following platform types within Home Assistant:
- **Device tracker** - presence detection by looking at connected devices.
- **Binary sensor** - connectivity status.
- **Button** - reboot, reconnect, firmware_update.
- **Sensor** - external IP address, uptime and network monitors.
- **Switch** - call deflection, port forward, parental control and Wi-Fi networks.
@ -44,29 +46,10 @@ The configuration in the UI asks for a username. Starting from FRITZ!OS 7.24 the
Currently supported services are Platform specific:
- `fritz.reconnect`
- `fritz.reboot`
- `fritz.cleanup`
### Platform Services
#### Service `fritz.reboot`
Reboot the router.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------- |
| `entity_id` | no | Only act on a specific router |
#### Service `fritz.reconnect`
Disconnect and reconnect the router to the Internet.
If you have a dynamic IP address, most likely it will change.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------- |
| `entity_id` | no | Only act on a specific router |
#### Service `fritz.cleanup`
Remove all stale devices from Home Assistant.
@ -112,11 +95,11 @@ The following script can be used to easily add a reconnect button to your UI. If
```yaml
fritz_box_reconnect:
alias: "Reconnect FRITZ!Box"
alias: "Reboot FRITZ!Box"
sequence:
- service: fritz.reconnect
- service: button.press
target:
entity_id: binary_sensor.fritzbox_7530_connection
entity_id: button.fritzbox_7530_reboot
```
@ -124,14 +107,14 @@ fritz_box_reconnect:
```yaml
automation:
- alias: "System - Reconnect FRITZ!Box"
- alias: "Reconnect FRITZ!Box"
trigger:
- platform: time
at: "05:00:00"
action:
- service: fritz.reconnect
- service: button.press
target:
entity_id: binary_sensor.fritzbox_7530_connection
entity_id: button.fritzbox_7530_reconnect
```