Edimax Wi-Fi Smart Switch/Plug (SP-2101W)

So the plug is now listening on 10000 again, not sure why. 22 is now closed.

So back to the config.

Here is my sensor section

    sensor:
  - platform: wunderground
    api_key:  ee3582efd25d7641
    monitored_conditions:
      - alerts
      - dewpoint_c
      - dewpoint_f
      - dewpoint_string
      - feelslike_c
      - feelslike_f
      - feelslike_string
      - heat_index_c
      - heat_index_f
      - heat_index_string
      - elevation
      - location
      - observation_time
      - precip_1hr_in
      - precip_1hr_metric
      - precip_1hr_string
      - precip_today_in
      - precip_today_metric
      - precip_today_string
      - pressure_in
      - pressure_mb
      - pressure_trend
      - relative_humidity
      - station_id
      - solarradiation
      - temperature_string
      - temp_f
      - UV
      - visibility_km
      - visibility_mi
      - weather
      - wind_degrees
      - wind_dir
      - wind_gust_kph
      - wind_gust_mph
      - wind_kph
      - wind_mph
      - wind_string
  - platform: template
       edimax1_watts:
         value_template: '{{ states.switch.edimax1.attributes["current_power_mwh"] | float * 1000000 | round(2) }}'
         unit_of_measurement: 'W'

However, I am getting this error when checking the config

Testing configuration at /home/homeassistant/.homeassistant
17-03-10 09:32:24 ERROR (Thread-1) [homeassistant.util.yaml] mapping values are not allowed here
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 179, column 21

Line 179 is the line starting with edimax1_watts

Is there something that I am missing here?