Just because the metoffice add-on is going away doesn’t mean you have to stop using the metoffice. You can do the same using the RESTfull sensor.
Something like this in the rest: domain
- resource: http://datapoint.metoffice.gov.uk/public/data/txt/wxfcs/regionalforecast/json/511?key=<your api key>
verify_ssl: false
timeout: 30
scan_interval: 3600
sensor:
- name: metoffice.RegionalForecast
value_template: "{{ value_json['RegionalFcst']['FcstPeriods']['Period'][0]['Paragraph'][1]['$'] }}"
You will need to get your metoffice location ID from the following list (I’m using 511 because that’s where I am:
{
"Locations": {
"Location": [
{
"@id": "500",
"@name": "os"
},
{
"@id": "501",
"@name": "he"
},
{
"@id": "502",
"@name": "gr"
},
{
"@id": "503",
"@name": "st"
},
{
"@id": "504",
"@name": "ta"
},
{
"@id": "505",
"@name": "dg"
},
{
"@id": "506",
"@name": "ni"
},
{
"@id": "507",
"@name": "nw"
},
{
"@id": "508",
"@name": "ne"
},
{
"@id": "509",
"@name": "yh"
},
{
"@id": "510",
"@name": "wm"
},
{
"@id": "511",
"@name": "em"
},
{
"@id": "512",
"@name": "ee"
},
{
"@id": "513",
"@name": "sw"
},
{
"@id": "514",
"@name": "se"
},
{
"@id": "515",
"@name": "uk"
},
{
"@id": "516",
"@name": "wl"
}
]
}
}
Then you can use the data in a template like
{{ states('sensor.metoffice_regionalforecast') }}
Result type: string
Outbreaks of rain and snow for much of the day. Snow likely over modest high ground, heavy at times, but a rain and snow mix at low levels in the north, and mostly rain in the south. Becoming windy. Cold. Maximum Temperature 4C.
This is just what I use to get the daily forecast to announce to me when it takes me up, just to brighten my day, but the metoffice api provides a vast wealth of information that can be queried in the same way using REST, and then re-used for whatever you need.