Sign inSign up

b2un0/fritz2mqtt

By b2un0

•Updated about 18 hours ago

control the rest interface of your fritz box from mqtt

Image
0

2.3K

b2un0/fritz2mqtt repository overview

⁠Node.js fritz2mqtt

With this container, the REST interface of the FRITZ!Box, which is also used by the UI, can be controlled via mqtt

⁠Use case

In my case, I needed an easy way to turn a Wireguard VPN connection on or off via Home Assistant

sse home_assistant⁠ and examples⁠

the response/status will be published to $MQTT_TOPIC/$calledPaged, eg. fritz2mqtt/shareWireguard

⁠Docker

services:
  fritz2mqtt:
    image: b2un0/fritz2mqtt:latest
    restart: always
    container_name: fritz2mqtt
    network_mode: bridge
    environment:
      FRITZ_HOST: http://192.168.178.1
      FRITZ_USERNAME:
      FRITZ_PASSWORD:
      MQTT_HOST: mqtt://192.168.178.15:1883
      MQTT_TOPIC: fritz2mqtt

Tag summary

Content type

Image

Digest

sha256:135e75cc1…

Size

67.2 MB

Last updated

about 18 hours ago

docker pull b2un0/fritz2mqtt