From 24c4bca7f4c3891216b27306f8bac5175e3ccef8 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Wed, 22 Dec 2021 22:19:12 +0100 Subject: [PATCH] Fritz deprecate services for button entities (#20725) --- source/_integrations/fritz.markdown | 33 +++++++---------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/source/_integrations/fritz.markdown b/source/_integrations/fritz.markdown index 13117316eac..8386c1891c1 100644 --- a/source/_integrations/fritz.markdown +++ b/source/_integrations/fritz.markdown @@ -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 ```