Home Assistant Community

Why my switches are in unused entities and not in home page?

#1

hello dear friends

I used esp8266 to make switches in home assistant and I will show you the configration.yaml file if you could understand anything about what is wrong with it, please help.

homeassistant:

Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: 36.1833
longitude: 44.0119

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: Asia/Baghdad

Customization file

customize: !include customize.yaml

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

Uncomment this if you are using SSL/TLS, running in Docker container, etc.

http:

base_url: example.duckdns.org:8123

Discover some devices automatically

discovery:

mqtt:
broker: 192.168.xx.xx
port: 1883
client_id: home-assistant-1
keepalive: 60
username: xxxxx
password: xxxx
protocol: 3.1

switch 1:

  • platform: mqtt
    name: “MQTT Switch 1”
    state_topic: “/house/switchConfirm1/”
    command_topic: “/house/switch1/”
    payload_on: “1”
    payload_off: “0”
    qos: 0
    retain: true

switch 2:

  • platform: mqtt
    name: “MQTT Switch 2”
    state_topic: “/house/switchConfirm2/”
    command_topic: “/house/switch2/”
    payload_on: “1”
    payload_off: “0”
    qos: 0
    retain: true

switch 3:

  • platform: mqtt
    name: “MQTT Switch 3”
    state_topic: “/house/switchConfirm3/”
    command_topic: “/house/switch3/”
    payload_on: “1”
    payload_off: “0”
    qos: 0
    retain: true

switch 4:

  • platform: mqtt
    name: “MQTT Switch 4”
    state_topic: “/house/switchConfirm4/”
    command_topic: “/house/switch4/”
    payload_on: “1”
    payload_off: “0”
    qos: 0
    retain: true

Sensors

sensor:

Weather prediction

  • platform: yr

Text to speech

tts:

  • platform: google_translate

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

#2

First, you should format your code. Take a look at the posting guide here to learn how to do that, it’s covered under number 11:

#3

Unused entities is a list of entities that you haven’t included in your frontend yet.

If you want to include them in your frontend, add them wherever you want.