This is my configuration.yaml file:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
# latitude:
# longitude:
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: EST
# Show links to resources in log and frontend
introduction:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Enables support for tracking state changes over time.
history:
# Checks for available updates
updater:
# Allows you to issue voice commands from the frontend
conversation:
# Enables the frontend
frontend:
# Enables configuration UI
config:
# Discover some devices automatically
discovery:
#http:
# api_password: yourPasswordHere
mqtt:
broker: 127.0.0.1
port: 1883
client_id: home-assistant-1
keepalive: 60
binary_sensor1: !include binary_sensor1.yaml # new key
sensor 1:
- platform: mqtt
state_topic: "/house/temp1"
unit_of_measurement: "°C"
name: "Temperature"
switch 1:
platform: mqtt
name: "Outlet 1"
state_topic: "/house/light1confirm"
command_topic: "/house/light1"
payload_on: "1"
payload_off: "0"
qos: 0
retain: true
group:
Home Sensors:
- binary_sensor.door_sensor
- sensor.temperature
- switch.outlet_1
Trying to split the “binary_sensor1.yaml” file from configuration.yaml, but it is not deteting it. The file is in the same file directory.
My file directory is:
home/pi/.homeassistant/configuration.yaml
Here is content of “binary_sensor1.yaml”
binary_sensor1:
platform: mqtt
state_topic: "/house/door1"
name: "Door Sensor"
qos: 0
payload_on: "1"
payload_off: "0"
Error is:
2018-12-12 00:07:05 INFO (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.x.x (auth: False)
2018-12-12 00:07:06 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/core/check_config to 192.168.x.x (auth: True)
2018-12-12 00:07:06 ERROR (Thread-2) [homeassistant.loader] Unable to find component binary_sensor1
2018-12-12 00:07:16 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/core/check_config to 192.168.x.x (auth: True)
2018-12-12 00:07:17 ERROR (Thread-5) [homeassistant.loader] Unable to find component binary_sensor1
2018-12-12 00:07:18 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/core/check_config to 192.168.x.x (auth: True)
2018-12-12 00:07:18 ERROR (Thread-4) [homeassistant.loader] Unable to find component binary_sensor1
homeassistant page image:
Need help!