@macek, przepraszam. Masz rację.
Użyłem tego kodu:
- platform: rest
scan_interval: 900
name: syngeos 605
resource: https://api.syngeos.pl/api/public/data/device/605
value_template: " {{ address }}"
json_attributes:
- sensors
- platform: template
sensors:
syngeos_605_temperature:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][0]["data"][0]["value"] }}'
device_class: temperature
unit_of_measurement: '°C'
syngeos_605_humidity:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][1]["data"][0]["value"] }}'
device_class: humidity
unit_of_measurement: '%'
syngeos_605_air_pressure:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][2]["data"][0]["value"] }}'
unit_of_measurement: 'hPa'
syngeos_605_pm25:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][3]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
syngeos_605_pm10:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][4]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
syngeos_605_pm1:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][5]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
Zmieniłem tylko ID czujnika i zadziałało.
Bardzo Ci dziękuję za pomoc.