Hello, for some time (years) I have running a Rest-sensor that gets the temperature, RH% and PM from a sesnsor outside the house.
Since latest version (2025.12.4) of HA is quits working.
Is have 2 .yaml files: 1) rest sensor to send GET request from the API
The template sensor needs updated to latest syntax. Templates are their own main key in yaml now and are no longer rested as sub-keys underneath any other key. There is a post at the top of the forums all about this and someone even developed a custom integration to help migrate the sensors over to the new syntax. Eg -
template:
- sensor:
- name:
@tom_l is being mindful and I agree, please follow the forum guidelines and update your post when you can to follow the suggestions in the link he shared. It keeps the forum neat and tidy and easier to follow along for people who may encounter the same issue you have.
EDIT - Rest sensor syntax has changed, too. rest: is now a main key in the yaml, and like templates, can not be rested as a platform underneath any other key. Eg -
Users have the option of defining a sensor using the RESTful integration (under the rest: key) or the RESTful Sensor integration (under the sensor: key).
Ahh, touché. Thanks for the correction. @Smeagel21 so as the official documentation shares, use the rest: key if you’re creating multiple rest sensors using the same endpoint. Not to be confused with multiple sensors under the template: key, which is done simply by adding another hyphen with name under the sensor: domain. Eg -
You have configured value_template to get the value of the luchtpijp key from the received JSON data.
In the JSON data example that you posted, there is no luchtpijp key. The three top-level keys in the JSON data are software_version, age, and sensordatavalues.
That wasn’t the point. I linked you to the section of the FAQ that shows you how to format your post correctly so that others can help you. Which you have now done. And so have they. In particular: Rest sensor syntax error - #8 by 123
Did you change the key in the value_template like @123 was indicating? Since you’re pulling the software_version and sensordatavalues as attributes, you should be able to simply change the value_template in the rest sensor to use the age key. So it’ll show like value_template: '{{value_json.age}}'. You can, as of now, keep using the current rest syntax as you are or you can change it and put it under the rest: key like I had mentioned. It would look like this -
Other than that, you’ll need to update each template sensor to the current syntax using the template: key, as the way you have it in the OP is now deprecated.