Advertisement
JLindvig

DMI TTS REST v2

Nov 16th, 2021
838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.74 KB | None | 0 0
  1. rest:
  2.   - resource: http://rest.apptoo.dk/dmi_tts.json
  3.     sensor:
  4.       - name: DMI Landsudsigt
  5.         force_update: true
  6.         value_template: Fyn
  7.         json_attributes:
  8.          - title
  9.           - last_update
  10.           - forecast
  11.  
  12.       - name: DMI Fyn
  13.         force_update: true
  14.         value_template: Fyn
  15.         json_attributes_path: "$.region_forecast[?(@.region_name == 'Fyn')]"
  16.         json_attributes:
  17.          - region_name
  18.           - title
  19.           - last_update
  20.           - forecast
  21.  
  22.       - name: DMI ALT
  23.         force_update: true
  24.         value_template: DMI ALT
  25.         json_attributes:
  26.          - title
  27.           - last_update
  28.           - forecast
  29.           - regions
  30.           - region_forecast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement