Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Kachelmannwetter jetzt
- rest:
- - authentication: basic
- scan_interval: 900
- resource_template: https://api.kachelmannwetter.com/v02/current/{{ state_attr('zone.home', 'latitude') | round(3) }}/{{ state_attr('zone.home', 'longitude') | round(3) }}?units=metric
- headers:
- Accept: application/json
- X-API-Key: !secret Kachelmannwetter
- sensor:
- - name: kmw_date
- value_template: '{{ value_json["data"].isDay["dateTime"] }}'
- - name: kmw_temp
- value_template: '{{ value_json["data"].temp["value"] }}'
- unit_of_measurement: "°C"
- - name: kmw_dew
- value_template: '{{ value_json["data"].dewpoint["value"] }}'
- unit_of_measurement: "°C"
- - name: kmw_hum
- value_template: '{{ value_json["data"].humidityRelative["value"] }}'
- unit_of_measurement: "%"
- - name: kmw_prec
- value_template: '{{ value_json["data"].prec1h["value"] }}'
- unit_of_measurement: "mm"
- - name: kmw_press
- value_template: '{{ value_json["data"].pressureMsl["value"] }}'
- unit_of_measurement: "hPa"
- - name: kmw_windspeed
- value_template: '{{ value_json["data"].windSpeed["value"] }}'
- unit_of_measurement: "m/s"
- - name: kmw_winddirection
- value_template: '{{ value_json["data"].windDirection["value"] }}'
- - name: kmw_windgust
- value_template: '{{ value_json["data"].windGust["value"] }}'
- unit_of_measurement: "m/s"
- - name: kmw_data_xsymbol
- value_template: '{{ value_json["data"].weatherSymbol["value"] }}'
- - name: kmw_cloudcoverage
- value_template: '{{ value_json["data"].cloudCoverage["value"] }}'
- unit_of_measurement: "%"
- #Kachelmann Vorhesage
- - authentication: basic
- scan_interval: 10800
- resource_template: https://api.kachelmannwetter.com/v02/forecast/{{ state_attr('zone.home', 'latitude') | round(3) }}/{{ state_attr('zone.home', 'longitude') | round(3) }}/3day?units=metric
- headers:
- Accept: application/json
- X-API-Key: !secret Kachelmannwetter
- sensor:
- - name: kmw_data_0
- value_template: '{{ value_json.data[0].dateTime }}'
- - name: kmw_data_0name
- value_template: '{{ value_json.data[0].dayName }}'
- - name: kmw_data_0tempmax
- value_template: '{{ value_json.data[0].tempMax }}'
- unit_of_measurement: "°C"
- - name: kmw_data_0tempmin
- value_template: '{{ value_json.data[0].tempMin }}'
- unit_of_measurement: "°C"
- - name: kmw_data_0symbol
- value_template: '{{ value_json.data[0].weatherSymbol }}'
- - name: kmw_data_0prec
- value_template: '{{ value_json.data[0].precCurrent }}'
- unit_of_measurement: "mm"
- - name: kmw_data_1
- value_template: '{{ value_json.data[1].dateTime }}'
- - name: kmw_data_1name
- value_template: '{{ value_json.data[1].dayName }}'
- - name: kmw_data_1tempmax
- value_template: '{{ value_json.data[1].tempMax }}'
- unit_of_measurement: "°C"
- - name: kmw_data_1tempmin
- value_template: '{{ value_json.data[1].tempMin }}'
- unit_of_measurement: "°C"
- - name: kmw_data_1symbol
- value_template: '{{ value_json.data[1].weatherSymbol }}'
- - name: kmw_data_1prec
- value_template: '{{ value_json.data[1].precCurrent }}'
- unit_of_measurement: "mm"
- - name: kmw_data_2
- value_template: '{{ value_json.data[2].dateTime }}'
- - name: kmw_data_2name
- value_template: '{{ value_json.data[2].dayName }}'
- - name: kmw_data_2tempmax
- value_template: '{{ value_json.data[2].tempMax }}'
- unit_of_measurement: "°C"
- - name: kmw_data_2tempmin
- value_template: '{{ value_json.data[2].tempMin }}'
- unit_of_measurement: "°C"
- - name: kmw_data_2symbol
- value_template: '{{ value_json.data[2].weatherSymbol }}'
- - name: kmw_data_2prec
- value_template: '{{ value_json.data[2].precCurrent }}'
- unit_of_measurement: "mm"
- #Kachelmann Vorhesage+
- - authentication: basic
- scan_interval: 10800
- resource_template: https://api.kachelmannwetter.com/v02/forecast/{{ state_attr('zone.home', 'latitude') | round(3) }}/{{ state_attr('zone.home', 'longitude') | round(3) }}/trend14days?units=metric
- headers:
- Accept: application/json
- X-API-Key: !secret Kachelmannwetter
- sensor:
- - name: kmw_data_3
- value_template: '{{ value_json.data[2].dateTime }}'
- - name: kmw_data_3tempmax
- value_template: '{{ value_json.data[2].tempMax }}'
- unit_of_measurement: "°C"
- - name: kmw_data_3tempmin
- value_template: '{{ value_json.data[2].tempMin }}'
- unit_of_measurement: "°C"
- - name: kmw_data_3prectype
- value_template: '{{ value_json.data[2].precType }}'
- - name: kmw_data_3cloudword
- value_template: '{{ value_json.data[2].cloudWord }}'
- - name: kmw_data_3prec
- value_template: '{{ value_json.data[2].prec }}'
- unit_of_measurement: "mm"
- - name: kmw_precprob1
- value_template: '{{ value_json.data[0].precProb1mm }}'
- unit_of_measurement: "%"
- - name: kmw_precprob2
- value_template: '{{ value_json.data[1].precProb1mm }}'
- unit_of_measurement: "%"
- - name: kmw_precprob3
- value_template: '{{ value_json.data[2].precProb1mm }}'
- unit_of_measurement: "%"
- Wahlweise
- resource_template: https://api.kachelmannwetter.com/v02/forecast/{{ state_attr('zone.home', 'latitude') | round(3) }}/{{ state_attr('zone.home', 'longitude') | round(3) }}/trend14days?units=metric
- oder
- resource: https://api.kachelmannwetter.com/v02/forecast/XX.XXX/XX.XXX/trend14days?units=metric
Advertisement
Add Comment
Please, Sign In to add comment