Ajuda iniciante HA

Peço desculpa se a minha questão já foi respondida mas ando aqui a " cabeçada 2 com o HA.

A ver se me explico .
HA a rolar em Lunbuntu, estou numa fase muito inicial então para já só estou tentar por uma lâmpada yeelight a funcionar .
Encontrei o código para a lâmpada na pagina oficial HA e acrescentei no ficheiros configuration.yaml, apos into apareceu a opção para mexer la lampada .
Agora por razão que não entendo aprece 2 vezes a mesma lampada com nomes diferentes so que no ficheiro so la tenho 1 ALguem pode dar aui uma ajuda ?? Muito obrigado

homeassistant:
  # Name of the location where Home Assistant is running
  name: A Minha Casa
  # Location required to calculate the time the sun rises and sets
  latitude: 
  longitude: 
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 
  # 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:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Sensors
sensor:
  # Weather prediction
  - platform: yr

# Text to speech
#tts:
#  - platform: google

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

# Lampadas
light:
  - platform: yeelight
    devices:
      192.168.1.96:
        name: A minha luz
        transition: 1000
        use_music_mode: true
        save_on_change: true

teste

Olá Carlos, excelente questão.
O HA sofreu recentemente algumas alterações nomedamente na estruturação do ficheiro configuration.yaml
Essa linha que ai tens começada por: default_config substitui automaticamente todos estes parametros, que antes era postos individualmente:

'automation',
'cloud',
'config',
'conversation',
'discovery',
'frontend',
'history',
'logbook',
'map',
'mobile_app',
'person',
'script',
'sun',
'system_health',
'updater',

O facto de teres esse essa lampada em duplicado com o nome yeelight_colorblablabla é porque o discovery: está automaticamente activo pela linha default_config.

1 Curtiu

Obrigado Rodolfo

Mas agora onde podemos configurar os componentes ??
Sabes como consigo desligar o discovery ??

Obrigado

@Carlos, substitui todo o teu configuration.yaml por este que te vou colar abaixo, mas antes faz um backup do teu.
Depois verifica se tens erros e reinicia o HA.

homeassistant:
  # Name of the location where Home Assistant is running
  name: A Minha Casa
  # Location required to calculate the time the sun rises and sets
  latitude: 
  longitude: 
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 
  # 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

config:
frontend:
system_health:
logbook:
map:
sun:
history:
conversation:
logger:
  default: error

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

# Lampadas
light:
  - platform: yeelight
    devices:
      192.168.1.96:
        name: A minha luz
        transition: 1000
        use_music_mode: true
        save_on_change: true

Este tópico foi automaticamente fechado 90 dias após a última resposta. Novas respostas não são permitidas.


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


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