I am new to this and trying to follow Bruh $15 DIY multi sensor to get me started
All was going well programmed up a Pi with all in one installer logs in fine. Added MQTT broker and programed nodemcu All this seems to be working
My problem is when updating the config file as detailed in the video.
The detail of the config file has a Sensor: section and when I add this to the config.yaml I can no longer access my home assistant remove it and all is ok.
Can someone look at my config below and tell me how stupid I am and that it obvious whats wrong. Even better if you can tell me what is wrong.
Hope someone can 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: 51.4964
longitude: -0.1224
# 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: Europe/London
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
mqtt:
broker: xxx.xxx.x.xx
port: xxxx
client_id: home-assistant-1
username: xxxxxxxx
password: xxxxxxxx
light:
- platform: mqtt_json
name: SN1 LED
state_topic: "bruh/sensornode1"
command_topic: "bruh/sensornode1/set"
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
# Problem section............................................................................................
sensor:
- platform: mqtt
state_topic: "bruh/sensornode1"
name: "SN1 Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "bruh/sensornode1"
name: "SN1 LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "bruh/sensornode1"
name: "SN1 PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "bruh/sensornode1"
name: "SN1 Temperature"
unit_of_measurement: "°F"
value_template: '{{ value_json.temperature | round(1) }}'
# END of problem section....................................................................................
group:
sensor_node_1_card:
name: Sensor Node 1
entities:
- light.sn1_led
# Enables configuration UI
config:
http:
# Uncomment this to add a password (recommended!)
api_password: xxxxxx
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
sensor:
platform: yr
# Text to speech
tts:
platform: google