-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// published to "MQTT_TOPIC=fritz2mqtt" | ||
{ | ||
"page": "wireguard_edit", | ||
"uid": "connection6", // internal name of the target connection | ||
"accessdefaultroute": "off", | ||
"apply": null // mandatory! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// published to "MQTT_TOPIC=fritz2mqtt" | ||
{ | ||
"page": "wireguard_edit", | ||
"uid": "connection6", // internal name of the target connection | ||
"accessdefaultroute": "on", | ||
"apply": null // mandatory! | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
alias: AVM FRITZ!Box - mqtt watch wireguard_edit | ||
trigger: | ||
- platform: mqtt | ||
topic: fritz2mqtt/wireguard_edit | ||
condition: [] | ||
action: | ||
- service: mqtt.publish | ||
data: | ||
payload: "{ \"page\": \"shareWireguard\" }" | ||
topic: fritz2mqtt | ||
mode: single |
28 changes: 28 additions & 0 deletions
28
home_assistant/mqtt_switch_wireguard_connection_default_route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
mqtt: | ||
switch: | ||
- unique_id: mqtt_fritz_7590_ax_connection6_route | ||
name: "FRITZ!Box 7590 AX VPN Connection6 Route" | ||
icon: "mdi:vpn" | ||
command_topic: "fritz2mqtt" | ||
payload_on: >- | ||
{ | ||
"page": "wireguard_edit", | ||
"uid": "connection6", | ||
"accessdefaultroute": "on", | ||
"apply": null | ||
} | ||
payload_off: >- | ||
{ | ||
"page": "wireguard_edit", | ||
"uid": "connection6", | ||
"accessdefaultroute": "off", | ||
"apply": null | ||
} | ||
state_topic: "fritz2mqtt/shareWireguard" | ||
state_on: 1 | ||
state_off: 0 | ||
value_template: "{{ value_json.data.init.boxConnections.connection6.accessDefaultRoute }}" | ||
availability: | ||
- topic: "fritz2mqtt/shareWireguard" | ||
value_template: "{{ value_json.data.init.boxConnections.connection6.active }}" | ||
payload_available: true |
File renamed without changes.