Advertisement
arushear

Poprawione

Oct 22nd, 2024
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.18 KB | None | 0 0
  1. - platform: rest
  2.   method: GET
  3.   resource_template: http://mojdomek.eu/api/api2.php?id=TUTAJ_ID
  4.   value_template: "{{ value_json.locations[0].measurement.percent }}"
  5.   name: 'Poziom szamba'
  6.   scan_interval: 1800
  7.   unit_of_measurement: '%'
  8.  
  9. - platform: rest
  10.   method: GET
  11.   resource_template: http://mojdomek.eu/api/api2.php?id=TUTAJ_ID
  12.   value_template: "{{ value_json.locations[0].measurement.batt_level }}"
  13.   name: 'Stan baterii'
  14.   scan_interval: 1800
  15.   unit_of_measurement: '%'
  16.  
  17. - platform: rest
  18.   method: GET
  19.   resource_template: http://mojdomek.eu/api/api2.php?id=TUTAJ_ID
  20.   value_template: "{{ value_json.locations[0].measurement.cm }}"
  21.   name: 'Poziom szamba w cm'
  22.   scan_interval: 1800
  23.   unit_of_measurement: 'cm'
  24.  
  25. - platform: rest
  26.   method: GET
  27.   resource_template: http://mojdomek.eu/api/api2.php?id=TUTAJ_ID
  28.   value_template: "{{ value_json.locations[0].measurement.nextfull }}"
  29.   name: 'Następne opróżnienie'
  30.   scan_interval: 1800
  31.  
  32. - platform: rest
  33.   method: GET
  34.   resource_template: http://mojdomek.eu/api/api2.php?id=TUTAJ_ID
  35.   value_template: "{{ value_json.locations[0].measurement.lastempty }}"
  36.   name: 'Ostatnie opróżnienie'
  37.   scan_interval: 1800
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement