Boas malta, sou novo nestas andanças, instalei o duckdns e ao tentar aceder por outra rede/router na parte do configurator dá me sempre "Policy not fulfilled ".
obrigado pela atenção
E as configurações do HA e do addon?
a configuração do HA Só consegui ver agora está assim
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: xx.xxxxx
longitude: xx.xxxxx
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Lisbon
# Customization file
customize: !include customize.yaml
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Show the introduction message on startup.
introduction:
frontend:
mqtt:
broker: core-mosquito
username: xxxxxx
password: xxxxxx
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: http://192.168.1.xxx:3218
http:
base_url: 192.168.1.xxx:8123
api_password: teste
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
#ip_ban_enabled: true
#login_attempts_threshold: 3
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- ::1
trusted_networks:
- 127.0.0.1
- ::1
- 192.168.0.0/24
- 87.103.63.106
- fd00::/8
ip_ban_enabled: true
login_attempts_threshold: 5
tts:
- platform: google
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
a do duckdns está da seguinte maneira
{
"lets_encrypt": {
"accept_terms": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem"
},
"token": "0b1679ad-xxxxxx-xxxx-xxxxx-df5cb065a3a3",
"domains": [
"xxxxxxxxx.duckdns.org"
],
"seconds": 300
}
já dei voltas e voltas não consgio encontrar o erro, se alguem me poder ajudar agradecia
Que versão do HA tens e que erros aparecem no homeassistant.log
?
o log é o seguinte
INFO:2019-03-07 21:34:36,156:__main__:Listening on: http://0.0.0.0:3218
WARNING:2019-03-07 21:34:36,230:__main__:Client IP not within allowed networks.
INFO:2019-03-07 21:34:36,232:__main__:87.103.63.106 - "GET / HTTP/1.1" 420 -
WARNING:2019-03-07 21:34:36,403:__main__:Client IP banned.
INFO:2019-03-07 21:34:36,404:__main__:87.103.63.106 - "GET /favicon.ico HTTP/1.1" 420 -
INFO:2019-03-07 21:34:45,596:__main__:192.168.1.71 - "GET / HTTP/1.1" 200 -
INFO:2019-03-07 21:34:46,908:__main__:192.168.1.71 - "GET /api/file?filename=/config/configuration.yaml HTTP/1.1" 200 -
INFO:2019-03-07 21:34:47,337:__main__:192.168.1.71 - "GET /api/listdir?path=. HTTP/1.1" 200
dai usar aquelas linhas no http, estou mesmo as aranhas não sei que fazer mais se me poder ajudar agradecia
A segunda linha diz lá qual é o problema.
WARNING:2019-03-07 21:34:36,230:__main__:Client IP not within allowed networks.
Depois basta ver nas configurações que tens o Configurator em 192.168.1.xxx
mas dizes que a trusted network é 192.168.0.0/24
… Já estás a ver o erro?
Muito obrigado já consegui.
Este tópico foi automaticamente fechado 90 dias após a última resposta. Novas respostas não são permitidas.