Vevor Weather Station and depreciation issues

Hello M8’s.

Got 11 ‘fix me messages’ one example is:

I followed all the examples to resolve all 11 errors in my configuration.yaml.
after a reload, the errors went away but I have no data coming into HA from my PWS and getting invalid config message. Any insight is greatly appreciated.

Invalid config msg:

configuration.yaml prior:

typ# For Weather Station    
sensor:
- platform: rest
  name: pws_report
  json_attributes:
    - observations
  value_template: '{{ value_json["observations"][0]["obsTimeLocal"].title() }}'
  resource: !secret wunderground_url
  scan_interval: 300

- platform: template
  sensors:
    pws_location: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].neighborhood }}'
      friendly_name: Location
    pws_station_id: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].stationID }}'
      friendly_name: Staion ID
    pws_type: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].softwareType }}'
      friendly_name: Station Type
    pws_wind_dir: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].winddir }}'
      friendly_name: Wind Direction
      unit_of_measurement: "°"
    pws_wind_gust: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].windGust }}'  
      friendly_name:  Wind Gust  
    pws_wind_speed: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.windSpeed }}'
      friendly_name: Wind Speed
      unit_of_measurement: "MPH"
    pws_humidity: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].humidity }}'
      friendly_name: Outdoor Humidity
      unit_of_measurement: "%"
    pws_precip_total: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipTotal }}'
      friendly_name: Rain Total
      unit_of_measurement: "in"
    pws_precip_rate: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipRate }}'
      friendly_name: Rain Rate
      unit_of_measurement: "in"
    pws_temp: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.temp }}'
      friendly_name: Outdoor Temp
      unit_of_measurement: "°F"
    pws_solar: 
      value_template: '{{ states.sensor.pws_report.attributes.observations[0].solarRadiation }}'
e or paste code here

After the suggested fix:

sensor:
- platform: rest
  name: pws_report
  json_attributes:
    - observations
  value_template: '{{ value_json["observations"][0]["obsTimeLocal"].title() }}'
  resource: !secret wunderground_url
  scan_interval: 300

# For Weather Station    
template:
    - sensor:
        - default_entity_id: sensor.pws_location
          name: Location
          state: '{{ states.sensor.pws_report.attributes.observations[0].neighborhood }}'
        - default_entity_id: pws_station_id
          name: Station ID
          state: '{{ states.sensor.pws_report.attributes.observations[0].stationID }}'
        - default_entity_id: pws_type
          name: Station Type
          state: '{{ states.sensor.pws_report.attributes.observations[0].softwareType }}'
        - default_entity_id: pws_wind_dir
          name: Wind Direction
          state: '{{ states.sensor.pws_report.attributes.observations[0].winddir }}'
	  unit_of_measurement: "°"
        - default_entity_id: pws_wind_gust
          name: Wind Gust
          state: '{{ states.sensor.pws_report.attributes.observations[0].windGust }}'       
        - default_entity_id: pws_wind_speed
          name: Wind Speed
          state: '{{ states.sensor.pws_report.attributes.observations[0].imperial.windSpeed }}'
          unit_of_measurement: "MPH"
        - default_entity_id: pws_humidity
          name: Outdoor Humidity
          state: '{{ states.sensor.pws_report.attributes.observations[0].humidity }}'
          unit_of_measurement: "%"          
        - default_entity_id: pws_precip_total
          name: Rain Total
          state: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipTotal }}'
          unit_of_measurement: "in"        
        - default_entity_id: pws_precip_rate
          name: Rain Rate
          state: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipRate }}'
          unit_of_measurement: "in"          
        - default_entity_id: pws_temp
          name: Outdoor Temp
          state: '{{ states.sensor.pws_report.attributes.observations[0].imperial.temp }}'
          unit_of_measurement: °F"         
        - default_entity_id: pws_solar
          name: Solar Index
          state: '{{ states.sensor.pws_report.attributes.observations[0].solarRadiation}}'

Please read Petro’s posts in this thread and if you still have questions, ask in that thread…