Skip to content

barneyonline/pwsweatherupload

Repository files navigation

PWS Weather Upload Blueprint

Upload weather data from Home Assistant to a PWS Weather station

Setup

  1. Add the following lines to your Home Assistant configuration.yaml. This defines a rest_command named pws_upload that the blueprint uses to send data to PWSWeather without spawning an external process. Your Station ID and API key will be passed as part of the request URL:
rest_command:
  pws_upload:
    url: "{{ url }}"
    method: POST
  1. Restart Home Assistant.

  2. Create an account and then a Station in PWS Weather.

  3. Import the Blueprint:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

  1. Enter your Station ID and API Key, then any weather values to share.
  2. Ensure you select an entity to trigger data uploads (e.g. a temperature sensor).
  3. Optionally set a Minimum Upload Interval if you want to throttle how often data is sent to PWSWeather.
  4. Choose any extra sensors you wish to include such as Monthly or Yearly Rainfall and set a Weather Condition string if desired.
  5. Override the Software Type if you want a custom value.
  6. Save Automation.

When logging is enabled, the blueprint records the HTTP status code returned by the PWSWeather API so you can confirm successful uploads.

The file PWSweather-API_string_2020.txt lists all parameters supported by the PWSWeather API. Use it as a reference when deciding which sensors to include.

PWS_Upload_sample.py can be run from the command line to test API requests without Home Assistant. Replace the placeholder Station ID and API key in the script before running.

Credits

About

Upload weather data from Home Assistant to a PWS Weather station

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages