Can't log on to home assistant after config update

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

Please check how to format your post to mark the config as sourcecode and then edit your post. It’s hard to help spot errors otherwise.

Sorry should have paid more attention to the welcome post.

Original post edited.

Hope this is better.

I think you need " " around the value_template
value_template: “{{ value_json.temperature | round(1) }}”

Thanks for the quick responce but this change has not fixed the problem.

What does the log say?

This is the log but does not have anything dated today.

17-04-25 09:57:01 WARNING (Thread-4) [netdisco.ssdp] Found malformed XML at http://192.168.1.75:9080: status=ok
17-04-25 09:57:04 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform roku
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/roku.py", line 46, in setup_platform
    host = discovery_info[0]
KeyError: 0

You have a duplicate key in your configuration.
Should be:

sensor:
  - platform: yr

  - platform: mqtt
    state_topic: "bruh/sensornode1"
    name: "SN1 Humidity"
    unit_of_measurement: "%"

  ...

Thanks for the support on this but I have solved the issue.

It seems that there was some issue with the copy and paste from the example.

After trying to narrow down the bit that caused the issue I got bits that would work and then not work.

Once I retyped the config sensor section instead of copy and paste it worked fine.

Can you elaborate on exactly what you changed to help others (like me!) who arrive here searching for a solution to the identical problem?

Thanks!