Dashboard HA Não liga

Tenho appdaemon configurado, dashboard criado. Os itens do HA adicionados tudo OK.
No dashboard reflete o status q esta no HA,
Problemas:
O Dashboard nao faz um refresh automatico, so atualiza os status qnd dou um refresh na pagina.
Nao consigo ligar ou desligar atravez do Dashboard.

Appdaemon 2 ou 3? Algum erro no log?

appdaemon 2.1.12
não aparece nada no log.

Estás a usar o Hass.io?

Não, uso ubuntu e o homeassistant instalado via pyhton.

Referia-me ao log do AppDaemon e não do Hass.io

Desculpe a demora, esse é o erro que aparece nos logs:

Error handling request
Traceback (most recent call last):
File “/home/carlos/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py”, line 381, in start
resp = await self._request_handler(request)
File “/home/carlos/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py”, line 310, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.5/asyncio/coroutines.py”, line 213, in coro
res = yield from res
File “/home/carlos/homeassistant/lib/python3.5/site-packages/appdaemon/rundash.py”, line 181, in call_service
data = yield from request.post()
TypeError: cannot ‘yield from’ a coroutine object in a non-coroutine generator

Qual a versão do Python?

3.5, ja instalei a 3.6 para testar e nada.

E foi instalada no Ubuntu ou no ambiente virtual do HA?

esta instalado no ambiente virtual do HA, instalei usando: pip3 install appdaemon, o python esta na versao 3.5

Vi outras pessoas com mesmo problema na internet, a solucao foi fazer o update do APPDAEMON para a versão 3. mas nao estou conseguindo fazer o upgrade:

pip3 install --upgrade appdaemon

Requirement already up-to-date: appdaemon in /usr/local/lib/python3.5/site-packages (3.0.1)
Requirement not upgraded as not directly required: feedparser in /usr/local/lib/python3.5/site-packages (from appdaemon) (5.2.1)
Requirement not upgraded as not directly required: aiohttp2.3.10 in /usr/local/lib/python3.5/site-packages (from appdaemon) (2.3.10)
Requirement not upgraded as not directly required: yarl
1.1.0 in /usr/local/lib/python3.5/site-packages (from appdaemon) (1.1.0)
Requirement not upgraded as not directly required: bcrypt in /usr/local/lib/python3.5/site-packages (from appdaemon) (3.1.4)
Requirement not upgraded as not directly required: pyyaml in /usr/local/lib/python3.5/site-packages (from appdaemon) (3.12)
Requirement not upgraded as not directly required: aiohttp-jinja20.15.0 in /usr/local/lib/python3.5/site-packages (from appdaemon) (0.15.0)
Requirement not upgraded as not directly required: astral in /usr/local/lib/python3.5/site-packages (from appdaemon) (1.6)
Requirement not upgraded as not directly required: voluptuous in /usr/local/lib/python3.5/site-packages (from appdaemon) (0.11.1)
Requirement not upgraded as not directly required: iso8601 in /usr/local/lib/python3.5/site-packages (from appdaemon) (0.1.12)
Requirement not upgraded as not directly required: sseclient in /usr/local/lib/python3.5/site-packages (from appdaemon) (0.0.19)
Requirement not upgraded as not directly required: Jinja2
2.10 in /usr/local/lib/python3.5/site-packages (from appdaemon) (2.10)
Requirement not upgraded as not directly required: requests>=2.6.0 in /usr/local/lib/python3.5/site-packages (from appdaemon) (2.18.4)
Requirement not upgraded as not directly required: websocket-client in /usr/local/lib/python3.5/site-packages (from appdaemon) (0.47.0)
Requirement not upgraded as not directly required: daemonize in /usr/local/lib/python3.5/site-packages (from appdaemon) (2.4.7)
Requirement not upgraded as not directly required: idna-ssl>=1.0.0 in /usr/local/lib/python3.5/site-packages (from aiohttp2.3.10->appdaemon) (1.0.1)
Requirement not upgraded as not directly required: multidict>=4.0.0 in /usr/local/lib/python3.5/site-packages (from aiohttp
2.3.10->appdaemon) (4.2.0)
Requirement not upgraded as not directly required: chardet in /usr/local/lib/python3.5/site-packages (from aiohttp2.3.10->appdaemon) (3.0.4)
Requirement not upgraded as not directly required: async-timeout>=1.2.0 in /usr/local/lib/python3.5/site-packages (from aiohttp
2.3.10->appdaemon) (2.0.1)
Requirement not upgraded as not directly required: idna>=2.0 in /usr/local/lib/python3.5/site-packages (from yarl1.1.0->appdaemon) (2.6)
Requirement not upgraded as not directly required: six>=1.4.1 in /usr/local/lib/python3.5/site-packages (from bcrypt->appdaemon) (1.11.0)
Requirement not upgraded as not directly required: cffi>=1.1 in /usr/local/lib/python3.5/site-packages (from bcrypt->appdaemon) (1.11.5)
Requirement not upgraded as not directly required: pytz in /usr/local/lib/python3.5/site-packages (from astral->appdaemon) (2018.4)
Requirement not upgraded as not directly required: MarkupSafe>=0.23 in /usr/local/lib/python3.5/site-packages (from Jinja2
2.10->appdaemon) (1.0)
Requirement not upgraded as not directly required: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.5/site-packages (from requests>=2.6.0->appdaemon) (1.22)
Requirement not upgraded as not directly required: certifi>=2017.4.17 in /usr/local/lib/python3.5/site-packages (from requests>=2.6.0->appdaemon) (2018.4.16)
Requirement not upgraded as not directly required: pycparser in /usr/local/lib/python3.5/site-packages (from cffi>=1.1->bcrypt->appdaemon) (2.18)

Atenção que o minimo suportado é a 3.5.3

e como faco o update do python q esta no HA ? pois o pyhton do ubuntu ja esta no 3.6

Tens primeiro de entrar no ambiente virtual e depois dar o comando para fazer o update

Fiz o update para p python 3.6, e o appdaemon para 3.0. mesmo assim não funciona

Qual o erro no log do HA e do AppDaemon?

Oi pessoal, estou tentando configurar o HA Dashboard, instalei o Appdaemon 3, peguei alguns exemplos etc. Aparece a tela mas não enxerga meus sensores, not_found em todos que insiro. Tem algo relacionado com a pasta packages talvez?

Verifica se estas conectado ao HA com sucesso, segue um exemplo da minha config:

APPDAEMON.YAML

AppDaemon:
  logfile: /home/carlos/.homeassistant/appdaemon/appdaemon.log
  errorfile: /home/carlos/.homeassistant/appdaemon/appdaemon.log
  logsize: 100000
  log_generations: 3
  threads: 10
  api_port: 5050
  api_key: !secret api_key

HASS:
  ha_url: !secret http_url
  ha_key: !secret http_password

HADashboard:
  dash_url: http://127.0.0.1:5050
  dash_compile_on_start: 1

DASHBOARD:
portao_energia:
widget_type: switch
entity: switch.energia
title: Energia Portao
icon_on: mdi-flash
icon_off: mdi-flash
icon_style_active: “color: #4bcdea

layout:
    - portao_energia

O meu está assim, e essa api_key aí?

    #secrets: /config/secrets.yaml
log:
  logfile: STDOUT
  errorfile: STDERR
appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: https://192.168.1.151:8123
      #ha_key: 9cb4c8d35c7e47abbbbac3fba2df11c1
      ha_key: abcdef
hadashboard:
  dash_url: https://192.168.1.151:5050
  dash_dir: /config/appdaemon/dashboards

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


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