Configuration yaml file for mqtt keeps complaining with errors

Hello all.
I am trying to run Home Assistant Core with a configuration yaml file. When I have the following in yaml:

sensor:
  - platform: mqtt
    name: "Temperature Sensor"
    state_topic: "application/c503b6e1-3af6-417f-9628-a58843e7f06d/device/2cf7f120502071a4/event/up"
    value_temmplate: "{{ value_json.time }}"
    unique_id: "testB_sensor"

HA responds with (this is seen under Settings at top, Notifications shows the number 2 but nothing exists under that tab) see second post.

When I remove the line platform: mqtt

sensor:
#  - platform: mqtt
  name: "Temperature Sensor"
  state_topic: "application/c503b6e1-3af6-417f-9628-a58843e7f06d/device/2cf7f120502071a4/event/up"
  value_temmplate: "{{ value_json.time }}"
  unique_id: "testB_sensor"

then HA under notifications gives me the following error (this is seen when clicking on Notifications and Show logs) see attachment

My apologies for two posts but HA Forum won’t let newbies add more than 1 image. I am using 2 spaces per required by yaml as can be seen in png. In both instances I go to Developers tools and click Restart and Restart Home Assistant. HA is running from a docker container.

Can someone please give me some advice on what to try?

Thank you

Follow up image due to HA Forum not allowing two images on one post.

Simply follow the format as described in the documentation (as advised in the error). There’s an example on top of the page how to do it: