You can use the REST sensor as an easy replacement as well. This just gets the current conditions, forecast is also available via another URL…
- platform: rest
name: pws_report
json_attributes:
- observations
value_template: '{{ value_json["observations"][0]["obsTimeLocal"].title() }}'
resource: https://api.weather.com/v2/pws/observations/current?stationId=MYSTATION&format=json&units=e&apiKey=MYKEY
scan_interval: 300
- platform: template
sensors:
pws_location:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].neighborhood }}'
pws_station_id:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].stationID }}'
pws_type:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].softwareType }}'
pws_wind_dir:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].winddir }}'
pws_wind_gust:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].windGust }}'
pws_wind_speed:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.windSpeed }}'
pws_humidity:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].humidity }}'
pws_precip_total:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipTotal }}'
pws_precip_rate:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.precipRate }}'
pws_temp:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].imperial.temp }}'
pws_solar:
value_template: '{{ states.sensor.pws_report.attributes.observations[0].solarRadiation }}'