Skip to main content

Fritz!Box p3exporter collector module

Project description

p3exporter collector module for FritzBox smarthome data

PyPI version Codacy Badge

This module provides collector for FritzBox smarthome device data. It can be enabled with a default p3exporter installation via p3.yml.

The collector is in a very early state and it provides temperature data from connected thermostat devices with temperature sensors.

Tested with:

  • Comet DECT thermostat

Installation and Running

You need to install p3exporter first. It is available on pypi so you can use pip to install the exporter and run it locally.

pip install p3exporter

Now you need to install p3exporter-fritzbox-smarthome. Choose one method mentioned below.

Install from pypi.org

We also provide a pypi.org package. You can install the collector with the following command:

pip install p3exporter-fritzbox-smarthome

Install from repository

You can install it from a local clone of our github repository.

$ git clone https://github.com/codeaffen/p3exporter-fritzbox-smarthome.git
Cloning into 'p3exporter-fritzbox-smarthome'...
...
$ cd p3exporter-fritzbox-smarthome
$ pip install -e .

Activation FritzBox smarthome collectors

To start p3exporter you need a valid p3.yml you can either edit an existing one or take the example from this repository.

curl --silent https://raw.githubusercontent.com/codeaffen/p3exporter-fritzbox-smarthome/develop/p3.yml.example --output ~/tmp/p3.yml

If you edit an existing p3.yml add the following content to activate the collector.

collectors:
  - p3eFritzBox.collector.smarthome
collector_opts:
  smarthome:
    username: smarthome
    password: v3rys3cr3t

After that you can start the p3exporter as usual:

$ p3exporter -c /tmp/p3.yml
INFO:root:Collector 'p3eFritzBox.collector.smarthome' was loaded and registred successfully
INFO:root:Start exporter, listen on 5876

Configuration

There are some parameters avaiable to configure the collector. In the following table all parameters are listed.

Name Default Mandatory Description
username * Username used to authenticate against FritzBox
password * Password used to authenticate against FritzBox
hostname https://fritz.box Hostname of FritzBox to connect to. Protocol can be http or https. If no protocol is given default will be https.
device_types List of device type to enable. If List is empty all device types are activated. Possible values are:
  • temperature_sensor
ssl_verify True Set to True to disable ssl certificate verfication. This is useful in case of using self signed certificates.
Note: To use this parameter pyfritzhome from github is needed as the ssl_verify parameter is not yet available in pypi package. For details use requirements.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

p3exporter-fritzbox-smarthome-1.0.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

p3exporter_fritzbox_smarthome-1.0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file p3exporter-fritzbox-smarthome-1.0.2.tar.gz.

File metadata

File hashes

Hashes for p3exporter-fritzbox-smarthome-1.0.2.tar.gz
Algorithm Hash digest
SHA256 776133fbab757309824dea3e902386f1f80711aff6787d37a21a00d14ad9c6dd
MD5 330d8cca70346474d98502a3fa626ff8
BLAKE2b-256 cf0444318769649b655c45cd0f5297c4ba1e35c7c1eb11c4fbca75b95342034a

See more details on using hashes here.

File details

Details for the file p3exporter_fritzbox_smarthome-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for p3exporter_fritzbox_smarthome-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6593df774e9682b06f01ca53aa5e6503e1a5af3851265e00a17ee3ffe372926
MD5 a209ef15a754f9f8ae45ae9b1509ed94
BLAKE2b-256 a15bb235f1388304934198506ce55310172e6da1a17ed6fd85a8c9ebf22a2f17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page