From 7f3fc8434e3655c310f052d27a8e48648bc50ba9 Mon Sep 17 00:00:00 2001 From: chemelli74 Date: Thu, 16 Dec 2021 15:05:41 +0000 Subject: [PATCH 1/2] Frtiz deprecate services for of button entities --- source/_integrations/fritz.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_integrations/fritz.markdown b/source/_integrations/fritz.markdown index 13117316eac4..4c05ae78f048 100644 --- a/source/_integrations/fritz.markdown +++ b/source/_integrations/fritz.markdown @@ -76,6 +76,8 @@ A device is identified as stale when it's still present on Home Assistant but no | ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------- | | `entity_id` | no | Only act on a specific router | +**Note**: Services will be soon deprecated in favor of button entities, that have the same functionality. + ## Integration Options It is possible to change some behaviors through the integration options. From 2f68b59016ebf1e5b6a9eed76a480389eda0a221 Mon Sep 17 00:00:00 2001 From: chemelli74 Date: Wed, 22 Dec 2021 20:08:48 +0000 Subject: [PATCH 2/2] Remove services and update examples --- source/_integrations/fritz.markdown | 35 +++++++---------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/source/_integrations/fritz.markdown b/source/_integrations/fritz.markdown index 4c05ae78f048..8386c1891c1d 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. @@ -76,8 +59,6 @@ A device is identified as stale when it's still present on Home Assistant but no | ---------------------- | -------- | -------------------------------------------------------------------------------------------------------------- | | `entity_id` | no | Only act on a specific router | -**Note**: Services will be soon deprecated in favor of button entities, that have the same functionality. - ## Integration Options It is possible to change some behaviors through the integration options. @@ -114,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 ``` @@ -126,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 ```