Home Assistant REST sensor list

Home Assistant REST sensor list

  1. Hong Kong Observatory
    1. Tseung Kwan O (TKO) weather,humidity, temperature and 10-minute wind speed and direction

Hong Kong Observatory

Tseung Kwan O (TKO) weather,humidity, temperature and 10-minute wind speed and direction

- platform: rest
  name: hko_tko_humdity
  resource: https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_1min_humidity.csv
  value_template: "{{ value | regex_findall_index(find='Tseung Kwan O,(.*)') | float | round(0) }}"
  device_class: "humidity"
  unit_of_measurement: "%"
  scan_interval: 600
- platform: rest
  name: hko_tko_temperature
  resource: https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_1min_temperature.csv
  value_template: "{{ value | regex_findall_index(find='Tseung Kwan O,(.*)') | float | round(1) }}"
  device_class: "temperature"
  unit_of_measurement: "°C"
  scan_interval: 600
- platform: rest
  name: hk_tko_wind
  resource: https://data.weather.gov.hk/weatherAPI/hko_data/regional-weather/latest_10min_wind.csv
  value_template: "{{ value | regex_findall_index(find='Tseung Kwan O,(.*)') }}"
  scan_interval: 600
- platform: template
  sensors:
    tko_wind_direction:
      friendly_name: "TKO 10-minute wind direction"
      value_template: "{{ states('sensor.hk_tko_wind') | regex_findall_index(find='([^,]+),') }} "
      icon_template: "hass:compass"
    tko_wind_speed:
      friendly_name: "TKO 10-minute mean speed"
      value_template: "{{ states('sensor.hk_tko_wind') | regex_findall_index(find='[^,]+,([^,]+),') }} "
      unit_of_measurement: "km/hour"
      icon_template: "hass:tailwind"
    tko_wind_gust:
      friendly_name: "TKO 10-minute max gust"
      value_template: "{{ states('sensor.hk_tko_wind') | regex_findall_index(find='[^,]+,[^,]+,([^,]+)') }} "
      unit_of_measurement: "km/hour"
      icon_template: "hass:weather-windy"
Share