Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

How to integrate a fritzbox

$
0
0

@Jaques-Ludwig wrote:

Hi,

now I have read a lot about how to integrate a fritzbox.

I think, something is wrong with my configuration, but I don’t know what.

I got two errors in the Log:

  • Cannot connect to 169.254.1.1 on port 1012: [Errno 113] Host is unreachable
  • Phonebook with ID 0 not found on Fritz!Box

What I have done in the configuration.yaml:

device_tracker:
  - platform: huesensor
  - platform: fritz
    host: 192.168.2.1
    username: username
    password: password
    new_device_defaults:
      track_new_devices: true

and

fritzbox:
  devices:
    - host: 192.168.2.1
      username: username
      password: password

For “username” and “password” I have set the login data of my fritzbox. I use a 7490 model.

I have built an automation, that notes me, if a call is comming or outgoing. But without access to the fritzbox it doesn’t work.

In automations.yaml I have done this:

- id: '1583587555339'
  alias: Telefon
  description: ''
  trigger:
  - platform: state
    entity_id: sensor.telefon
  condition: []
  action:
  - service: notify.notify
    data_template:
      title: "Phone"
      message: >-
        {% if is_state("sensor.telefon", "idle") %}
          Phone is idle
        {% elif is_state("sensor.telefon", "dialing") %}
          Calling {{ state_attr('sensor.telefon', 'to_name') }} ({{ state_attr('sensor.telefon', 'to') }})
        {% elif is_state("sensor.telefon", "ringing") %}
          Incoming call from {{ state_attr('sensor.telefon', 'from_name') }} ({{ state_attr('sensor.telefon', 'from') }})
        {% else %}
          Talking to {{ state_attr('sensor.telefon', 'with_name') }} ({{ state_attr('sensor.telefon', 'with') }})
        {% endif %}

Could someone help?

Thanks,

Jaques-Ludwig

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>