Skip to content

Instantly share code, notes, and snippets.

@theundefined
Created August 19, 2022 15:31
Show Gist options
  • Save theundefined/0ce33231787b6a96541907d89803079e to your computer and use it in GitHub Desktop.
Save theundefined/0ce33231787b6a96541907d89803079e to your computer and use it in GitHub Desktop.
rest:
- resource: 'https://user.walutomat.pl/api/public/marketPriceVolumes/USD_PLN?brief=true'
scan_interval: 60
sensor:
- name: WT USD BID
value_template: '{{ value_json.BID_USD_PLN[0].rate }}'
unit_of_measurement: 'PLN'
- name: WT USD ASK
value_template: '{{ value_json.ASK_USD_PLN[0].rate }}'
unit_of_measurement: 'PLN'
- resource: 'https://user.walutomat.pl/api/public/marketPriceVolumes/CHF_PLN?brief=true'
scan_interval: 60
sensor:
- name: WT CHF BID
value_template: '{{ value_json.BID_CHF_PLN[0].rate }}'
unit_of_measurement: 'PLN'
- name: WT CHF ASK
value_template: '{{ value_json.ASK_CHF_PLN[0].rate }}'
unit_of_measurement: 'PLN'
- resource: 'https://user.walutomat.pl/api/public/marketPriceVolumes/EUR_PLN?brief=true'
scan_interval: 60
sensor:
- name: WT EUR BID
value_template: '{{ value_json.BID_EUR_PLN[0].rate }}'
unit_of_measurement: 'PLN'
- name: WT EUR ASK
value_template: '{{ value_json.ASK_EUR_PLN[0].rate }}'
unit_of_measurement: 'PLN'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment