Estou com dificuldade na configuração do duckdns

Continuar a discussão de Erro no acesso via DuckDNS:
Diz que o HA entrou em modo de segurança Captura de ecrã 2020-03-03, às 02.36.25 Captura de ecrã 2020-04-01, às 03.18.20 Captura de ecrã 2020-04-01, às 03.19.03

@andre_mambu quando publicares código ou logs deves fazê-lo como texto. Depois deves sublinhar o texto que queres transformar em código e clicar no icone </>. Deverá existir um espaço antes e outro depois do bloco de código para que funcione correctamente. O código em Yaml é muito sensível aos espaçamentos e sem o código devidamente formatado não te poderemos ajudar. E nos logs há pormenores que só devidamente formatados se conseguem ver. Além disso, existem regras no fórum que devem ser cumpridas e que podes ler nos nossos Termos do Serviço/Regras e na FAQ.

Vê um exemplo:

http:
  
  base_url: 192.168.1.78:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  ip_ban_enabled: True
  login_attempts_threshold: 3

Já abri a porta 8123 agora o HA entrou em modo de segurança e depois fiquei sem acesso via braws

E que erros tens no log?

No meu HA, as configurações estão assim:

lets_encrypt:
  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
token: xxxxxxxxxxxxxxxxxxxxxxxx
domains:
  - xxxxxxxxxxx.duckdns.org
seconds: 300

http:
  base_url: https://xxxxxxxxxxx.duckdns.org
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

E tudo funciona bem.

The '/community_plugin/*' is deprecated and will be removed in an upcomming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources.

15:18:06 – custom_components/hacs/http.py (WARNING) - a mensagem ocorreu pela primeira às 15:18:05 e apareceu 3 vezes
2020-04-01 14:15:54 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 29 and 53.
2020-04-01 14:15:54 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "weather". Check lines 52 and 85.
2020-04-01 14:15:54 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "sensor". Check lines 53 and 110.
2020-04-01 14:15:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-01 14:15:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartir which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-01 14:15:58 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-01 14:16:00 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=451 from 2020-04-01 14:08:02.498605)
2020-04-01 14:16:29 WARNING (MainThread) [custom_components.sonoff] found new region: >>> eu <<< (you should change api_region option to this value in configuration.yaml)
2020-04-01 14:16:42 WARNING (SyncWorker_6) [homeassistant.util.yaml.loader] YAML file /config/ui-lovelace.yaml contains duplicate key "type". Check lines 47 and 50.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of tuya is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of updater is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of life360 is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2020-04-01 14:16:43 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2020-04-01 14:16:44 WARNING (MainThread) [homeassistant.components.lovelace] Resources need to be specified in your configuration.yaml. Please see the docs.
2020-04-01 14:16:44 ERROR (MainThread) [homeassistant.components.updater] Timeout fetching Home Assistant update data
2020-04-01 14:16:54 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name iPhone de André
2020-04-01 14:16:54 WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name iPhone de André
2020-04-01 14:16:56 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform broadlink is taking over 10 seconds.
2020-04-01 14:16:58 WARNING (SyncWorker_18) [homeassistant.util.yaml.loader] YAML file /config/ui-lovelace.yaml contains duplicate key "type". Check lines 47 and 50.
2020-04-01 14:17:01 ERROR (SyncWorker_9) [homeassistant.components.broadlink.switch] Failed to connect to device
2020-04-01 14:17:07 WARNING (MainThread) [homeassistant.setup] Setup of hacs is taking over 10 seconds.
2020-04-01 14:17:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/discovery/__init__.py", line 202, in scan_devices
    results = await hass.async_add_job(_discover, netdisco)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/discovery/__init__.py", line 230, in _discover
    for service in netdisco.get_info(disc):
  File "/usr/local/lib/python3.7/site-packages/netdisco/discovery.py", line 104, in get_info
    return self.discoverables[dis].get_info()
  File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 28, in get_info
    return [self.info_from_entry(entry) for entry in self.get_entries()]
  File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 28, in <listcomp>
    return [self.info_from_entry(entry) for entry in self.get_entries()]
  File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/homekit.py", line 14, in info_from_entry
    info = super(Discoverable, self).info_from_entry(entry)
  File "/usr/local/lib/python3.7/site-packages/netdisco/discoverables/__init__.py", line 125, in info_from_entry
    ATTR_HOST: str(ipaddress.ip_address(entry.address)),
  File "/usr/local/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: None does not appear to be an IPv4 or IPv6 address
2020-04-01 14:17:48 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching light data
2020-04-01 14:17:48 ERROR (MainThread) [homeassistant.components.hue.sensor_base] Timeout fetching sensor data
2020-04-01 14:17:48 ERROR (MainThread) [homeassistant.components.hue.light] Timeout fetching group data
2020-04-01 14:18:04 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-01 14:18:05 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2020-04-01 14:18:05 WARNING (MainThread) [hacs.deprecated] The '/community_plugin/*' is deprecated and will be removed in an upcomming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources.
2020-04-01 14:18:05 WARNING (MainThread) [hacs.deprecated] The '/community_plugin/*' is deprecated and will be removed in an upcomming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources.
2020-04-01 14:18:06 WARNING (MainThread) [hacs.deprecated] The '/community_plugin/*' is deprecated and will be removed in an upcomming version of HACS, it has been replaced by '/hacsfiles/*', if you use the UI to manage your lovelace configuration, you can update this by going to the settings tab in HACS, if you use YAML to manage your lovelace configuration, you manually need to replace the URL in your resources.
2020-04-01 14:19:07 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30
2020-04-01 14:19:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.14355210807d3a29d5ce_1 is taking over 10 seconds
2020-04-01 14:20:09 WARNING (MainThread) [homeassistant.components.switch] Updating tuya switch took longer than the scheduled update interval 0:00:30

Não consigo ver alguma coisa a mais so novo na matéria mais esses são os log que vi no HA tive que retirar a configuração .

lets_encrypt:
  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
token: 97ba726d-2098-4258-8bcaxxxxxx326a1a
domains:
  - cctctcst.duckdns.org
seconds: 300

http:
base_url: https://cctctds.duckdns.org
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

# INFO: Using main config file /data/workdir/config
+ Account already registered!
[15:15:36] INFO: OK
154.127.215.118
NOCHANGE
# INFO: Using main config file /data/workdir/config
Processing cctsczea.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jun 30 00:25:25 2020 GMT Certificate will not expire
(Longer than 30 days). Skipping renew!
[15:20:55] INFO: OK
154.127.215.118
NOCHANGE
[15:26:00] INFO: OK
154.127.215.150
UPDATED

log do duckdns

Se utilizas o DuckDNS não precisas do Let’s Encrypt. De resto tens bastantes erros no log, tens de os resolver pois parece-me que o facto de entrar em safe mode não deve ser por causa do DuckDNS.

Nesse caso como poderia ficar ? E por outra porque não tenho acesso via duckdns? Estou a tentar isso ja vai um ano e nada não consigo uma explicação clara sobre isso ja fiz muitos torturais e nada.

Como posso resolver esses erros a partir do log podes dar-me um exemplo desculpa pela minha falta de conhecimento e pelas minhas perguntas sem muito sentido.

Apaga o addon do Let’s Encrypt e do DuckDNS e reinicia o HA. Depois segue este tutorial:

Quanto aos outros erros tens de pesquisar e ver qual a solução para eles.

Segui e está dar esse erro

Received message for unregistered webhook 7810b27f0723f544198b15b3c1079e9ace338a5f9d69ec2a6ff91f8826782aae

17:39:10 – webhook (WARNING)

Don't use 'server_host' options with Hass.io

17:33:11 – Hass.io (WARNING)
## Translation Error: The intl string context variable 'Level' was not provided to the string 'Detalhes do log ({Level})'

Logger: homeassistant.components.webhook
Source: components/webhook/__init__.py:107 
Integration: webhook ([documentation](https://www.home-assistant.io/integrations/webhook), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+webhook%22)) 
First occurred: 17:39:10 (1 occurrences) 
Last logged: 17:39:10

Received message for unregistered webhook 7810b27f0723f544198b15b3c1079e9ace338a5f9d69ec2a6ff91f8826782aae
## Translation Error: The intl string context variable 'Level' was not provided to the string 'Detalhes do log ({Level})'

Logger: homeassistant.components.hassio.handler
Source: components/hassio/handler.py:31 
Integration: Hass.io ([documentation](https://www.home-assistant.io/integrations/hassio), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+hassio%22)) 
First occurred: 17:33:11 (1 occurrences) 
Last logged: 17:33:11

Don't use 'server_host' options with Hass.io

Boa tarde alguém pode ajudar no acesso do HA fora de casa?


Copyright © 2017-2020. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade